ObjectivelyMVC
Object oriented MVC framework for SDL3 and GNU C
Loading...
Searching...
No Matches
TabViewItem.h File Reference

TabViewItems embed Views in a TabView. More...

#include <Objectively/Object.h>
#include <ObjectivelyMVC/Label.h>
#include <ObjectivelyMVC/ViewController.h>

Go to the source code of this file.

Data Structures

struct  TabViewItem
 TabViewItems embed Views in a TabView. More...
 

Enumerations

enum  TabState { TabStateDefault = 0x0 , TabStateSelected = 0x1 , TabStateDisabled = 0x2 }
 Tab states, which are bit-masked. More...
 

Functions

OBJECTIVELYMVC_EXPORT Class * _TabViewItem (void)
 

Detailed Description

TabViewItems embed Views in a TabView.

Definition in file TabViewItem.h.

Enumeration Type Documentation

◆ TabState

enum TabState

Tab states, which are bit-masked.

Enumerator
TabStateDefault 
TabStateSelected 
TabStateDisabled 

Definition at line 39 of file TabViewItem.h.

39 {
40 TabStateDefault = 0x0,
41 TabStateSelected = 0x1,
43} TabState;
TabState
Tab states, which are bit-masked.
Definition TabViewItem.h:39
@ TabStateSelected
Definition TabViewItem.h:41
@ TabStateDefault
Definition TabViewItem.h:40
@ TabStateDisabled
Definition TabViewItem.h:42

Function Documentation

◆ _TabViewItem()

OBJECTIVELYMVC_EXPORT Class * _TabViewItem ( void  )

Definition at line 128 of file TabViewItem.c.

128 {
129 static Class *clazz;
130 static Once once;
131
132 do_once(&once, {
133 clazz = _initialize(&(const ClassDef) {
134 .name = "TabViewItem",
135 .superclass = _Object(),
136 .instanceSize = sizeof(TabViewItem),
137 .interfaceOffset = offsetof(TabViewItem, interface),
138 .interfaceSize = sizeof(TabViewItemInterface),
140 });
141 });
142
143 return clazz;
144}
static void initialize(Class *clazz)
TabViewItems embed Views in a TabView.
Definition TabViewItem.h:52