30#define _Class _TabViewItem
41 free(this->identifier);
49#pragma mark - TabViewItem
83 self->
view = retain(view);
104#pragma mark - Class lifecycle
111 ((ObjectInterface *) clazz->interface)->dealloc =
dealloc;
127 clazz = _initialize(&(
const ClassDef) {
128 .name =
"TabViewItem",
129 .superclass = _Object(),
131 .interfaceOffset = offsetof(
TabViewItem, interface),
132 .interfaceSize =
sizeof(TabViewItemInterface),
static View * init(View *self)
static Box * initWithFrame(Box *self, const SDL_Rect *frame)
static Label * initWithText(Label *self, const char *text, Font *font)
static void setState(TabViewItem *self, int state)
static TabViewItem * initWithView(TabViewItem *self, View *view)
Class * _TabViewItem(void)
static void dealloc(Object *self)
static void initialize(Class *clazz)
static TabViewItem * initWithIdentifier(TabViewItem *self, const char *identifier)
TabViewItems embed Views in a TabView.
static void removeClassName(View *self, const char *className)
static void addClassName(View *self, const char *className)
Labels provide a configurable container for Text.
TabViewItems embed Views in a TabView.
setState(TabViewItem *self, int state)
Sets this TabViewItem's state, which may alter its appearance.
int state
The bit mask of TabState.
TabViewItem * initWithView(TabViewItem *self, View *view)
Initializes this TabViewItem with the specified View.
View * view
The View this TabViewItem embeds.
Label * label
The Label used to select this tab.
char * identifier
The identifier.
Views are the fundamental building blocks of ObjectivelyMVC user interfaces.
char * identifier
An optional identifier.