r3collum
real/gadget/r3collum.h
r3gad
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
r3Gadget
R3CLID_GADGET
r3Luminositygadget
R3CLID_LUMINOSITYGADGET - 606
R3LUMGM_RENDER
RENDER
R3LUMGM_RENDER
obj.RENDER();
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
RENDEROPTIMIZED
R3LUMGM_RENDEROPTIMIZED
obj.RENDEROPTIMIZED();
Renders the luminosity gradient and the current pen position.
R3LUMGM_WINDOWEVENT
WINDOWEVENT
R3LUMGM_WINDOWEVENT
R3WINDOWEVENT*, window event.
obj.WINDOWEVENT(p3);
The gadget owns window for rendering the gradient. Window events, are mapped to the gadget using this method.
Luminosity
Luminosity
R3LUMGA_Luminosity
Number
R3FLOAT
0 ... 1
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
ColorRGBA
R3LUMGA_ColorRGBA
the color for the gradient
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
Window
R3LUMGA_Window
Object
R3OBJ*
window for gradient rendering
value = jsobj.GetWindow();
R3OBJ* value;
R3GetAttrs(r3obj, R3LUMGA_Window, &value, R3TAG_END);
Packer
Packer
R3LUMGA_Packer
Object
R3OBJ*
gadget's geometry manager
value = jsobj.GetPacker();
R3OBJ* value;
R3GetAttrs(r3obj, R3LUMGA_Packer, &value, R3TAG_END);
Registry function
R3_LUMINOSITYGADGET_H