1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 A widget that displays a small to medium amount of text.
7 <!-- ##### SECTION Long_Description ##### -->
9 The #GtkLabel widget is usually used directly by the programmer to display
10 word(s) describing an adjacent widget or its use. It is also used internally
11 by Gtk+ as #GtkButton labels, #GtkMenu items, and many other widgets which
15 <!-- ##### SECTION See_Also ##### -->
20 <!-- ##### STRUCT GtkLabel ##### -->
22 This should not be accessed directly. Use the accessor functions as
27 <!-- ##### FUNCTION gtk_label_new ##### -->
36 <!-- ##### FUNCTION gtk_label_set_text ##### -->
45 <!-- ##### FUNCTION gtk_label_set_attributes ##### -->
54 <!-- ##### FUNCTION gtk_label_set_markup ##### -->
63 <!-- ##### FUNCTION gtk_label_set_markup_with_mnemonic ##### -->
72 <!-- ##### FUNCTION gtk_label_set_pattern ##### -->
74 The pattern of underlines you want under the existing text within the
75 #GtkLabel widget. For example if the current text of the label says
76 "FooBarBaz" passing a pattern of "___ ___" will underline
77 "Foo" and "Baz" but not "Bar".
80 @label: The #GtkLabel you want to set the pattern to.
81 @pattern: The pattern as described above.
84 <!-- ##### FUNCTION gtk_label_set_justify ##### -->
93 <!-- ##### FUNCTION gtk_label_get ##### -->
95 Gets the current string of text within the #GtkLabel and writes it to
96 the given @str argument. It does not make a copy of this string so you
100 @label: The #GtkLabel widget you want to get the text from.
101 @str: The reference to the pointer you want to point to the text.
104 <!-- ##### FUNCTION gtk_label_parse_uline ##### -->
106 Parses the given string for underscores and converts the next
107 character to an underlined character. The last character that
108 was underlined will have its lower-cased accelerator keyval returned (i.e.
109 "_File" would return the keyval for "f". This is
110 probably only used within the Gtk+ library itself for menu items and such.
113 @label: The #GtkLabel you want to affect.
114 @string: The string you want to parse for underlines.
115 @Returns: The lowercase keyval of the last character underlined.
118 <!-- ##### FUNCTION gtk_label_set_line_wrap ##### -->
127 <!-- ##### MACRO gtk_label_set ##### -->
129 Aliases gtk_label_set_text(). Probably used for backward compatibility with
135 <!-- ##### FUNCTION gtk_label_get_layout_offsets ##### -->
145 <!-- ##### FUNCTION gtk_label_get_mnemonic_keyval ##### -->
154 <!-- ##### FUNCTION gtk_label_get_selectable ##### -->
163 <!-- ##### FUNCTION gtk_label_get_text ##### -->
172 <!-- ##### FUNCTION gtk_label_new_with_mnemonic ##### -->
181 <!-- ##### FUNCTION gtk_label_select_region ##### -->
191 <!-- ##### FUNCTION gtk_label_set_mnemonic_widget ##### -->
200 <!-- ##### FUNCTION gtk_label_set_selectable ##### -->
209 <!-- ##### FUNCTION gtk_label_set_text_with_mnemonic ##### -->
218 <!-- ##### FUNCTION gtk_label_get_attributes ##### -->
227 <!-- ##### FUNCTION gtk_label_get_justify ##### -->
236 <!-- ##### FUNCTION gtk_label_get_label ##### -->
245 <!-- ##### FUNCTION gtk_label_get_layout ##### -->
254 <!-- ##### FUNCTION gtk_label_get_line_wrap ##### -->
263 <!-- ##### FUNCTION gtk_label_get_mnemonic_widget ##### -->
272 <!-- ##### FUNCTION gtk_label_get_selection_bounds ##### -->
283 <!-- ##### FUNCTION gtk_label_get_use_markup ##### -->
292 <!-- ##### FUNCTION gtk_label_get_use_underline ##### -->
301 <!-- ##### FUNCTION gtk_label_set_label ##### -->
310 <!-- ##### FUNCTION gtk_label_set_use_markup ##### -->
319 <!-- ##### FUNCTION gtk_label_set_use_underline ##### -->
328 <!-- ##### SIGNAL GtkLabel::copy-clipboard ##### -->
333 @label: the object which received the signal.
335 <!-- ##### SIGNAL GtkLabel::move-cursor ##### -->
340 @label: the object which received the signal.
345 <!-- ##### SIGNAL GtkLabel::populate-popup ##### -->
350 @label: the object which received the signal.
353 <!-- ##### ARG GtkLabel:label ##### -->
355 The actual label text. Do not write to this pointer, it is not copied.
358 <!-- ##### ARG GtkLabel:attributes ##### -->
363 <!-- ##### ARG GtkLabel:use-markup ##### -->
368 <!-- ##### ARG GtkLabel:use-underline ##### -->
373 <!-- ##### ARG GtkLabel:justify ##### -->
375 The #GtkJustification setting. See gtk_label_set_justify() for more info.
378 <!-- ##### ARG GtkLabel:pattern ##### -->
380 The pattern of underlines under the existing text. Do not change the
381 pointer, it isn't copied.
384 <!-- ##### ARG GtkLabel:wrap ##### -->
389 <!-- ##### ARG GtkLabel:selectable ##### -->
394 <!-- ##### ARG GtkLabel:mnemonic-keyval ##### -->
399 <!-- ##### ARG GtkLabel:mnemonic-widget ##### -->
404 <!-- ##### ARG GtkLabel:cursor-position ##### -->
409 <!-- ##### ARG GtkLabel:selection-bound ##### -->