10 #ifndef __combobox_hpp__ 23 unsigned int const i_len_x,
24 unsigned int const i_len_y);
31 unsigned char const* i_label);
53 struct box& o_bbox)
const;
75 struct box& o_bbox)
const 86 unsigned char const* i_label)
105 #define __combobox_hpp__
void set_text(unsigned char const *i_str)
set the text of the entry
Definition: entry.cpp:526
void popup()
pops up the listbox widget
Definition: combobox.cpp:153
int add(unsigned char const *i_label)
adds a value to the end of a list
Definition: combobox.hpp:85
listbox m_listbox
listbox used for drop down
Definition: combobox.hpp:49
void listbox_configure()
configures (moves and resizes) the listbox widget for display
Definition: combobox.cpp:108
void remove_all()
removes all elements from the list
Definition: combobox.hpp:96
int add(unsigned char const *i_label)
adds a value to the end of a list
Definition: listbox.cpp:100
virtual ~combobox()
destructor
Definition: combobox.cpp:32
Allows a user to enter text.
Definition: entry.hpp:14
event_response
response
Definition: event.h:14
virtual enum event_response event_key(struct event_key const &i_event)
handle key event
Definition: combobox.cpp:58
unsigned int m_len_x
Definition: box.h:16
virtual void draw() const
draws the widget
Definition: combobox.cpp:38
virtual void get_bbox(struct box &o_bbox) const
get the inner bounding box param[out] o_bbox bounding box to fill
Definition: combobox.hpp:74
virtual enum event_response event_mouse(struct event_mouse const &i_event)
handle mouse event
Definition: combobox.cpp:75
void remove_all()
remove all items from the listbox
Definition: listbox.cpp:653
Allows the user to choose a value from a drop down list. Optionally, the user can also enter a value ...
Definition: combobox.hpp:15
container for a mouse event
Definition: event.h:37
Allows the user to choose a value from a list.
Definition: listbox.hpp:20
defines a rectangular region
Definition: box.h:12
container for a keyboard event
Definition: event.h:23