Label
Object Hierarchy:
Description:
[
CCode ( type_id =
"champlain_label_get_type ()" ) ]
[
Version ( since =
"0.10" ) ]
public class Label :
Marker,
Implementor,
Location,
Animatable,
Container,
Scriptable
The Label structure contains only private data and should be accessed using the provided API
Content:
Properties:
- public Alignment alignment { get; set; }
The label's alignment
- public Color color { owned get; set; }
The label's color
- public bool draw_background { get; set; }
If the label has a background
- public bool draw_shadow { get; set; }
If the label background has a shadow
- public EllipsizeMode ellipsize { get; set; }
The label's ellipsize mode
- public string font_name { get; set; }
The label's text font name
- public Actor image { get; set; }
The image of the label
- public bool single_line_mode { get; set; }
If the label is in single line mode
- public string text { get; set; }
The text of the label
- public Color text_color { owned get; set; }
The label's text color
- public bool use_markup { get; set; }
If the label's text uses markup
- public bool wrap { get; set; }
If the label's text wrap is set
- public WrapMode wrap_mode { get; set; }
The label's text wrap mode
Creation methods:
- public Label ()
Creates a new instance of Label.
- public Label.from_file (string filename) throws Error
Creates a new instance of Label with image
loaded from file.
- public Label.full (string text, Actor actor)
Creates a new instance of Label consisting
of a custom Actor.
- public Label.with_image (Actor actor)
Creates a new instance of Label with image.
- public Label.with_text (string text, string? font, Color? text_color, Color? label_color)
Creates a new instance of Label with text
value.
Methods:
- public Alignment get_alignment ()
Get the label's text alignment.
- public AttrList get_attributes ()
Gets the label's text attributes.
- public Color? get_color ()
Gets the label's background color.
- public bool get_draw_background ()
Checks whether the label has a background.
- public bool get_draw_shadow ()
Checks whether the label's background has a shadow.
- public EllipsizeMode get_ellipsize ()
Gets the label's text ellipsize mode.
- public unowned string get_font_name ()
Gets the label's font name.
- public unowned Actor get_image ()
Get the label's image.
- public bool get_single_line_mode ()
Checks the label's single line mode.
- public unowned string get_text ()
Get the label's text.
- public Color? get_text_color ()
Gets the label's text color.
- public bool get_use_markup ()
Check whether the label uses markup.
- public bool get_wrap ()
Checks whether the label text wraps.
- public WrapMode get_wrap_mode ()
Gets the label's text wrap mode.
- public void set_alignment (Alignment alignment)
Sets the label's text alignment.
- public void set_attributes (AttrList list)
Sets the label's text attributes.
- public void set_color (Color? color)
Sets the label's background color.
- public void set_draw_background (bool background)
Sets if the label has a background.
- public void set_draw_shadow (bool shadow)
Sets if the label's background has a shadow.
- public void set_ellipsize (EllipsizeMode mode)
Sets the label's text ellipsize mode.
- public void set_font_name (string? font_name)
Sets the label's font name such as "Sans 12".
- public void set_image (Actor? image)
Sets the label's image.
- public void set_single_line_mode (bool mode)
Sets if the label's text is on a single line.
- public void set_text (string text)
Sets the label's text.
- public void set_text_color (Color? color)
Sets the label's text color.
- public void set_use_markup (bool use_markup)
Sets if the label's text uses markup.
- public void set_wrap (bool wrap)
Sets if the label's text wrap.
- public void set_wrap_mode (WrapMode wrap_mode)
Sets the label's text wrap mode.
Inherited Members:
All known members inherited from class Champlain.Marker
All known members inherited from class Clutter.Actor
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref
All known members inherited from interface Atk.Implementor
All known members inherited from interface Champlain.Location
All known members inherited from interface Clutter.Animatable
- animate_property
- find_property
- get_initial_state
- interpolate_value
All known members inherited from interface Clutter.Container
- @foreach
- actor_added
- actor_removed
- add
- add_actor
- add_valist
- child_get
- child_get_property
- child_notify
- child_set
- child_set_property
- class_find_child_property
- class_list_child_properties
- create_child_meta
- destroy_child_meta
- find_child_by_name
- find_child_property
- foreach_with_internals
- get_child_meta
- get_children
- list_child_properties
- lower_child
- raise_child
- remove
- remove_actor
- remove_valist
- sort_depth_order
All known members inherited from interface Clutter.Scriptable