formZ SDK | 5.0 API Reference | System | User Interface (FUIM) | Templates
Description
Creates a new color picker item (using a float for the color).
Pass FZ_FUIM_NONE for id to not assign a specific item id.
An id will be created and assigned to the item.
Pass FZ_FUIM_ROOT for parent if there is no parent group.
This function is the same as fz_fuim_new_color_box, except that
it takes an item function and and item data argument, as other
fuim item creation functions. Note, that the item function is called
less frequently for a color box. Its main use is for the FZ_FUIM_ACTN_NEW_VALUE
action, which indicates, that the color was changed. Other actions
are currently not supported.
Plugin Prototype
short fz_fuim_new_color_box2(
fuim_tmpl, | |
short | parent, |
short | id, |
fzrt_int | flags, |
char * | picker_title, |
float * | col, |
item_func, | |
void * | item_data ) |
Parameters
fuim_tmpl [Input]
fuim manager
parent [Input]
parent group
id [Input]
color picker item id
flags [Input]
construction flags
Bit Flag Type: fz_fuim_flag_enum
picker_title [Input]
[Input, Optional]
Default Value: a color picker item without a name is created
col [Input]
color
item_func [Input, Optional]
item function
item_data [Input, Optional]
data to pass to item function
Returns
Color picker item id
Availability
6.5.4.0
See Also
Function Set
Defined in