Tab control
[OpenSpace3D high level 2D library]

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 ( 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 ( tabbarstr  ,
tabstr   
)

Destroy a tab.

Prototype: fun [EdTabBar EdTab] I

Parameters:
EdTabBar : tab bar structure
EdTab : tab structure
Returns:
I : 0
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 ( tabstr   ) 

Get the windows structure of a tab.

Prototype: fun [EdTab] EdWindow

Parameters:
EdTab : tab structure
Returns:
EdWindow : windows structure
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 ( 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 ( tabbarstr   ) 

Destroy a tab bar.

Prototype: fun [EdTabBar] I

Parameters:
EdTabBar : tab bar structure
Returns:
I : 0
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
 All Data Structures Files Functions Variables Typedefs
Generated on Mon Jul 5 21:30:13 2010 for OpenSpace3D libs by  doxygen 1.6.3