FoText

FoText

Functions

Properties

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── FoObject
            ╰── FoNode
                ╰── FoFo
                    ╰── FoText

Implemented Interfaces

FoText implements FoInlineFoIface.

Description

Functions

fo_text_new ()

FoFo *
fo_text_new (void);

Creates a new FoText initialized to default value.

Returns

the new FoText


fo_text_set_color ()

void
fo_text_set_color (FoFo *fo_fo,
                   FoProperty *new_color);

Sets the color property of text to new_color

Parameters

fo_fo

The FoFo object

 

new_color

The new "color" property value

 

fo_text_get_color ()

FoProperty *
fo_text_get_color (FoFo *fo_fo);

Gets the color property of text

Parameters

fo_fo

The FoFo object

 

Returns

The "color" property value


fo_text_set_font_family ()

void
fo_text_set_font_family (FoFo *fo_fo,
                         FoProperty *new_font_family);

Sets the font-family property of text to new_font_family

Parameters

fo_fo

The FoFo object

 

new_font_family

The new "font-family" property value

 

fo_text_get_font_family ()

FoProperty *
fo_text_get_font_family (FoFo *fo_fo);

Gets the font-family property of text

Parameters

fo_fo

The FoFo object

 

Returns

The "font-family" property value


fo_text_set_font_size ()

void
fo_text_set_font_size (FoFo *fo_fo,
                       FoProperty *new_font_size);

Sets the font-size property of text to new_font_size

Parameters

fo_fo

The FoFo object

 

new_font_size

The new "font-size" property value

 

fo_text_get_font_size ()

FoProperty *
fo_text_get_font_size (FoFo *fo_fo);

Gets the font-size property of text

Parameters

fo_fo

The FoFo object

 

Returns

The "font-size" property value


fo_text_set_font_stretch ()

void
fo_text_set_font_stretch (FoFo *fo_fo,
                          FoProperty *new_font_stretch);

Sets the font-stretch property of text to new_font_stretch

Parameters

fo_fo

The FoFo object

 

new_font_stretch

The new "font-stretch" property value

 

fo_text_get_font_stretch ()

FoProperty *
fo_text_get_font_stretch (FoFo *fo_fo);

Gets the font-stretch property of text

Parameters

fo_fo

The FoFo object

 

Returns

The "font-stretch" property value


fo_text_set_font_style ()

void
fo_text_set_font_style (FoFo *fo_fo,
                        FoProperty *new_font_style);

Sets the font-style property of text to new_font_style

Parameters

fo_fo

The FoFo object

 

new_font_style

The new "font-style" property value

 

fo_text_get_font_style ()

FoProperty *
fo_text_get_font_style (FoFo *fo_fo);

Gets the font-style property of text

Parameters

fo_fo

The FoFo object

 

Returns

The "font-style" property value


fo_text_set_font_variant ()

void
fo_text_set_font_variant (FoFo *fo_fo,
                          FoProperty *new_font_variant);

Sets the font-variant property of text to new_font_variant

Parameters

fo_fo

The FoFo object

 

new_font_variant

The new "font-variant" property value

 

fo_text_get_font_variant ()

FoProperty *
fo_text_get_font_variant (FoFo *fo_fo);

Gets the font-variant property of text

Parameters

fo_fo

The FoFo object

 

Returns

The "font-variant" property value


fo_text_set_font_weight ()

void
fo_text_set_font_weight (FoFo *fo_fo,
                         FoProperty *new_font_weight);

Sets the font-weight property of text to new_font_weight

Parameters

fo_fo

The FoFo object

 

new_font_weight

The new "font-weight" property value

 

fo_text_get_font_weight ()

FoProperty *
fo_text_get_font_weight (FoFo *fo_fo);

Gets the font-weight property of text

Parameters

fo_fo

The FoFo object

 

Returns

The "font-weight" property value


fo_text_set_score_spaces ()

void
fo_text_set_score_spaces (FoFo *fo_fo,
                          FoProperty *new_score_spaces);

Sets the score-spaces property of text to new_score_spaces

Parameters

fo_fo

The FoFo object

 

new_score_spaces

The new "score-spaces" property value

 

fo_text_get_score_spaces ()

FoProperty *
fo_text_get_score_spaces (FoFo *fo_fo);

Gets the score-spaces property of text

Parameters

fo_fo

The FoFo object

 

Returns

The "score-spaces" property value


fo_text_set_value ()

void
fo_text_set_value (FoFo *fo_fo,
                   const gchar *new_value);

Sets the value property of fo_fo to new_value

Parameters

fo_fo

The FoText object

 

new_value

The new "value" property value

 

fo_text_get_value ()

const gchar *
fo_text_get_value (FoFo *fo_fo);

Gets the "value" property of fo_text

Parameters

fo_fo

The FoText object

 

Returns

The "value" property value


fo_text_get_whitespace_only ()

gboolean
fo_text_get_whitespace_only (FoFo *fo_fo);

Gets the "whitespace_only" property of fo_fo

Parameters

fo_fo

The FoText object

 

Returns

The "whitespace_only" property value

Types and Values

FoText

typedef struct _FoText FoText;

FoTextClass

typedef struct _FoTextClass FoTextClass;

Property Details

The “color” property

  “color”                    FoProperty *

Color property.

Owner: FoText

Flags: Read


The “font-family” property

  “font-family”              FoProperty *

Font Family property.

Owner: FoText

Flags: Read


The “font-size” property

  “font-size”                FoProperty *

Font Size property.

Owner: FoText

Flags: Read


The “font-stretch” property

  “font-stretch”             FoProperty *

Font Stretch property.

Owner: FoText

Flags: Read


The “font-style” property

  “font-style”               FoProperty *

Font Style property.

Owner: FoText

Flags: Read


The “font-variant” property

  “font-variant”             FoProperty *

Font Variant property.

Owner: FoText

Flags: Read


The “font-weight” property

  “font-weight”              FoProperty *

Font Weight property.

Owner: FoText

Flags: Read


The “score-spaces” property

  “score-spaces”             FoProperty *

Score Spaces property.

Owner: FoText

Flags: Read


The “value” property

  “value”                    char *

String value property.

Owner: FoText

Flags: Read

Default value: NULL


The “whitespace-only” property

  “whitespace-only”          gboolean

Whether or not the text object contains only whitespace characters.

Owner: FoText

Flags: Read

Default value: FALSE