formZ SDK | 5.0 API Reference | System | User Interface (FUIM) | Templates

fz_fuim_new_color_box2

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(

fz_fuim_tmpl_ptr

fuim_tmpl,

short

parent,

short

id,

fzrt_int

flags,

char *

picker_title,

float *

col,

fz_fuim_item_func

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

fz_fuim_new_color_box

Function Set

fz_fuim_fset


Defined in

fz_fuim_api.h