]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/puList.hxx
- backport plib/cvs (transparency feature; never tried that :-)
[flightgear.git] / src / GUI / puList.hxx
index 2b4946a002751518c57845e75fffef11185ecb29..991f931dd71ae1cff4c2e7d54aeaf7773e28092d 100644 (file)
 class puList : public puGroup
 {
  public:
-    puList (int x, int y, int w, int h);
-    puList (int x, int y, int w, int h, char ** contents);
+    puList (int x, int y, int w, int h, int sl_width = 20);
+    puList (int x, int y, int w, int h, char ** contents, int sl_width = 20);
     virtual ~puList ();
 
     virtual void newList (char ** contents);
     // TODO: other string value funcs
     virtual char * getListStringValue ();
     virtual int getListIntegerValue();
+    virtual void setColourScheme (float r, float g, float b, float a);
+    virtual void setColour (int which, float r, float g, float b, float a);
+    virtual void setSize (int w, int h);
+
+    int  getNumItems ( void ) const ;
+    int  getTopItem  ( void ) const { return _list_box->getTopItem(); }
+    void setTopItem (int index);
 
  protected:
-    virtual void init (int w, int h);
+    virtual void init (int w, int h, short transparent);
+    puListBox * _list_box;
 
  private:
     char ** _contents;
     puFrame * _frame;
-    puListBox * _list_box;
     puSlider * _slider;
     puArrowButton * _up_arrow;
     puArrowButton * _down_arrow;
+    int _style;
+    int _sw;            // slider width
+    int _width, _height;
 };
 
 #endif // __PULIST_HXX