Coloradjust.mui Class Reference

BOOPSI custom class Coloradjust.mui (MUI 3.8 dev). Each ### sub-section below documents one of the class's attributes or methods. Sub-classes of Coloradjust.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


Coloradjust.mui


MUIA_Coloradjust_Blue

MUIA_Coloradjust_Blue -- (V4 ) [ISG], ULONG

Function

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

See also

MUIA_Coloradjust_Green, MUIA_Coloradjust_Red, MUIA_Coloradjust_RGB, MUIA_Coloradjust_ModeID


MUIA_Coloradjust_Green

MUIA_Coloradjust_Green -- (V4 ) [ISG], ULONG

Function

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

See also

MUIA_Coloradjust_Red, MUIA_Coloradjust_Blue, MUIA_Coloradjust_RGB, MUIA_Coloradjust_ModeID


MUIA_Coloradjust_ModeID

MUIA_Coloradjust_ModeID -- (V4 ) [ISG], ULONG

Function

This attribute tells the coloradjust object for which screen mode the color shall be adjusted. The object queries the display data base for some mode attributes (such as supported number of red/green/blue bits) and adjusts its display accordingly, giving the user an idea of what colors are supported. Omitting this attribute does not affect the functionality of a coloradjust object. The user will still be able to adjust a color. However, if you know the ModeID, you should supply it.

Example

set(cadj,MUIA_Coloradjust_ModeID,GetVPModeID(viewport));

See also

MUIA_Coloradjust_RGB


MUIA_Coloradjust_Red

MUIA_Coloradjust_Red -- (V4 ) [ISG], ULONG

Function

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

See also

MUIA_Coloradjust_Green, MUIA_Coloradjust_Blue, MUIA_Coloradjust_RGB, MUIA_Coloradjust_ModeID


MUIA_Coloradjust_RGB

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

Function

Set or get the red/green/blue values 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(cadj,MUIA_Coloradjust_RGB,rgb);
ULONG *rgb;
get(cadj,MUIA_Coloradjust_RGB,&rgb);
printf("red=%08lx green=%08lx blue=%08lx\n",rgb[0],rgb[1],rgb[2]);

See also

MUIA_Coloradjust_Green, MUIA_Coloradjust_Blue, MUIA_Coloradjust_Red, MUIA_Coloradjust_ModeID