GtkAda Reference Manual - Package Gtk.Fixed

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

# Package Gtk.Fixed

The Gtk_Fixed widget is a container which can place child widgets at fixed positions and with fixed sizes, given in pixels.

Note that it is usually bad practice to use the Gtk_Fixed container in GtkAda. Instead, you should consider using one of the other many containers available, that will allow you to handle resizing of your windows, as well as font size changes easily.

- Gtk.Fixed Widget Hierarchy
- Gtk.Fixed Subprograms

## Widget Hierarchy

    GObject                       (see section Package Glib.Object)
    Gtk_Object                    (see section Package Gtk.Object)
       \___ Gtk_Widget            (see section Package Gtk.Widget)
          \___ Gtk_Container      (see section Package Gtk.Container)
             \___ Gtk_Fixed       (see section Package Gtk.Fixed)

## Subprograms

    procedure Gtk_New
      (Fixed              : out    Gtk_Fixed);
| Create a new fixed container.
    function Get_Type              return Gtk.Gtk_Type;
| Return the internal value associated with a Gtk_Fixed.
    procedure Put
      (Fixed              : access Gtk_Fixed_Record;
       Widget             : access Gtk.Widget.Gtk_Widget_Record'Class;
       X                  :        Gint;
       Y                  :        Gint);
| Add Widget to a Fixed container at the given position. X indicates the horizontal position to place the widget at. Y is the vertical position to place the widget at.
    procedure Move
      (Fixed              : access Gtk_Fixed_Record;
       Widget             : access Gtk.Widget.Gtk_Widget_Record'Class;
       X                  :        Gint;
       Y                  :        Gint);
| Move a child of a GtkFixed container to the given position. X indicates the horizontal position to place the widget at. Y is the vertical position to place the widget at.
    procedure Set_Has_Window
      (Fixed              : access Gtk_Fixed_Record;
       Has_Window         :        Boolean := False);
| Sets whether a Gtk_Fixed widget is created with a separate Gdk_Window for or not. (By default, it will be created with no separate Gdk_Window). This function must be called while the widget is not realized, for instance, immediately after the window is created.
    function Get_Has_Window
      (Fixed              : access Gtk_Fixed_Record)
       return Boolean;
| Return whether a Gtk_Fixed widget is created with a separate Gdk_Window for or not.

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