Colorfield.mui Class Reference

BOOPSI custom class Colorfield.mui (MUI 3.8 dev). Each ### sub-section below documents one of the class's attributes or methods. Sub-classes of Colorfield.mui are listed at the end under Sub-classes; the class hierarchy itself is documented in the MUI classes index.

Function index

Class definition

Attributes


Colorfield.mui


MUIA_Colorfield_Blue

MUIA_Colorfield_Blue -- (V4 ) [ISG], ULONG

Function

Set or get the 32-bit blue component of the fields color. Values range from 0 (no blue) to $ffffffff (full blue).

See also

MUIA_Colorfield_Green, MUIA_Colorfield_Red, MUIA_Colorfield_RGB


MUIA_Colorfield_Green

MUIA_Colorfield_Green -- (V4 ) [ISG], ULONG

Function

Set or get the 32-bit green component of the fields color. Values range from 0 (no green) to $ffffffff (full green).

See also

MUIA_Colorfield_Red, MUIA_Colorfield_Blue, MUIA_Colorfield_RGB


MUIA_Colorfield_Pen

MUIA_Colorfield_Pen -- (V4 ) [..G], ULONG

Function

When specified, the colorfield uses exactly this pen instead of trying to obtain a new one.

See also

MUIA_Colorfield_RGB


MUIA_Colorfield_Red

MUIA_Colorfield_Red -- (V4 ) [ISG], ULONG

Function

Set or get the 32-bit red component of the fields color. Values range from 0 (no red) to $ffffffff (full red).

See also

MUIA_Colorfield_Green, MUIA_Colorfield_Blue, MUIA_Colorfield_RGB


MUIA_Colorfield_RGB

**MUIA_Colorfield_RGB -- (V4 ) [ISG], ULONG ***

Function

Set or get the red/green/blue values of a colorfield all at once. You pass in / receive a pointer to three longwords containing the 32-bit red, green and blue values.

Example

ULONG rgb[3] = { 0xa000000,0xdeadbeaf,0x42424242 };
set(field,MUIA_Colorfield_RGB,rgb);
ULONG *rgb;
get(field,MUIA_Colorfield_RGB,&rgb);
printf("red=%08lx green=%08lx blue=%08lx\n",rgb[0],rgb[1],rgb[2]);

See also

MUIA_Colorfield_Green, MUIA_Colorfield_Blue, MUIA_Colorfield_Red