38typedef struct SelectInterface SelectInterface;
100struct SelectInterface {
105 ControlInterface controlInterface;
115 void (*addOption)(
Select *self,
const char *title, ident value);
125 Select *(*initWithFrame)(
Select *self,
const SDL_Rect *frame);
134 Option *(*optionWithValue)(
const Select *self, ident value);
142 void (*removeAllOptions)(
Select *self);
160 void (*removeOptionWithValue)(
Select *self, ident value);
178 void (*selectOptionWithValue)(
Select *self, ident value);
196 Array *(*selectedOptions)(
const Select *self);
Controls are Views which capture and respond to events.
OBJECTIVELYMVC_EXPORT Class * _Select(void)
StackViews are containers that manage the arrangement of their subviews.
#define OBJECTIVELYMVC_EXPORT
Controls are Views which capture and respond to events.
The Select delegate protocol.
ident self
The delegate self-reference.
void(* didSelectOption)(Select *select, Option *option)
Called when a selection is made.
A Control allowing users to select one or more Options.
SelectInterface * interface
The interface.
SelectDelegate delegate
The SelectDelegate.
Comparator comparator
An optional Comparator to sort Options.
Array * options
The Options.
StackView * stackView
The StackView for rendering the Options.
Control control
The superclass.
StackViews are containers that manage the arrangement of their subviews.