#include <listbox.h>
Inheritance diagram for fgl::listbox:


Public Member Functions | |
| void | SetColors (int a, int b, int c, int d) |
| void | Draw (int i=1) |
| void | ShowCursor (void) |
| void | HideCursor (void) |
| void | Up (void) |
| void | Down (void) |
| void | Begin (void) |
| void | End (void) |
| void | SetSize (int) |
| int | GetSize (void) const |
| void | SetIndex (int) |
| int | GetIndex (void) const |
| void | SetIndexRel (int) |
| int | GetCurrent (void) const |
| void | SetToItemRel (int a) |
| void | Resize (int a) |
| void | SetToItem (int a) |
| void | RedrawItem (void) |
| int | Test (int, int) |
| int | DoListBox (int key) |
| virtual const int | ToInteger () const |
Protected Member Functions | |
| void | Cursor (int) |
| int | AdjustCursor (int item) |
| int | Enabled (void) |
| listbox (int xs, int ys, int w, int h, int DropDown, FGWindow *wind) | |
| virtual void | draw (void) |
| virtual void | DrawItem (int, int, int, int) |
| virtual void | WheelSpin (int direction) |
Protected Attributes | |
| int | cursor |
| int | slider |
| int | drop_down |
| unsigned | color_bg0 |
| unsigned | color_bg1 |
| unsigned | color_fg0 |
| unsigned | color_fg1 |
| int | xx |
| int | yy |
| int | curr |
| int | count |
| int | fpol |
| int | line |
| int | onew |
| int | oneh |
|
|
Try move cursor at new index and adjust all variables to new values.
|
|
|
Move at the start of the listbox.
|
|
|
The default listbox keypress handler. This function handle keys for moving across the listbox. The right place to call this is into the FGWindow handler on KEYEVENT switch. |
|
|
Move one line DOWN in the listbox.
|
|
|
Redraw the whole object on the screen, the parameter 'i' is flag for cursor drawing (yes or no). |
|
|
Returns false if there aren't data int the object.
|
|
|
Move at the end (last line) of the listbox.
|
|
|
|
|
|
Returns the current item in the listbox.
|
|
|
Returns current size (number of lines).
|
|
|
Hide cursor at its position.
|
|
|
Redraw the current item/line in the listbox.
|
|
|
|
|
||||||||||||||||||||
|
Sets the listbox's colors.
|
|
|
Set the current item in the listbox.
|
|
|
Set the current item relative to the current item in the listbox.
|
|
|
Set the new size of list box (i.e. number of items in it).
|
|
|
|
|
|
|
|
|
Draw cursor at its position.
|
|
||||||||||||
|
The right place for calling this function is into the Window handler on a CLICKLEFTEVENT case.
|
|
|
Move one line UP in the listbox.
|
1.4.0