Toolbar control
[OpenSpace3D high level 2D library]

Modules

 EdToolBar flags

Functions

 setEdToolBarText (t, cmptxt, val, txtcolor)
 Set a toolbar text value.
 crEdToolBarText (t, txt, fontname, fontsize, fontflag, txtcolor, flags, align)
 Create a toolbar text element.
 setEdToolBarCheckState (t, chk, state)
 Change the toolbar check element state.
 setEdToolBarCheckEnable (t, chk, state)
 Enable or disable the toolbar check element.
 setEdToolBarCheckCbClick (t, check, cbclick)
 Set the toolbar check element click callback.
 crEdToolBarCheck (t, abmp, align, bubble, cbclick)
 Create a toolbar check element.
 setEdToolBarButtonEnable (t, btn, state)
 Enable or disable the toolbar button element.
 setEdToolBarButtonCbClick (t, button, cbclick)
 Set the toolbar button element click callback.
 crEdToolBarButton (t, abmp, align, bubble, cbclick)
 Create a toolbar button element.
 crEdToolBarBitmap (t, abmp, align, bubble, cbclick)
 Create a toolbar bitmap element.
 sizeEdToolBar (t, x, y, w, h)
 Resize a toolbar.
 paintEdToolBar (t)
 Paint a toolbar.
 setEdToolBarDbClick (t, cbfun)
 Set the toolbar double click Callback.
 setEdToolBarClick (t, cbfun)
 Set the toolbar click Callback.
 setEdToolBarVisible (t, mode)
 Set the toolbar visibility.

Detailed Description

Toolbar control


Function Documentation

setEdToolBarText ( ,
cmptxt  ,
val  ,
txtcolor   
)

Set a toolbar text value.

Prototype: fun [EdToolBar CompText S I] I

Parameters:
EdToolBar : tool bar structure
CompText : toolbar element contain text
S : text value to set
I : text color
Returns:
I : 0
crEdToolBarText ( ,
txt  ,
fontname  ,
fontsize  ,
fontflag  ,
txtcolor  ,
flags  ,
align   
)

Create a toolbar text element.

Prototype: fun [EdToolBar S S I I I I I] CompText

Parameters:
EdToolBar : tool bar structure
S : text value to set
S : font name for the text
I : font size
I : font flags (FF_WEIGHT, FF_ITALIC, FF_UNDERLINE, FF_STRIKED, FF_PIXEL)
I : text color
I : CompText creation flags
I : toolbar align flag (ETB_ALIGN_LEFT, ETB_ALIGN_RIGHT, ETB_ALIGN_BOTTOM, ETB_ALIGN_TOP)
Returns:
CompText : the new text element
setEdToolBarCheckState ( ,
chk  ,
state   
)

Change the toolbar check element state.

Prototype: fun [EdToolBar CompCheck I] I

Parameters:
EdToolBar : tool bar structure
CompCheck : check element
I : new state, 0 for unchecked, 1 for checked
Returns:
I : 0
setEdToolBarCheckEnable ( ,
chk  ,
state   
)

Enable or disable the toolbar check element.

Prototype: fun [EdToolBar CompCheck I] I

Parameters:
EdToolBar : tool bar structure
CompCheck : check element
I : new state, 0 for disabled, 1 for enabled
Returns:
I : 0
setEdToolBarCheckCbClick ( ,
check  ,
cbclick   
)

Set the toolbar check element click callback.

Prototype: fun [EdToolBar CompCheck fun [EdToolBar CompCheck I I I] I ] I

Parameters:
EdToolBar : tool bar structure
CompCheck : check element
fun [EdToolBar CompCheck I I I] I : callback on click
Returns:
I : 0
crEdToolBarCheck ( ,
abmp  ,
align  ,
bubble  ,
cbclick   
)

Create a toolbar check element.

Prototype: fun [EdToolBar AlphaBitmap I S fun [EdToolBar CompCheck I I I] I] CompCheck

Parameters:
EdToolBar : tool bar structure
AlphaBitmap : alpha bitmap to use as graphic check
I : toolbar align flag (ETB_ALIGN_LEFT, ETB_ALIGN_RIGHT, ETB_ALIGN_BOTTOM, ETB_ALIGN_TOP)
S : tooltip text
fun [EdToolBar CompCheck I I I] I : callback on click
Returns:
I : 0
setEdToolBarButtonEnable ( ,
btn  ,
state   
)

Enable or disable the toolbar button element.

Prototype: fun [EdToolBar CompRollOver I] I

Parameters:
EdToolBar : tool bar structure
CompRollOver : button element
I : new state, 0 for disabled, 1 for enabled
Returns:
I : 0
setEdToolBarButtonCbClick ( ,
button  ,
cbclick   
)

Set the toolbar button element click callback.

Prototype: fun [EdToolBar CompRollOver fun [EdToolBar CompRollOver I I] I ] I

Parameters:
EdToolBar : tool bar structure
CompRollOver : button element
fun [EdToolBar CompRollOver I I] I : callback on click
Returns:
I : 0
crEdToolBarButton ( ,
abmp  ,
align  ,
bubble  ,
cbclick   
)

Create a toolbar button element.

Prototype: fun [EdToolBar AlphaBitmap I S fun [EdToolBar CompRollOver I I] I] CompRollOver

Parameters:
EdToolBar : tool bar structure
AlphaBitmap : alpha bitmap to use as graphic button
I : toolbar align flag (ETB_ALIGN_LEFT, ETB_ALIGN_RIGHT, ETB_ALIGN_BOTTOM, ETB_ALIGN_TOP)
S : tooltip text
fun [EdToolBar CompRollOver I I] I : callback on click
Returns:
I : 0
crEdToolBarBitmap ( ,
abmp  ,
align  ,
bubble  ,
cbclick   
)

Create a toolbar bitmap element.

Prototype: fun [EdToolBar AlphaBitmap I S fun [EdToolBar I I I] I] CompRollOver

Parameters:
EdToolBar : tool bar structure
AlphaBitmap : alpha bitmap to use as graphic bitmap
I : toolbar align flag (ETB_ALIGN_LEFT, ETB_ALIGN_RIGHT, ETB_ALIGN_BOTTOM, ETB_ALIGN_TOP)
S : tooltip text
fun [EdToolBar I I I] I : callback on click
Returns:
I : 0
sizeEdToolBar ( ,
,
,
,
 
)

Resize a toolbar.

Prototype: fun [EdToolBar I I I I] I

Parameters:
EdToolBar : tool bar structure
I : X position
I : Y position
I : width
I : height
Returns:
I : 0
paintEdToolBar (  ) 

Paint a toolbar.

Prototype: fun [EdToolBar] I

Parameters:
EdToolBar : tool bar structure
Returns:
I : 0
setEdToolBarDbClick ( ,
cbfun   
)

Set the toolbar double click Callback.

Prototype: fun [EdToolBar fun [EdToolBar I I I I] I]] I

Parameters:
EdToolBar : tool bar structure
fun [EdToolBar I I I I] I : double click callback
Returns:
I : 0
setEdToolBarClick ( ,
cbfun   
)

Set the toolbar click Callback.

Prototype: fun [EdToolBar fun [EdToolBar I I I I] I]] I

Parameters:
EdToolBar : tool bar structure
fun [EdToolBar I I I I] I : click callback
Returns:
I : 0
setEdToolBarVisible ( ,
mode   
)

Set the toolbar visibility.

Prototype: fun [EdToolBar I] I

Parameters:
EdToolBar : tool bar structure
I : 0 for hide, 1 for show
Returns:
I : 0
 All Data Structures Files Functions Variables Typedefs
Generated on Mon Jul 5 21:30:13 2010 for OpenSpace3D libs by  doxygen 1.6.3