Cary Sandvig 25 år sedan
förälder
incheckning
122d433432
2 ändrade filer med 55 tillägg och 0 borttagningar
  1. 7 0
      panda/src/gui/guiListBox.I
  2. 48 0
      panda/src/gui/guiListBox.h

+ 7 - 0
panda/src/gui/guiListBox.I

@@ -0,0 +1,7 @@
+// Filename: guiListBox.I
+// Created by:  cary (18Jan01)
+// 
+////////////////////////////////////////////////////////////////////
+
+INLINE GuiListBox::GuiListBox(void) {}
+

+ 48 - 0
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 <vector>
+
+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__ */