Project

General

Profile

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

Functions

 getEdCtrlFloatValue (ctrlstr)
 Get a float control value.
 
 setEdCtrlFloatValue (ctrlstr, val)
 Set a float control value.
 
 setEdCtrlFloatNbDecimals (ctrlstr, nb0)
 Set a float control number of decimals.
 
 setEdCtrlFloatMinValue (ctrlstr, val)
 Set a float control minimum value.
 
 setEdCtrlFloatMaxValue (ctrlstr, val)
 Set a float control maximum value.
 
 setEdCtrlFloatValueWithoutCallback (ctrlstr, val)
 Set a float control value, but do not send the change callback.
 
 setEdCtrlFloatEnable (ctrlstr, state)
 Set a float control state.
 
 setEdCtrlFloatCbChange (ctrlstr, cbfun)
 Define the float control change value callback function.
 
 setEdCtrlFloatCbValidate (ctrlstr, cbfun)
 Define the float control validation callback function.
 
 setEdCtrlFloatCbChangedValue (ctrlstr, cbfun)
 Define the float control value changed callback when the validation occur and the value has really changed.
 
 crEdCtrlFloat (winstr, x, y, w, h, value, minval, maxval, incre, nb0, themestr, resize)
 Create a float control.
 
 dsEdCtrlFloat (ctrlstr)
 Destroy a float control.
 

Detailed Description

Float/Int control

Function Documentation

◆ getEdCtrlFloatValue()

getEdCtrlFloatValue ( ctrlstr  )

Get a float control value.

Prototype: fun [EdControl] I

Parameters
EdControl: float control structure
Returns
F : the float value

◆ setEdCtrlFloatValue()

setEdCtrlFloatValue ( ctrlstr  ,
val   
)

Set a float control value.

Prototype: fun [EdControl F] I

Parameters
EdControl: float control structure
F: the new float value
Returns
0

◆ setEdCtrlFloatNbDecimals()

setEdCtrlFloatNbDecimals ( ctrlstr  ,
nb0   
)

Set a float control number of decimals.

Prototype: fun [EdControl I] I

Parameters
EdControl: float control structure
I: the new number of decimals
Returns
0

◆ setEdCtrlFloatMinValue()

setEdCtrlFloatMinValue ( ctrlstr  ,
val   
)

Set a float control minimum value.

Prototype: fun [EdControl F] I

Parameters
EdControl: float control structure
F: the new minimum value
Returns
0

◆ setEdCtrlFloatMaxValue()

setEdCtrlFloatMaxValue ( ctrlstr  ,
val   
)

Set a float control maximum value.

Prototype: fun [EdControl F] I

Parameters
EdControl: float control structure
F: the new maximum value
Returns
0

◆ setEdCtrlFloatValueWithoutCallback()

setEdCtrlFloatValueWithoutCallback ( ctrlstr  ,
val   
)

Set a float control value, but do not send the change callback.

Prototype: fun [EdControl F] I

Parameters
EdControl: float control structure
F: the new float value
Returns
0

◆ setEdCtrlFloatEnable()

setEdCtrlFloatEnable ( ctrlstr  ,
state   
)

Set a float control state.

Prototype: fun [EdControl I] I

Parameters
EdControl: float control structure
I: 1 to enable, 0 the disable
Returns
0

◆ setEdCtrlFloatCbChange()

setEdCtrlFloatCbChange ( ctrlstr  ,
cbfun   
)

Define the float control change value callback function.

Prototype: fun [EdControl fun [EdControl F] u0] I

Parameters
EdControl: float control structure
fun[EdControl F] u0 : validate callback
-EdControl : the same float control structure
-F : the float value
Returns
0

◆ setEdCtrlFloatCbValidate()

setEdCtrlFloatCbValidate ( ctrlstr  ,
cbfun   
)

Define the float control validation callback function.

Prototype: fun [EdControl fun [EdControl F] u0] I

Parameters
EdControl: float control structure
fun[EdControl F] u0 : validation callback
-EdControl : the same float control structure
-F : the float value
Returns
0

◆ setEdCtrlFloatCbChangedValue()

setEdCtrlFloatCbChangedValue ( ctrlstr  ,
cbfun   
)

Define the float control value changed callback when the validation occur and the value has really changed.

Prototype: fun [EdControl fun [EdControl F F] u0] I

Parameters
EdControl: float control structure
fun[EdControl F] u0 : validation callback
-EdControl : the same float control structure
-F : the previous float value
-F : the new float value
Returns
0

◆ crEdCtrlFloat()

crEdCtrlFloat ( winstr  ,
,
,
,
,
value  ,
minval  ,
maxval  ,
incre  ,
nb0  ,
themestr  ,
resize   
)

Create a float control.

Prototype: fun [EdWindow I I I I F F F F I EdTheme I] EdControl

Parameters
EdWindow: parent control window
I: X position
I: Y position
I: width
I: height
F: default value
F: minium allowed value
F: maximum allowed value
F: increment value
I: number of decimal
EdTheme: theme structure to use
I: resize flags
Returns
EdControl

◆ dsEdCtrlFloat()

dsEdCtrlFloat ( ctrlstr  )

Destroy a float control.

Prototype: fun [EdControl] I

Parameters
EdControl: float control structure
Returns
0