Index

Package: Size_Group

Description

package Gtk.Size_Group is
Note that size groups only affect the amount of space requested, not the size that the widgets finally receive. If you want the widgets in a Gtk_Size_Group to actually be the same size, you need to pack them in such a way that they get the size they request and not more. For example, if you are packing your widgets into a table, you would not include the Fill flag. </description>

Binding from C File version 2.8.17

<testgtk>create_size_groups.adb</testgtk>

Packages

Classes

Gtk_Size_Group_Record

type Gtk_Size_Group_Record is new Glib.Object.GObject_Record with private;

Ancestors:

Primitive operations:

Get_Ignore_Hidden
Glib.Object.Deallocate (Inherited)
Glib.Object.Get_Type (Inherited)
Glib.Object.Notify (Inherited)
Glib.Object.Ref (Inherited)
Glib.Object.Unref (Inherited)
Remove_Widget
Set_Ignore_Hidden

Types

Gtk_Size_Group

type Gtk_Size_Group is access all Gtk_Size_Group_Record'Class;

Size_Group_Mode

type Size_Group_Mode is (None, Horizontal, Vertical, Both);

Property_Size_Group_Mode

type Property_Size_Group_Mode is new Size_Group_Mode_Properties.Property;

Constants & Global variables

Ignore_Hidden_Property (Glib.Properties.Property_Boolean)

Ignore_Hidden_Property : constant Glib.Properties.Property_Boolean;

Subprograms & Entries

Gtk_New

procedure Gtk_New 
(Size_Group: out Gtk_Size_Group;
Mode: Size_Group_Mode := Both);
Create a new group. Initially, it doesn't contain any widget, and you need to add them with the Add_Widget procedure.

Initialize

procedure Initialize 
(Size_Group: access Gtk_Size_Group_Record'Class;
Mode: Size_Group_Mode);
Internal initialization function. See the section "Creating your own widgets" in the documentation.

Get_Type

function Get_Type return Gtk.Gtk_Type;
Return the internal value associated with a Gtk_Size_Group

Set_Mode

procedure Set_Mode 
(Size_Group: access Gtk_Size_Group_Record;
Mode: Size_Group_Mode);

Get_Mode

function Get_Mode 
(Size_Group: access Gtk_Size_Group_Record) return Size_Group_Mode;
Change the way the group effects the size of its component widgets.

Add_Widget

procedure Add_Widget 
(Size_Group: access Gtk_Size_Group_Record;
Widget: access Gtk.Widget.Gtk_Widget_Record'Class);
Add a new widget in the group. Its size will be effected by all other widgets in the group: the size requisition of the widget will be the maximum of its requisition and the requisition of the other widgets in the group (depending on the group mode). A given widget can belong to only one size group. It is removed from its previous group before being added to Size_Group.

Remove_Widget

procedure Remove_Widget 
(Size_Group: access Gtk_Size_Group_Record;
Widget: access Gtk.Widget.Gtk_Widget_Record'Class);
Remove a widget from the group.

Set_Ignore_Hidden

procedure Set_Ignore_Hidden 
(Size_Group: access Gtk_Size_Group_Record;
Ignore_Hidden: Boolean);

Get_Ignore_Hidden

function Get_Ignore_Hidden 
(Size_Group: access Gtk_Size_Group_Record) return Boolean;
Whether invisible widgets are ignored when calcuating the size for all widgets in the group.