FoColor

FoColor

Functions

Properties

guint blue Read / Write / Construct Only
guint green Read / Write / Construct Only
guint red Read / Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── FoObject
            ╰── FoDatatype
                ╰── FoColor

Description

Functions

fo_color_new_with_value ()

FoDatatype *
fo_color_new_with_value (guint red,
                         guint green,
                         guint blue);

Creates a new FoColor with specified values.

Parameters

red

Red component of new FoColor.

 

green

Green component of new FoColor.

 

blue

Blue component of new FoColor.

 

Returns

New FoColor.


fo_color_get_red ()

guint16
fo_color_get_red (FoDatatype *color);

Gets the 'red' component of color .

Parameters

color

FoColor.

 

Returns

'red' component of color .


fo_color_get_green ()

guint16
fo_color_get_green (FoDatatype *color);

Gets the 'green' component of color .

Parameters

color

FoColor.

 

Returns

'green' component of color .


fo_color_get_blue ()

guint16
fo_color_get_blue (FoDatatype *color);

Gets the 'blue' component of color .

Parameters

color

FoColor.

 

Returns

'blue' component of color .


fo_color_get_color_black ()

FoDatatype *
fo_color_get_color_black (void);

Get an FoColor with the well-known value for the color 'black'.

Returns

The FoColor.


fo_color_get_color_silver ()

FoDatatype *
fo_color_get_color_silver (void);

Get an FoColor with the well-known value for the color 'silver'.

Returns

The FoColor.


fo_color_get_color_gray ()

FoDatatype *
fo_color_get_color_gray (void);

Get an FoColor with the well-known value for the color 'gray'.

Returns

The FoColor.


fo_color_get_color_white ()

FoDatatype *
fo_color_get_color_white (void);

Get an FoColor with the well-known value for the color 'white'.

Returns

The FoColor.


fo_color_get_color_maroon ()

FoDatatype *
fo_color_get_color_maroon (void);

Get an FoColor with the well-known value for the color 'maroon'.

Returns

The FoColor.


fo_color_get_color_red ()

FoDatatype *
fo_color_get_color_red (void);

Get an FoColor with the well-known value for the color 'red'.

Returns

The FoColor.


fo_color_get_color_purple ()

FoDatatype *
fo_color_get_color_purple (void);

Get an FoColor with the well-known value for the color 'purple'.

Returns

The FoColor.


fo_color_get_color_fuchsia ()

FoDatatype *
fo_color_get_color_fuchsia (void);

Get an FoColor with the well-known value for the color 'fuchsia'.

Returns

The FoColor.


fo_color_get_color_green ()

FoDatatype *
fo_color_get_color_green (void);

Get an FoColor with the well-known value for the color 'green'.

Returns

The FoColor.


fo_color_get_color_lime ()

FoDatatype *
fo_color_get_color_lime (void);

Get an FoColor with the well-known value for the color 'lime'.

Returns

The FoColor.


fo_color_get_color_olive ()

FoDatatype *
fo_color_get_color_olive (void);

Get an FoColor with the well-known value for the color 'olive'.

Returns

The FoColor.


fo_color_get_color_yellow ()

FoDatatype *
fo_color_get_color_yellow (void);

Get an FoColor with the well-known value for the color 'yellow'.

Returns

The FoColor.


fo_color_get_color_navy ()

FoDatatype *
fo_color_get_color_navy (void);

Get an FoColor with the well-known value for the color 'navy'.

Returns

The FoColor.


fo_color_get_color_blue ()

FoDatatype *
fo_color_get_color_blue (void);

Get an FoColor with the well-known value for the color 'blue'.

Returns

The FoColor.


fo_color_get_color_teal ()

FoDatatype *
fo_color_get_color_teal (void);

Get an FoColor with the well-known value for the color 'teal'.

Returns

The FoColor.


fo_color_get_color_aqua ()

FoDatatype *
fo_color_get_color_aqua (void);

Get an FoColor with the well-known value for the color 'aqua'.

Returns

The FoColor.


fo_color_get_color_one_quarter ()

FoDatatype *
fo_color_get_color_one_quarter (FoDatatype *color);

Get an FoColor that is one-quarter the intensity of color .

Parameters

color

Original color.

 

Returns

A color with one-quarter the intensity of color .


fo_color_get_color_one_half ()

FoDatatype *
fo_color_get_color_one_half (FoDatatype *color);

Get an FoColor that is one-half the intensity of color .

Parameters

color

Original color.

 

Returns

A color with one-half the intensity of color .


fo_color_get_color_three_quarter ()

FoDatatype *
fo_color_get_color_three_quarter (FoDatatype *color);

Get an FoColor that is three-quarters of the intensity of color .

Parameters

color

Original color.

 

Returns

A color with three-quarters of the intensity of color .

Types and Values

FoColor

typedef struct _FoColor FoColor;

FoColorClass

typedef struct _FoColorClass FoColorClass;

FO_COLOR_COMPONENT_MAX

#define FO_COLOR_COMPONENT_MAX 65535

Property Details

The “blue” property

  “blue”                     guint

Color blue value.

Owner: FoColor

Flags: Read / Write / Construct Only

Allowed values: <= 65535

Default value: 0


The “green” property

  “green”                    guint

Color green value.

Owner: FoColor

Flags: Read / Write / Construct Only

Allowed values: <= 65535

Default value: 0


The “red” property

  “red”                      guint

Color red value.

Owner: FoColor

Flags: Read / Write / Construct Only

Allowed values: <= 65535

Default value: 0