Base class for widgets that have children.
Widget Hierarchy |
---|
Gtk_Object (see section Package Gtk.Object) \___ Gtk_Widget (see section Package Gtk.Widget) \___ Gtk_Container (see section Package Gtk.Container) |
Signals |
---|
Types |
---|
type Forall_Function is access procedure (Item : access Gtk.Widget.Gtk_Widget_Record'Class); | |
Function that can be call for each child of a container.
This is called automatically by the Forall subprogram below.
|
Subprograms |
---|
procedure Set_Border_Width (Container : access Gtk_Container_Record; Border_Width : in Gint); | ||
Modify the size of the frame that surrounds the widget. | ||
procedure Add (Container : access Gtk_Container_Record; Widget : access Gtk.Widget.Gtk_Widget_Record'Class); | ||
Add a new child to the container. | ||
procedure Remove (Container : access Gtk_Container_Record; Widget : access Gtk.Widget.Gtk_Widget_Record'Class); | ||
Remove a child from the container. | ||
procedure Set_Resize_Mode (Container : access Gtk_Container_Record; Resize_Mode : in Gtk.Enums.Gtk_Resize_Mode); | ||
Change the resizing behavior for the Container. | ||
function Children (Container : access Gtk_Container_Record) return Gtk.Widget.Widget_List.Glist; | ||
Return a list of all the children of the container.
| ||
function Get_Type return Gtk.Gtk_Type; | ||
Return the internal value associated with a Gtk_Container.
| ||
Foreach functions | ||
procedure Forall (Container : access Gtk_Container_Record; Func : Forall_Function); | ||
Execute Func for each of the children of Container. | ||
Widget-level methods | ||
procedure Set_Reallocate_Redraws (Container : access Gtk_Container_Record; Needs_Redraws : Boolean := False); | ||
Set the "needs_redraws" field. | ||
procedure Set_Focus_Vadjustment (Container : access Gtk_Container_Record; Adjustment : Gtk.Adjustment.Gtk_Adjustment); | ||
Set the focus to the vertical adjustment. | ||
procedure Set_Focus_Hadjustment (Container : access Gtk_Container_Record; Adjustment : Gtk.Adjustment.Gtk_Adjustment); | ||
Set the focus to the horizontal adjustment. | ||
function Get_Toplevels return Gtk.Widget.Widget_List.Glist; | ||
Return the list of all the toplevel widgets. | ||
procedure Register_Toplevel (Container : access Gtk_Container_Record); | ||
Register Container as a toplevel widget, returned by the subprogram | ||
procedure Unregister_Toplevel (Container : access Gtk_Container_Record); | ||
Unregister Container as a toplevel widget.
| ||
function Child_Type (Container : access Gtk_Container_Record) return Gtk.Gtk_Type; | ||
Return the type of the children in Container. | ||
Signals emission | ||
procedure Check_Resize (Container : access Gtk_Container_Record); | ||
Emit the "check_resize" signal
| ||
function Focus (Container : access Gtk_Container_Record; Direction : Gtk.Enums.Gtk_Direction_Type) return Boolean; | ||
Emit the "focus" signal
| ||
procedure Set_Focus_Child (Container : access Gtk_Container_Record; Child : access Gtk.Widget.Gtk_Widget_Record'Class); | ||
Emit a "set_focus_child" signal.
|