1 // puList.hxx - a scrolling PUI list box.
12 # define PUCLASS_LIST 0x80000000 // Hopefully this value will never be used by plib
15 * A scrolling list for PUI.
17 * Believe it or not, PUI does not have one of these.
19 class puList : public puGroup
22 puList (int x, int y, int w, int h, int sl_width = 20);
23 puList (int x, int y, int w, int h, char ** contents, int sl_width = 20);
26 virtual void newList (char ** contents);
27 // TODO: other string value funcs
28 virtual char * getListStringValue ();
29 virtual int getListIntegerValue();
30 virtual void setColourScheme (float r, float g, float b, float a);
31 virtual void setColour (int which, float r, float g, float b, float a);
32 virtual void setSize (int w, int h);
34 int getNumItems ( void ) const ;
35 int getTopItem ( void ) const { return _list_box->getTopItem(); }
36 void setTopItem (int index);
39 virtual void init (int w, int h, short transparent);
40 puListBox * _list_box;
46 puArrowButton * _up_arrow;
47 puArrowButton * _down_arrow;
49 int _sw; // slider width
53 #endif // __PULIST_HXX