r3collum

r3collum

Class

real/gadget/r3collum.h

Library

r3gad

Description:

Luminosity gadget. This gadget is a vertical slider which allows the user to choose color from a given color gradient 0,0,0 ... R,G,B. This control is typically used with the color wheel gadget

See Also

oops/r3gadget.h

Super Class

r3Gadget

R3CLID_GADGET

JavaScript

r3Luminositygadget

Class Identifier

R3CLID_LUMINOSITYGADGET - 606

Methods

RENDER, RENDEROPTIMIZED, WINDOWEVENT,

Attributes

Luminosity, ColorRGBA, Window, Packer,

R3LUMGM_RENDER

Method

RENDER

Identifier

R3LUMGM_RENDER

JavaScript

obj.RENDER();

Description

Ask the gadget to render itself when it has no better things to do. Note that this simply asks the gadget to render itself. The actual rendering is done in RENDEROPTIMIZED method. No need to touch this, unless you are going to change the look of the gadget.

R3LUMGM_RENDEROPTIMIZED

Method

RENDEROPTIMIZED

Identifier

R3LUMGM_RENDEROPTIMIZED

JavaScript

obj.RENDEROPTIMIZED();

Description

Renders the luminosity gradient and the current pen position.

R3LUMGM_WINDOWEVENT

Method

WINDOWEVENT

Identifier

R3LUMGM_WINDOWEVENT

Param 3:

R3WINDOWEVENT*, window event.

JavaScript

obj.WINDOWEVENT(p3);

Description

The gadget owns window for rendering the gradient. Window events, are mapped to the gadget using this method.

Luminosity

Attribute

Luminosity

Identifier

R3LUMGA_Luminosity

JavaScript type

Number

C type

R3FLOAT

Description

0 ... 1

Syntax


jsobj.SetLuminosity(value);
value = jsobj.GetLuminosity();


R3FLOAT value = ...;
R3SetAttrs(r3obj, R3LUMGA_Luminosity, value, R3TAG_END);
R3FLOAT value;
R3GetAttrs(r3obj, R3LUMGA_Luminosity, &value, R3TAG_END);

ColorRGBA

Attribute

ColorRGBA

Identifier

R3LUMGA_ColorRGBA

Type

r3Vect4

Description

the color for the gradient

Syntax


jsobj.SetColorRGBA(value);
value = jsobj.GetColorRGBA();


R3FLOATCOLOR value = ...;
R3SetAttrs(r3obj, R3LUMGA_ColorRGBA, value, R3TAG_END);
R3FLOATCOLOR value;
R3GetAttrs(r3obj, R3LUMGA_ColorRGBA, &value, R3TAG_END);

Window

Attribute

Window

Identifier

R3LUMGA_Window

JavaScript type

Object

C type

R3OBJ*

Description

window for gradient rendering

Syntax


value = jsobj.GetWindow();


R3OBJ* value;
R3GetAttrs(r3obj, R3LUMGA_Window, &value, R3TAG_END);

Packer

Attribute

Packer

Identifier

R3LUMGA_Packer

JavaScript type

Object

C type

R3OBJ*

Description

gadget's geometry manager

Syntax


value = jsobj.GetPacker();


R3OBJ* value;
R3GetAttrs(r3obj, R3LUMGA_Packer, &value, R3TAG_END);

Registry function

R3_LUMINOSITYGADGET_H