GtkAda Reference Manual - Package Gtk.Misc

[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

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

## 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);
| 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 Get_Alignment
      (Misc               : access Gtk_Misc_Record;
       Xalign             : out    Gfloat;
       Yalign             : out    Gfloat);
| Return the alignment of the widget.
    procedure Set_Padding
      (Misc               : access Gtk_Misc_Record;
       Xpad               :        Gint;
       Ypad               :        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.
    procedure Get_Padding
      (Misc               : access Gtk_Misc_Record;
       Xpad               : out    Gint;
       Ypad               : out    Gint);
| Return the padding of the widget.

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