ColorPopup


Synopsis

Edit an RGB color

Input Ports

name

string

vis

int

red

float

green

float

blue

float

 

Description

ColorPopup defines a dialog box for editing a color in terms of RGB.

Input Ports

name

The dialog box's name. By default, the name is color_shell.

vis

An integer indicating whether ColorPopup's dialog box should appear: 0 means it should not appear; 1 means it should. Typical ways to make the dialog box appear are to connect the vis subobject to UIcmd.do or UIbutton.do. When the command or button is pressed, the dialog box becomes visible.

red
green
blue

Subobjects indicating color in terms of RGB. When the dialog box first appears, these objects determine the initial settings of the dialog box's widgets. When you change the widget's settings, ColorPopup in turn updates the subobjects connected to red, green, and blue.

Example

Libraries.Graphics_Display.Editors.UI_Editors.LightInfoEditor
Libraries.Graphics_Display.Editors.UI_Editors.PropsEditor

File

v/view.v

See also

For more information, see: