Table of Contents
Labels are the main method of placing non-editable text in windows, for instance to place a title next to a Entry widget. You can specify the text in the constructor, or with the set_text() method.
The width of the label will be adjusted automatically. You can produce multi-line labels by putting line breaks ("\n") in the label string.
The label text can be justified using the set_justify() method. The widget is also capable of word-wrapping - this can be activated with set_line_wrap().
TODO: gtkmm2: markup.
Below is a short example to illustrate these functions. This example makes use of the Frame widget to better demonstrate the label styles. (The Frame widget is explained in the Frame section.)