User Tools

Site Tools


DzColorWgt

DAZScript color widget.

More...

Inherits :

Properties

Constructors

DAZ Script
DzColorWgt ( DzWidget parent )

Signals

voidcolorChanged ( Color color )
voideditEnd ()
voideditStart ()
voidfloatColorChanged ( DzFloatColor color )

Detailed Description

Provides a control for displaying/selecting a color.

Properties


DzFloatColor : defaultFloatColorValue

Holds the default float value of the widget. 4.11.0.371


Color : defaultValue

Holds the deafult value of the widget.

Since:

  • 4.11.0.371

Boolean : displayAsInt

Holds whether or not values of each component are displayed as integers in the [0, 255] range, or as floating point values. true by default.

Since:

  • 4.11.0.218

Boolean : floatClamped

Holds whether or not the float color value of this control is clamped.

Since:

  • 4.11.0.218

DzFloatColor : floatColorValue

Holds the current float value of the widget.

Since:

  • 4.11.0.218

Number : floatMax

Holds the maximum allowable value for any component of a float color.

Since:

  • 4.11.0.218

Number : floatMin

Holds the minimum allowable value for any component of a float color.

Since:

  • 4.11.0.218

Boolean : indeterminate

Holds whether or not the widget is considered to have an 'indeterminate' or 'Multiple' value. false by default.


Boolean : isEditing

Holds whether or not the value is currently being edited. (Read Only)

Since:

  • 4.11.0.218

Boolean : restorable

Holds whether or not the default value is restorable if the user holds the [Shift+Alt] key when clicked.

Since:

  • 4.11.0.371

Color : value

Holds the current value of the widget.

Constructors


DzColorWgt( DzWidget parent )

Creates a color widget as a child of the given parent widget.

Parameter(s):

  • parent - The widget parent for the color widget.

Signals


void : colorChanged( Color color )

Signature:“colorChanged(const QColor&)”

Emitted when the color is changed.

Parameter(s):

  • color - The new color value of the control.

void : editEnd()

Signature:“editEnd()”

Emitted when an editing operation on the slider ends - e.g. the user finishes spinning a color field.


void : editStart()

Signature:“editStart()”

Emitted when an editing operation on the widget begins - e.g. the user starts spinning a color field.


void : floatColorChanged( DzFloatColor color )

Signature:“floatColorChanged(const DzFloatColor&)”

Emitted when the color is changed.

Parameter(s):

  • color - The new float color value of the control.

Since:

  • 4.11.0.218