mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
whee
This commit is contained in:
parent
0b48e4ae07
commit
cce7035e91
63
panda/src/gui/guiCollection.h
Normal file
63
panda/src/gui/guiCollection.h
Normal file
@ -0,0 +1,63 @@
|
||||
// Filename: guiCollection.h
|
||||
// Created by: cary (07Mar01)
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef __GUICOLLECTION_H__
|
||||
#define __GUICOLLECTION_H__
|
||||
|
||||
#include "guiItem.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
class EXPCL_PANDA GuiCollection : public GuiItem {
|
||||
private:
|
||||
typedef vector<PT(GuiItem)> Items;
|
||||
|
||||
Items _items;
|
||||
|
||||
INLINE GuiCollection(void);
|
||||
virtual void recompute_frame(void);
|
||||
PUBLISHED:
|
||||
GuiCollection(const string&);
|
||||
~GuiCollection(void);
|
||||
|
||||
virtual int freeze();
|
||||
virtual int thaw();
|
||||
|
||||
void add_item(GuiItem*);
|
||||
void remove_item(GuiItem*);
|
||||
|
||||
virtual void manage(GuiManager*, EventHandler&);
|
||||
virtual void unmanage(void);
|
||||
|
||||
virtual void set_scale(float);
|
||||
virtual void set_pos(const LVector3f&);
|
||||
virtual void set_priority(GuiLabel*, const Priority);
|
||||
virtual void set_priority(GuiItem*, const Priority);
|
||||
|
||||
virtual void output(ostream&) const;
|
||||
public:
|
||||
// type interface
|
||||
static TypeHandle get_class_type(void) {
|
||||
return _type_handle;
|
||||
}
|
||||
static void init_type(void) {
|
||||
GuiItem::init_type();
|
||||
register_type(_type_handle, "GuiCollection",
|
||||
GuiItem::get_class_type());
|
||||
}
|
||||
virtual TypeHandle get_type(void) const {
|
||||
return get_class_type();
|
||||
}
|
||||
virtual TypeHandle force_init_type(void) {
|
||||
init_type();
|
||||
return get_class_type();
|
||||
}
|
||||
private:
|
||||
static TypeHandle _type_handle;
|
||||
};
|
||||
|
||||
#include "guiCollection.I"
|
||||
|
||||
#endif /* __GUICOLLECTION_H__ */
|
Loading…
x
Reference in New Issue
Block a user