Project:DUI

Class List Class Hierarchy
Summary: Ctors Methods Mixins

Module ddi.Color

Class Color

Implemented interfaces:


public class

Color



Color

Constructor Summary
(GdkColor* gdkColor)
          
public ()
          Creates a new Color
(ubyte red, ubyte green, ubyte blue)
          
(guint16 red, guint16 green, guint16 blue)
          Creates a new Color with RGB values
(uint rgb)
          
(int rgb)
          

Methods Summary
void set(guint16 red, guint16 green, guint16 blue)
          Sets the Color with RGB values
void set8(ubyte red, ubyte green, ubyte blue)
          
uint getValue()
          
int getValue24()
          
uint getPixelValue()
          
bit allocColor()
          allocColor \bug all colors became black
GdkColor* gdkColor()
          gets the gdkColor




ctor(Color)(GdkColor* gdkColor)



public ctor(Color)()
Creates a new Color



ctor(Color)(ubyte red, ubyte green, ubyte blue)



ctor(Color)(guint16 red, guint16 green, guint16 blue)
Creates a new Color with RGB values

Parameters:
red -
green -
blue -



ctor(Color)(uint rgb)



ctor(Color)(int rgb)

set

void set(guint16 red, guint16 green, guint16 blue)
Sets the Color with RGB values

Parameters:
red -
green -
blue -

set8

void set8(ubyte red, ubyte green, ubyte blue)

getValue

uint getValue()

getValue24

int getValue24()

getPixelValue

uint getPixelValue()

allocColor

bit allocColor()
allocColor \bug all colors became black

gdkColor

GdkColor* gdkColor()
gets the gdkColor

Returns:
the GdkColor