Widgets
Some basic widgets.
boolean seduce_widget_button_icon(BInputState *input, void *id, uint icon, float pos_x, float pos_y, float scale, float time, float *color);
Description: Draws a button in the form of an icon.boolean seduce_widget_button_invisible(BInputState *input, void *id, float pos_x, float pos_y, float scale, boolean down_click);
Description: Creates an invisble button.seduce_widget_toggle_icon
boolean seduce_widget_toggle_icon(BInputState *input, void *id, boolean *value, uint icon, float pos_x, float pos_y, float scale, float time);
Description: Creates an icon button that is a toggle.seduce_widget_slider_line
boolean seduce_widget_slider_line(BInputState *input, void *id, float *value, float pos_a_x, float pos_a_y, float pos_b_x, float pos_b_y, float size, float scale, float min, float max, float time, float *color, boolean snaps);
Description: Creates a linear slider between two points. The snaps option enables rulers for precise values.seduce_widget_slider_radial
boolean seduce_widget_slider_radial(BInputState *input, void *id, float *value, float pos_x, float pos_y, float size, float scale, float min, float max, float time, float *color);
Description: Creates a radial slider.seduce_widget_slider_radius
boolean seduce_widget_slider_radius(BInputState *input, void *id, float *value, float pos_x, float pos_y, float size, float time, float *color);
Description: Creates a radius slider. (Useful for things like brush sizes.)seduce_widget_color_wheel_radial
boolean seduce_widget_color_wheel_radial(BInputState *input, void *id, float *color, float pos_x, float pos_y, float size, float scale, float time);
Description: Cretes a color wheel with Hue and Saturationseduce_widget_color_triangle_radial
boolean seduce_widget_color_triangle_radial(BInputState *input, void *id, float *color, float pos_x, float pos_y, float size, float scale, float time);
Description: Creates a color trangle with Value and saturation.seduce_widget_color_square_radial
boolean seduce_widget_color_square_radial(BInputState *input, void *id, float *color, uint component, float pos_x, float pos_y, float size, float scale, float time);
Description: creates a color square that is an intersection of the RGB cube at either R, G or B component.seduce_widget_select_radial
STypeInState seduce_widget_select_radial(BInputState *input, void *id, uint *selected, char **lables, uint element_count, SPopUpType type, float pos_x, float pos_y, float size, float scale, float time, boolean release_only);
Description: creates a multi option popup menu.Types:
Enum:
STypeInState
S_TIS_IDLE |
Description: The type in function is idle. |
S_TIS_ACTIVE |
Description: The type in function is activly beeing used. |
S_TIS_DONE |
Description: The use th ethe type in function has just ben completed (mosst often by the user pressing Enter). |
Enum:
SPopUpType
S_PUT_TOP |
S_PUT_BOTTOM |
S_PUT_ANGLE |
S_PUT_BUTTON |
S_PUT_IMAGE |
S_PUT_COUNT |