Project

General

Profile

OpenSpace3D libs
OpenSpace 3D libraries for plugITs and OS3D developer
Loading...
Searching...
No Matches

Functions

 renameEdTab (tabbarstr, tabstr, name)
 Rename a tab.
 
 dsEdTab (tabbarstr, tabstr)
 Destroy a tab.
 
 crEdTab (tabbarstr, name, mode, state)
 Create a new tab in tab bar.
 
 getEdTabWindow (tabstr)
 Get the windows structure of a tab.
 
 setEdTabCbFocused (tabstr, cbfun)
 Set the focused callback on a tab.
 
 resizeEdTabBar (tabbarstr, w, h)
 Resize a tab bar.
 
 dsEdTabBar (tabbarstr)
 Destroy a tab bar.
 
 crEdTabBarFromToolBar (tbstr, targetstr, x, y, w, h, margin, themestr)
 Create the tab bar on tool bar.
 

Detailed Description

Tab control

Function Documentation

◆ renameEdTab()

renameEdTab ( tabbarstr  ,
tabstr  ,
name   
)

Rename a tab.

Prototype: fun [EdTabBar EdTab S] I

Parameters
EdTabBar: tab bar structure
EdTab: tab structure
S: new name
Returns
I : 0

◆ dsEdTab()

dsEdTab ( tabbarstr  ,
tabstr   
)

Destroy a tab.

Prototype: fun [EdTabBar EdTab] I

Parameters
EdTabBar: tab bar structure
EdTab: tab structure
Returns
I : 0

◆ crEdTab()

crEdTab ( tabbarstr  ,
name  ,
mode  ,
state   
)

Create a new tab in tab bar.

Prototype: fun [EdTabBar S I I] EdTab

Parameters
EdTabBar: tab bar structure
S: tab label
I: tab mode ETAB_CLOSEBTN for a tab with close button
I: tab state 1 for selecting the tab after creation
Returns
EdTab : new tab structure

◆ getEdTabWindow()

getEdTabWindow ( tabstr  )

Get the windows structure of a tab.

Prototype: fun [EdTab] EdWindow

Parameters
EdTab: tab structure
Returns
EdWindow : windows structure

◆ setEdTabCbFocused()

setEdTabCbFocused ( tabstr  ,
cbfun   
)

Set the focused callback on a tab.

Prototype: fun [EdTab fun [EdTab] I] EdWindow

Parameters
EdTab: tab structure
fun[EdTab] I : callback fun

return fun [EdTab] I : same callback function

◆ resizeEdTabBar()

resizeEdTabBar ( tabbarstr  ,
,
 
)

Resize a tab bar.

Prototype: fun [EdTabBar I I] I

Parameters
EdTabBar: tab bar structure
I: new width
I: new height
Returns
I : 0

◆ dsEdTabBar()

dsEdTabBar ( tabbarstr  )

Destroy a tab bar.

Prototype: fun [EdTabBar] I

Parameters
EdTabBar: tab bar structure
Returns
I : 0

◆ crEdTabBarFromToolBar()

crEdTabBarFromToolBar ( tbstr  ,
targetstr  ,
,
,
,
,
margin  ,
themestr   
)

Create the tab bar on tool bar.

Prototype: fun [EdToolBar EdWindow I I I I I EdTheme] EdTabBar

Parameters
EdToolBar: tool bar structure
EdWindow: target window structure
I: x position
I: y position
I: width
I: height
I: text margin on tabs
EdTheme: theme structure
Returns
EdTabBar : the new tab bar