386 {
387
388 ((ObjectInterface *) clazz->interface)->dealloc =
dealloc;
389
390 ((ViewInterface *) clazz->interface)->init =
init;
392 ((ViewInterface *) clazz->interface)->sizeThatFits =
sizeThatFits;
393
394 ((ControlInterface *) clazz->interface)->captureEvent =
captureEvent;
395 ((ControlInterface *) clazz->interface)->stateDidChange =
stateDidChange;
396
397 ((SelectInterface *) clazz->interface)->addOption =
addOption;
398 ((SelectInterface *) clazz->interface)->initWithFrame =
initWithFrame;
399 ((SelectInterface *) clazz->interface)->optionWithValue =
optionWithValue;
400 ((SelectInterface *) clazz->interface)->removeAllOptions =
removeAllOptions;
401 ((SelectInterface *) clazz->interface)->removeOption =
removeOption;
403 ((SelectInterface *) clazz->interface)->selectOption =
selectOption;
405 ((SelectInterface *) clazz->interface)->selectedOption =
selectedOption;
406 ((SelectInterface *) clazz->interface)->selectedOptions =
selectedOptions;
407}
CollectionView * init(CollectionView *self, const SDL_Rect *frame)
Initializes this CollectionView with the specified frame and style.
void stateDidChange(Control *self)
Called when the state of this Control changes.
Array * selectedOptions(const Select *self)
void removeOptionWithValue(Select *self, ident value)
Removes first the Option with the given value.
void addOption(Select *self, const char *title, ident value)
Creates and adds a new Option to this Select.
void selectOptionWithValue(Select *self, ident value)
Selects the first Option with the given value.
void removeOption(Select *self, Option *option)
Removes the specified Option.
Option * optionWithValue(const Select *self, ident value)
void removeAllOptions(Select *self)
Removes all Options from this Select.
void sizeThatFits(const View *self)
layoutSubviews(View *self)
Performs layout for this View's immediate subviews.