[Contents] [Back] [Prev] [Up] [Next] [Forward]

# Package Gtk.Misc

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

- Gtk.Misc Widget Hierarchy
- Gtk.Misc Subprograms

## Widget Hierarchy

    Gtk_Object                    (see section Package Gtk.Object)
       \___ Gtk_Widget            (see section Package Gtk.Widget)
          \___ Gtk_Misc           (see section Package Gtk.Misc)

## Subprograms

    procedure Set_Alignment
      (Misc               : access Gtk_Misc_Record;
       Xalign             : in     Gfloat;
       Yalign             : in     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               : in     Gint;
       Ypad               : in     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.

    function Get_Type              return Gtk.Gtk_Type;

| Return the internal value associated with a Gtk_Misc.

[Contents] [Back] [Prev] [Up] [Next] [Forward]