- addTab
TabControl addTab(TabItem item, int index, bool enableCloseButton)
- addTab
TabControl addTab(string id, dstring label, string iconId, bool enableCloseButton)
add new tab by id and label string
- addTab
TabControl addTab(string id, string labelResourceId, string iconId, bool enableCloseButton)
add new tab by id and label string resource id
- getNextItemIndex
int getNextItemIndex(int direction)
find next or previous tab index, based on access time
- layout
void layout(Rect rc)
Set widget rectangle to specified value and layout widget contents. (Step 2 of two phase layout).
- measure
void measure(int parentWidth, int parentHeight)
Measure widget according to desired width and height constraints. (Step 1 of two phase layout).
- onDraw
void onDraw(DrawBuf buf)
Draw widget at its position to buffer
- onMouse
bool onMouse(Widget source, MouseEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
- onTabClose
void onTabClose(string tabId)
Undocumented in source. Be warned that the author may not have intended to support it.
- removeTab
TabControl removeTab(string id)
- renameTab
void renameTab(string ID, dstring name)
- renameTab
void renameTab(int index, dstring name)
- selectTab
void selectTab(int index, bool updateAccess)
Undocumented in source. Be warned that the author may not have intended to support it.
- setStyles
void setStyles(string tabStyle, string tabButtonStyle, string tabButtonTextStyle)
Undocumented in source. Be warned that the author may not have intended to support it.
- sortedItems
TabItemWidget[] sortedItems()
Undocumented in source. Be warned that the author may not have intended to support it.
- tab
TabItem tab(int index)
returns tab item by id (null if index out of range)
- tab
TabItem tab(string id)
returns tab item by id (null if not found)
- tab
const(TabItem) tab(string id)
returns tab item by id (null if not found)
- tabIndex
int tabIndex(string id)
get tab index by tab id (-1 if not found)
- updateAccessTs
void updateAccessTs()
Undocumented in source. Be warned that the author may not have intended to support it.
- updateTabs
void updateTabs()
Undocumented in source. Be warned that the author may not have intended to support it.
tab header - tab labels, with optional More button