29#define _Class _TabViewItem
40 free(this->identifier);
48#pragma mark - TabViewItem
82 self->
view = retain(view);
103#pragma mark - Class lifecycle
110 ((ObjectInterface *) clazz->interface)->dealloc =
dealloc;
113 ((TabViewItemInterface *) clazz->interface)->initWithView =
initWithView;
126 clazz = _initialize(&(
const ClassDef) {
127 .name =
"TabViewItem",
128 .superclass = _Object(),
130 .interfaceOffset = offsetof(
TabViewItem, interface),
131 .interfaceSize =
sizeof(TabViewItemInterface),
static void dealloc(Object *self)
static void initialize(Class *clazz)
TabViewItems embed Views in a TabView.
Box * initWithFrame(Box *self, const SDL_Rect *frame)
Initializes this Box with the given frame.
CollectionView * init(CollectionView *self, const SDL_Rect *frame)
Initializes this CollectionView with the specified frame and style.
Labels provide a configurable container for Text.
Label * initWithText(Label *self, const char *text, Font *font)
Initializes this Label with the given text and Font.
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.
Class * _TabViewItem(void)
The TabViewItem archetype.
Label * label
The Label used to select this tab.
char * identifier
The identifier.
TableColumn * initWithIdentifier(TableColumn *self, const char *identifier)
Initializes this TableColumn with the given identifier.
Views are the fundamental building blocks of ObjectivelyMVC user interfaces.
void addClassName(View *self, const char *className)
Adds the given class name to this View.
char * identifier
An optional identifier.
void removeClassName(View *self, const char *className)
Removes the given class name to this View.