Toc Gallery Index Tree Gtk.Misc

Hierarchy

Description

This widget is a base class for all the widgets that require an alignment and padding. This widget can not be instantiated directly.

Types

  • type Gtk_Misc is access all Gtk_Misc_Record'Class;
  • type Gtk_Misc_Record is new Widget.Gtk_Widget_Record with private;

Subprograms

  • function Get_Type return Gtk.Gtk_Type;
    Return the internal value associated with a Gtk_Misc.
  • procedure Set_Alignment (Misc : access Gtk_Misc_Record; Xalign : Gfloat; Yalign : Gfloat);
    procedure Get_Alignment (Misc : access Gtk_Misc_Record; Xalign : out Gfloat; Yalign : out Gfloat);
    Modify the alignment for the widget. Xalign and Yalign are both values between 0.0 and 1.0 that specify the alignment: if Xalign is 0.0, the widget will be left aligned; if it is 0.5, the widget will be centered; if it is 1.0 the widget will be right aligned. Yalign is from top (0.0) to bottom (1.0). Both Xalign and Yalign will be constrained to the range 0.0 .. 1.0 Note that if the widget fills its allocated area, these two parameters won't have any effect.
  • procedure Set_Padding (Misc : access Gtk_Misc_Record; Xpad : Gint; Ypad : Gint);
    procedure Get_Padding (Misc : access Gtk_Misc_Record; Xpad : out Gint; Ypad : out Gint);
    Set the padding (i.e. the extra spaces on the side of the widget). If Xpad or Ypad is negative, they will be changed to 0.

Signals

Properties

  • Xalign_Property
    Gfloat
    The horizontal alignment, from 0 (left) to 1 (right)
    See: Set_Alignment
  • Xpad_Property
    Gint
    The amount of space to add on the left and right of the widget,
  • Yalign_Property
    Gfloat
    The vertical alignment, from 0 (left) to 1 (right)
    See: Set_Alignment
  • Ypad_Property
    Gint
    The amount of space to add on the top and bottom of the widget,

Alphabetical Index