Class

GtkMisc

[]

Description [src]

abstract class Gtk.Misc : Gtk.Widget
  implements Atk.ImplementorIface, Gtk.Buildable {
  /* No available fields */
}

The GtkMisc widget is an abstract widget which is not useful itself, but is used to derive subclasses which have alignment and padding attributes.

The horizontal and vertical padding attributes allows extra space to be added around the widget.

The horizontal and vertical alignment attributes enable the widget to be positioned within its allocated area. Note that if the widget is added to a container in such a way that it expands automatically to fill its allocated area, the alignment settings will not alter the widget’s position.

Note that the desired effect can in most cases be achieved by using the GtkWidget:halign, GtkWidget:valign and GtkWidget:margin properties on the child widget, so GtkMisc should not be used in new code. To reflect this fact, all GtkMisc API has been deprecated.

[]

Hierarchy

hierarchy this GtkMisc implements_0 AtkImplementorIface this--implements_0 implements_1 GtkBuildable this--implements_1 ancestor_0 GtkWidget ancestor_0--this ancestor_1 GInitiallyUnowned ancestor_1--ancestor_0 ancestor_2 GObject ancestor_2--ancestor_1
[]

Instance methods

gtk_misc_get_alignment

Gets the X and Y alignment of the widget within its allocation. See gtk_misc_set_alignment().

deprecated: 3.14 

gtk_misc_get_padding

Gets the padding in the X and Y directions of the widget. See gtk_misc_set_padding().

deprecated: 3.14 

gtk_misc_set_alignment

Sets the alignment of the widget.

deprecated: 3.14 

gtk_misc_set_padding

Sets the amount of space to add around the widget.

deprecated: 3.14 

Methods inherited from GtkWidget (263)
Methods inherited from GObject (43)
Methods inherited from GtkBuildable (10)
[]

Properties

Gtk.Misc:xalign

The horizontal alignment. A value of 0.0 means left alignment (or right on RTL locales); a value of 1.0 means right alignment (or left on RTL locales).

deprecated: 3.14 

Gtk.Misc:xpad

The amount of space to add on the left and right of the widget, in pixels.

deprecated: 3.14 

Gtk.Misc:yalign

The vertical alignment. A value of 0.0 means top alignment; a value of 1.0 means bottom alignment.

deprecated: 3.14 

Gtk.Misc:ypad

The amount of space to add on the top and bottom of the widget, in pixels.

deprecated: 3.14 

Properties inherited from GtkWidget (39)
[]

Signals

Signals inherited from GtkWidget (69)
Signals inherited from GObject (1)

Class structure