Rechercher une page de manuel
Clutter::Label.3pm
Langue: en
Version: 2008-02-20 (mandriva - 01/05/08)
Section: 3 (Bibliothèques de fonctions)
NAME
Clutter::LabelHIERARCHY
Glib::Object +----Glib::InitiallyUnowned +----Clutter::Actor +----Clutter::Label
INTERFACES
Glib::Object::_Unregistered::ClutterScriptable
METHODS
actor = Clutter::Label->new ($font_name=undef, $text=undef, $color=undef)
actor = Clutter::Label->new ($font_name=undef, $text=undef, $color=undef)
-
- •
- $font_name (string or undef)
- •
- $text (string or undef)
- •
- $color (Clutter::Color or undef)
alignment = $label->get_alignment
alignment = $label->get_alignment
$label->set_alignment ($alignment)
$label->set_alignment ($alignment)
-
- •
- $alignment (Gtk2::Pango::Alignment)
attrlist = $label->get_attributes
attrlist = $label->get_attributes
$label->set_attributes ($attrs)
$label->set_attributes ($attrs)
-
- •
- $attrs (Gtk2::Pango::AttrList)
color = $label->get_color
color = $label->get_color
$label->set_color ($color)
$label->set_color ($color)
-
- •
- $color (Clutter::Color)
ellipsizemode = $label->get_ellipsize
ellipsizemode = $label->get_ellipsize
$label->set_ellipsize ($mode)
$label->set_ellipsize ($mode)
-
- •
- $mode (Gtk2::Pango::EllipsizeMode)
string or undef = $label->get_font_name
string or undef = $label->get_font_name
$label->set_font_name ($font_name)
$label->set_font_name ($font_name)
-
- •
- $font_name (string)
boolean = $label->get_justify
boolean = $label->get_justify
$label->set_justify ($justify)
$label->set_justify ($justify)
-
- •
- $justify (boolean)
layout = $label->get_layout
layout = $label->get_layout
boolean = $label->get_line_wrap
boolean = $label->get_line_wrap
wrapmode = $label->get_line_wrap_mode
wrapmode = $label->get_line_wrap_mode
$label->set_line_wrap_mode ($wrap_mode)
$label->set_line_wrap_mode ($wrap_mode)
-
- •
- $wrap_mode (Gtk2::Pango::WrapMode)
$label->set_line_wrap ($line_wrap)
$label->set_line_wrap ($line_wrap)
-
- •
- $line_wrap (boolean)
string or undef = $label->get_text
string or undef = $label->get_text
$label->set_text ($text)
$label->set_text ($text)
-
- •
- $text (string or undef)
boolean = $label->get_use_markup
boolean = $label->get_use_markup
$label->set_use_markup ($use_markup)
$label->set_use_markup ($use_markup)
-
- •
- $use_markup (boolean)
PROPERTIES
- 'alignment' (Gtk2::Pango::Alignment : readable / writable / private)
- The preferred alignment for the string
- 'attributes' (Gtk2::Pango::AttrList : readable / writable / private)
- A list of style attributes to apply to the text of the label
- 'color' (Clutter::Color : readable / writable / private)
- Font Colour
- 'ellipsize' (Gtk2::Pango::EllipsizeMode : readable / writable / private)
- The preferred place to ellipsize the string, if the label does not have enough room to display the entire string
- 'font-name' (string : readable / writable / private)
- Pango font description
- 'justify' (boolean : readable / writable / private)
- Whether the contents of the label should be justified
- 'text' (string : readable / writable / private)
- Text to render
- 'use-markup' (boolean : readable / writable / private)
- The text of the label includes XML markup. See pango_parse_markup()
- 'wrap' (boolean : readable / writable / private)
- If set, wrap lines if the text becomes too wide
- 'wrap-mode' (Gtk2::Pango::WrapMode : readable / writable / private)
- If wrap is set, controls how line-wrapping is done
ENUMS AND FLAGS
enum Gtk2::Pango::Alignment
- •
- 'left' / 'PANGO_ALIGN_LEFT'
- •
- 'center' / 'PANGO_ALIGN_CENTER'
- •
- 'right' / 'PANGO_ALIGN_RIGHT'
enum Gtk2::Pango::EllipsizeMode
- •
- 'none' / 'PANGO_ELLIPSIZE_NONE'
- •
- 'start' / 'PANGO_ELLIPSIZE_START'
- •
- 'middle' / 'PANGO_ELLIPSIZE_MIDDLE'
- •
- 'end' / 'PANGO_ELLIPSIZE_END'
enum Gtk2::Pango::WrapMode
- •
- 'word' / 'PANGO_WRAP_WORD'
- •
- 'char' / 'PANGO_WRAP_CHAR'
- •
- 'word-char' / 'PANGO_WRAP_WORD_CHAR'
SEE ALSO
Clutter, Glib::Object, Glib::InitiallyUnowned, Clutter::ActorCOPYRIGHT
Copyright (C) 2006 OpenedHand Ltd.This module is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public Library version 2.1, or under the terms of the Artistic License. See Clutter for the full copyright notice.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre