=head1 NAME

Gtk2::Label

=head1 HIERARCHY

  Glib::Object
  +----Glib::Object::_Unregistered::GInitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::Misc
                      +----Gtk2::Label

=head1 INTERFACES

  Glib::Object::_Unregistered::AtkImplementorIface


=head1 METHODS

=head2 widget = Gtk2::Label-E<gt>B<new> ($str=undef)

=over

=over

=item * $str (string or undef) 

=back

=back

=head2 widget = Gtk2::Label-E<gt>B<new_with_mnemonic> ($str)

=over

=over

=item * $str (string) 

=back

=back

=head2 double = $label-E<gt>B<get_angle> 

=over

=back

=head2 $label-E<gt>B<set_angle> ($angle)

=over

=over

=item * $angle (double) 

=back

=back

=head2 attrlist = $label-E<gt>B<get_attributes> 

=over

=back

=head2 $label-E<gt>B<set_attributes> ($attrs)

=over

=over

=item * $attrs (Gtk2::Pango::AttrList) 

=back

=back

=head2 ellipsizemode = $label-E<gt>B<get_ellipsize> 

=over

=back

=head2 $label-E<gt>B<set_ellipsize> ($mode)

=over

=over

=item * $mode (Gtk2::Pango::EllipsizeMode) 

=back

=back

=head2 justification = $label-E<gt>B<get_justify> 

=over

=back

=head2 $label-E<gt>B<set_justify> ($jtype)

=over

=over

=item * $jtype (Gtk2::Justification) 

=back

=back

=head2 string = $label-E<gt>B<get_label> 

=over

=back

=head2 $label-E<gt>B<set_label> ($str)

=over

=over

=item * $str (string) 

=back

=back

=head2 layout = $label-E<gt>B<get_layout> 

=over

=back

=head2 (x, y) = $label-E<gt>B<get_layout_offsets> 

=over

=back

=head2 boolean = $label-E<gt>B<get_line_wrap> 

=over

=back

=head2 $label-E<gt>B<set_line_wrap> ($wrap)

=over

=over

=item * $wrap (boolean) 

=back

=back

=head2 $label-E<gt>B<set_markup> ($str)

=over

=over

=item * $str (string) 

=back

=back

=head2 $label-E<gt>B<set_markup_with_mnemonic> ($str)

=over

=over

=item * $str (string) 

=back

=back

=head2 integer = $label-E<gt>B<get_max_width_chars> 

=over

=back

=head2 $label-E<gt>B<set_max_width_chars> ($n_chars)

=over

=over

=item * $n_chars (integer) 

=back

=back

=head2 integer = $label-E<gt>B<get_mnemonic_keyval> 

=over

=back

=head2 widget or undef = $label-E<gt>B<get_mnemonic_widget> 

=over

=back

=head2 $label-E<gt>B<set_mnemonic_widget> ($widget)

=over

=over

=item * $widget (Gtk2::Widget or undef) 

=back

=back

=head2 $label-E<gt>B<set_pattern> ($pattern)

=over

=over

=item * $pattern (string) 

=back

=back

=head2 $label-E<gt>B<select_region> ($start_offset=-1, $end_offset=-1)

=over

=over

=item * $start_offset (integer) 

=item * $end_offset (integer) 

=back

=back

=head2 boolean = $label-E<gt>B<get_selectable> 

=over

=back

=head2 $label-E<gt>B<set_selectable> ($setting)

=over

=over

=item * $setting (boolean) 

=back

=back

=head2 (start, end) = $label->B<get_selection_bounds>

=over

Returns integers, start and end.

=back

=head2 boolean = $label-E<gt>B<get_single_line_mode> 

=over

=back

=head2 $label-E<gt>B<set_single_line_mode> ($single_line_mode)

=over

=over

=item * $single_line_mode (boolean) 

=back

=back

=head2 string or undef = $label-E<gt>B<get_text> 

=over

=back

=head2 $label-E<gt>B<set_text> ($str)

=over

=over

=item * $str (string or undef) 

=back

=back

=head2 $label-E<gt>B<set_text_with_mnemonic> ($str)

=over

=over

=item * $str (string) 

=back

=back

=head2 boolean = $label-E<gt>B<get_use_markup> 

=over

=back

=head2 $label-E<gt>B<set_use_markup> ($setting)

=over

=over

=item * $setting (boolean) 

=back

=back

=head2 boolean = $label-E<gt>B<get_use_underline> 

=over

=back

=head2 $label-E<gt>B<set_use_underline> ($setting)

=over

=over

=item * $setting (boolean) 

=back

=back

=head2 integer = $label-E<gt>B<get_width_chars> 

=over

=back

=head2 $label-E<gt>B<set_width_chars> ($n_chars)

=over

=over

=item * $n_chars (integer) 

=back

=back


=head1 PROPERTIES

=over

=item 'angle' (double : readable / writable / private)

Angle at which the label is rotated

=item 'attributes' (Gtk2::Pango::AttrList : readable / writable / private)

A list of style attributes to apply to the text of the label

=item 'cursor-position' (integer : readable / private)

The current position of the insertion cursor in chars

=item '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, if at all

=item 'justify' (Gtk2::Justification : readable / writable / private)

The alignment of the lines in the text of the label relative to each other. This does NOT affect the alignment of the label within its allocation. See GtkMisc::xalign for that

=item 'label' (string : readable / writable / private)

The text of the label

=item 'max-width-chars' (integer : readable / writable / private)

The desired maximum width of the label, in characters

=item 'mnemonic-keyval' (Glib::UInt : readable / private)

The mnemonic accelerator key for this label

=item 'mnemonic-widget' (Gtk2::Widget : readable / writable / private)

The widget to be activated when the label's mnemonic key is pressed

=item 'pattern' (string : writable / private)

A string with _ characters in positions correspond to characters in the text to underline

=item 'selectable' (boolean : readable / writable / private)

Whether the label text can be selected with the mouse

=item 'selection-bound' (integer : readable / private)

The position of the opposite end of the selection from the cursor in chars

=item 'single-line-mode' (boolean : readable / writable / private)

Whether the label is in single line mode

=item 'use-markup' (boolean : readable / writable / private)

The text of the label includes XML markup. See pango_parse_markup()

=item 'use-underline' (boolean : readable / writable / private)

If set, an underline in the text indicates the next character should be used for the mnemonic accelerator key

=item 'width-chars' (integer : readable / writable / private)

The desired width of the label, in characters

=item 'wrap' (boolean : readable / writable / private)

If set, wrap lines if the text becomes too wide

=back


=head1 SIGNALS

=over

=item B<move-cursor> (Gtk2::Label, Gtk2::MovementStep, integer, boolean)

=item B<copy-clipboard> (Gtk2::Label)

=item B<populate-popup> (Gtk2::Label, Gtk2::Menu)

=back


=head1 ENUMS AND FLAGS

=head2 enum Gtk2::Justification



=over

=item * 'left' / 'GTK_JUSTIFY_LEFT'

=item * 'right' / 'GTK_JUSTIFY_RIGHT'

=item * 'center' / 'GTK_JUSTIFY_CENTER'

=item * 'fill' / 'GTK_JUSTIFY_FILL'

=back


=head2 enum Gtk2::MovementStep

=over

=item * 'logical-positions' / 'GTK_MOVEMENT_LOGICAL_POSITIONS'

=item * 'visual-positions' / 'GTK_MOVEMENT_VISUAL_POSITIONS'

=item * 'words' / 'GTK_MOVEMENT_WORDS'

=item * 'display-lines' / 'GTK_MOVEMENT_DISPLAY_LINES'

=item * 'display-line-ends' / 'GTK_MOVEMENT_DISPLAY_LINE_ENDS'

=item * 'paragraphs' / 'GTK_MOVEMENT_PARAGRAPHS'

=item * 'paragraph-ends' / 'GTK_MOVEMENT_PARAGRAPH_ENDS'

=item * 'pages' / 'GTK_MOVEMENT_PAGES'

=item * 'buffer-ends' / 'GTK_MOVEMENT_BUFFER_ENDS'

=item * 'horizontal-pages' / 'GTK_MOVEMENT_HORIZONTAL_PAGES'

=back


=head2 enum Gtk2::Pango::EllipsizeMode

=over

=item * 'none' / 'PANGO_ELLIPSIZE_NONE'

=item * 'start' / 'PANGO_ELLIPSIZE_START'

=item * 'middle' / 'PANGO_ELLIPSIZE_MIDDLE'

=item * 'end' / 'PANGO_ELLIPSIZE_END'

=back



=head1 SEE ALSO

L<Gtk2>, L<Glib::Object>, L<Glib::Object::_Unregistered::GInitiallyUnowned>, L<Gtk2::Object>, L<Gtk2::Widget>, L<Gtk2::Misc>

=head1 COPYRIGHT

Copyright (C) 2003-2005 by the gtk2-perl team.

This software is licensed under the LGPL.  See L<Gtk2> for a full notice.


=cut

