<--- Cannot embed stylesheet: [Errno 2] No such file or directory: '../../../../aros.css' --->

Coloradjust.mui

MUIA_Coloradjust_Blue

Function

Set or retrieve the stored blue component.

Inputs

Initialize, set and get, ULONG in 0..0xffffffff. Default 0xffffffff.

Notes

Programmatic changes retain all bits and synchronize controls; the
slider displays the high byte. RGB and component tags overwrite common
storage in tag order. Original setter tags drive notifications, without
automatic complementary tags. User movement of any RGB slider quantizes
all components as described by the class; wheel/gradient interactions
can update all components.

MUIA_Coloradjust_Green

Function

Set or retrieve the stored green component.

Inputs

Initialize, set and get, ULONG in 0..0xffffffff. Default 0xffffffff.

Notes

Programmatic changes retain all bits and synchronize controls; the
slider displays the high byte. RGB and component tags overwrite common
storage in tag order. Original setter tags drive notifications, without
automatic complementary tags. User movement of any RGB slider quantizes
all components as described by the class; wheel/gradient interactions
can update all components.

MUIA_Coloradjust_ModeID

Function

Declared display-mode attribute without local implementation.

Inputs

The header declares initialize, set and get with ULONG. This
implementation has no local handling, stored value or effective default.

Notes

Tags are passed to the superclass. The class does not select a screen,
depth or mode from this attribute; do not rely on it to configure the
editor or on a corresponding getter value.

MUIA_Coloradjust_RGB

Function

Set or retrieve the stored RGB triplet.

Inputs

Initialize and set with a non-NULL pointer to three readable ULONG
values ordered red, green, blue. Get returns a borrowed pointer to the
internal array. Default all 0xffffffff.

Notes

The values are copied synchronously, not the pointer. Getter storage
lasts until disposal but its contents change during setting or user
interaction; passing that array to Set is supported. Use attributes
instead of direct writes to synchronize controls. A programmatic RGB Set
forwards its original tag without synthesizing component notifications.
User interactions have the separate notification rules documented by the
class.

MUIA_Coloradjust_Red

Function

Set or retrieve the stored red component.

Inputs

Initialize, set and get, ULONG in 0..0xffffffff. Default 0xffffffff.

Notes

Programmatic changes retain all bits and synchronize controls; the
slider displays the high byte. RGB and component tags overwrite common
storage in tag order. Original setter tags drive notifications, without
automatic complementary tags. User movement of any RGB slider quantizes
all components as described by the class; wheel/gradient interactions
can update all components.

MUIC_Coloradjust

Superclass

Group.mui

Description

Edit RGB using three 0..255 sliders, a Colorfield preview and BOOPSI
color-wheel/gradient controls. Stored components default to 0xffffffff
each. Programmatic RGB updates preserve all 32 bits, while the sliders
display only the high byte. Moving any RGB slider reads all three
sliders and replicates each byte into all four bytes, so all components
are quantized to eight-bit precision by that interaction.
The constructor opens gadgets/colorwheel.gadget and
gadgets/gradientslider.gadget. It returns NULL on superclass
construction failure. The interface-acquisition/drop macros are no-ops
on AROS and do not test library availability. Dispose disposes Group
children and closes opened libraries. Normal Cleanup must precede
disposal for the gradient pen.

Methods

Programmatic Set synchronizes sliders, preview and wheel/gradient
without child notifications, then forwards the original tags to Group.
It does not synthesize all complementary RGB/component notifications.
Slider callbacks emit the selected component and RGB; wheel and gradient
callbacks emit all components and RGB. The latter paths update state
synchronously through hooks.
Setup calls Group, prepares a gradient pen when a wheel exists and
returns one even if exclusive pen allocation fails; the gradient then
retains shine/shadow fallback entries. The gradient pen represents the
selected hue/saturation at full brightness. Cleanup releases any gradpen
not equal to -1 and delegates to Group.

Notes

Missing gadget libraries are not a proven safe fallback. Constructor
expressions still create Boopsi wrappers under TAG_IGNORE and store
their pointers; ignored children are not owned through that Group child
tag. Conversion and hooks test wrapper pointers rather than library
availability. WheelFunc leaves brightness uninitialized without a
gradient; GradFunc assumes a wheel. gradpen is not initialized to -1
during construction, so Cleanup without the wheel Setup branch can
attempt to release pen zero. Use the complete gadget configuration and
normal lifecycle; degraded configurations have no safe operation
guarantee in this implementation.
RGB input pointers must address three ULONG values. Set uses tag order
and does not suppress equal values. Preview updates can recolor screen
pens through Colorfield. ModeID is declared but not implemented here.