GFXprim
2D bitmap graphics library with emphasis on speed and correctness
|
A choice widget ops. More...
#include <gp_widget_class_choice.h>
Data Fields | |
const char *(* | get_choice )(gp_widget *self, size_t idx) |
Returns a description for a choice. | |
size_t(* | get )(gp_widget *self, enum gp_widget_choice_op op) |
Returns a selected choice or number of choices. | |
void(* | set )(gp_widget *self, size_t sel) |
Sets the selected choice. | |
A choice widget ops.
These are callbacks called by the widget implementation to get the choice values, selected choice and the number of choices.
The application needs to call gp_widget_choice_refresh() when the state changes, e.g. choice was added to or removed from the set.
Definition at line 35 of file gp_widget_class_choice.h.
size_t(* gp_widget_choice_ops::get) (gp_widget *self, enum gp_widget_choice_op op) |
Returns a selected choice or number of choices.
self | A choice widget. |
op | A value to return. |
Definition at line 54 of file gp_widget_class_choice.h.
const char *(* gp_widget_choice_ops::get_choice) (gp_widget *self, size_t idx) |
Returns a description for a choice.
self | A choice widget. |
idx | A choice index. |
Definition at line 44 of file gp_widget_class_choice.h.
void(* gp_widget_choice_ops::set) (gp_widget *self, size_t sel) |
Sets the selected choice.
self | A choice widget. |
sel | A selected choice. |
Definition at line 61 of file gp_widget_class_choice.h.