+ (MUIPendisplay *) pendisplay

Default constructor

- (ULONG) aRGB
- (void) noNotifySetARGB:(ULONG)argb
- (void) noNotifySetRGBcolor:(struct MUI_RGBColor *)rgbcolor
- (void) noNotifySetReference:(MUIPendisplay *)reference
- (void) noNotifySetSpec:(struct MUI_PenSpec  *)spec
- (void) noNotifySetXRGB:(ULONG)xrgb
- (ULONG) pen

Between MUIM_Setup and MUIM_Cleanup, this attribute returns the pen number MUI uses for color representation of the current pendisplay object.

This attribute returns -1 when outside of MUIM_Setup/MUIM_Cleanup or when the pendisplay object didnt allocate a color on its own (e.g. because MUIA_Pendisplay_Reference).

- (struct MUI_RGBColor *) rGBcolor

Private attribute, only for PSI.

- (MUIPendisplay *) reference

Display exactly this pen, dont allocate one on your own.

- (void) setARGB:(ULONG)argb
- (IPTR) setColormap:(LONG)colormap

Switch the pendisplay object to a specific colormap entry.

- (IPTR) setMUIPen:(LONG)muipen

Switch the pendisplay object to a specific mui pen (MPEN_SHINE, MPEN_SHADOW, ...)

- (IPTR) setRGB:(ULONG)red green:(ULONG)green blue:(ULONG)blue

Switch the pendisplay object to an RGB value.

- (void) setRGBcolor:(struct MUI_RGBColor *)rgbcolor
- (void) setReference:(MUIPendisplay *)reference
- (void) setSpec:(struct MUI_PenSpec  *)spec
- (void) setXRGB:(ULONG)xrgb
- (struct MUI_PenSpec  *) spec

The black box structure MUI_PenSpec specifies a drawing pen which should be displayed by Pendisplay class. If you use Poppen class to allow your users to configure custom drawing pens, its this attribute that you need to get() and save in your preferences.

Use the functions MUI_ObtainPen() and MUI_ReleasePen() from muimaster.library and the MUIPEN() macro to get a usable value for SetAPen() from a struct MUI_PenSpec.

NOTE: In allmost all cases you will use Poppen class which is a subclass of Pendisplay class.

- (ULONG) xRGB

Sets the color to the provided 24bit RRGGBB value.