From 122d433432e6b4e79a21a2f7ff6790c6a44ca198 Mon Sep 17 00:00:00 2001 From: Cary Sandvig Date: Thu, 18 Jan 2001 21:49:03 +0000 Subject: [PATCH] whee --- panda/src/gui/guiListBox.I | 7 ++++++ panda/src/gui/guiListBox.h | 48 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 panda/src/gui/guiListBox.I create mode 100644 panda/src/gui/guiListBox.h diff --git a/panda/src/gui/guiListBox.I b/panda/src/gui/guiListBox.I new file mode 100644 index 0000000000..d07953cc48 --- /dev/null +++ b/panda/src/gui/guiListBox.I @@ -0,0 +1,7 @@ +// Filename: guiListBox.I +// Created by: cary (18Jan01) +// +//////////////////////////////////////////////////////////////////// + +INLINE GuiListBox::GuiListBox(void) {} + diff --git a/panda/src/gui/guiListBox.h b/panda/src/gui/guiListBox.h new file mode 100644 index 0000000000..953276d1c6 --- /dev/null +++ b/panda/src/gui/guiListBox.h @@ -0,0 +1,48 @@ +// Filename: guiListBox.h +// Created by: cary (18Jan01) +// +//////////////////////////////////////////////////////////////////// + +#ifndef __GUILISTBOX_H__ +#define __GUILISTBOX_H__ + +#include "guiItem.h" + +#include + +class EXPCL_PANDA GuiListBox : public GuiItem { +PUBLISHED: + GuiListBox(const string&); + ~GuiListBox(void); + + virtual void manage(GuiManager*, EventHandler&); + virtual void unmanage(void); + + virtual void set_scale(float); + virtual void set_pos(const LVector3f&); + + 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, "GuiListBox", + 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 "guiListBox.I" + +#endif /* __GUILISTBOX_H__ */