package Implements_Gtk_Buildable is new Glib.Types.Implements (Gtk.Buildable.Gtk_Buildable, Gtk_Window_Record, Gtk_Window);
type Gtk_Window_Record is new Gtk_Bin_Record with null record;
type Gtk_Window_Group_Record is new GObject_Record with null record;
type Gtk_Window is access all Gtk_Window_Record'Class;
type Gtk_Window_Group is access all Gtk_Window_Group_Record'Class;
type Cb_Gtk_Window_Void is not null access procedure (Self : access Gtk_Window_Record'Class);
type Cb_GObject_Void is not null access procedure (Self : access Glib.Object.GObject_Record'Class);
type Cb_Gtk_Window_Gtk_Widget_Void is not null access procedure (Self : access Gtk_Window_Record'Class; Object : access Gtk.Widget.Gtk_Widget_Record'Class);
type Cb_GObject_Gtk_Widget_Void is not null access procedure (Self : access Glib.Object.GObject_Record'Class; Object : access Gtk.Widget.Gtk_Widget_Record'Class);
Accept_Focus_Property : constant Glib.Properties.Property_Boolean;
Application_Property : constant Glib.Properties.Property_Object;
Attached_To_Property : constant Glib.Properties.Property_Object;
Decorated_Property : constant Glib.Properties.Property_Boolean;
Default_Height_Property : constant Glib.Properties.Property_Int;
Default_Width_Property : constant Glib.Properties.Property_Int;
Deletable_Property : constant Glib.Properties.Property_Boolean;
Destroy_With_Parent_Property : constant Glib.Properties.Property_Boolean;
Focus_On_Map_Property : constant Glib.Properties.Property_Boolean;
Focus_Visible_Property : constant Glib.Properties.Property_Boolean;
Gravity_Property : constant Gdk.Window.Property_Gdk_Gravity;
Has_Resize_Grip_Property : constant Glib.Properties.Property_Boolean;
Has_Toplevel_Focus_Property : constant Glib.Properties.Property_Boolean;
Hide_Titlebar_When_Maximized_Property : constant Glib.Properties.Property_Boolean;
Icon_Property : constant Glib.Properties.Property_Object;
Icon_Name_Property : constant Glib.Properties.Property_String;
Is_Active_Property : constant Glib.Properties.Property_Boolean;
Mnemonics_Visible_Property : constant Glib.Properties.Property_Boolean;
Modal_Property : constant Glib.Properties.Property_Boolean;
Resizable_Property : constant Glib.Properties.Property_Boolean;
Resize_Grip_Visible_Property : constant Glib.Properties.Property_Boolean;
Role_Property : constant Glib.Properties.Property_String;
Screen_Property : constant Glib.Properties.Property_Object;
Skip_Pager_Hint_Property : constant Glib.Properties.Property_Boolean;
Skip_Taskbar_Hint_Property : constant Glib.Properties.Property_Boolean;
Startup_Id_Property : constant Glib.Properties.Property_String;
Title_Property : constant Glib.Properties.Property_String;
Transient_For_Property : constant Glib.Properties.Property_Object;
The_Type_Property : constant Gtk.Enums.Property_Gtk_Window_Type;
Type_Hint_Property : constant Gdk.Window.Property_Gdk_Window_Type_Hint;
Urgency_Hint_Property : constant Glib.Properties.Property_Boolean;
Window_Position_Property : constant Gtk.Enums.Property_Gtk_Window_Position;
Signal_Activate_Default : constant Glib.Signal_Name := "activate-default";
Signal_Activate_Focus : constant Glib.Signal_Name := "activate-focus";
Signal_Keys_Changed : constant Glib.Signal_Name := "keys-changed";
Signal_Set_Focus : constant Glib.Signal_Name := "set-focus";
procedure Gtk_New
( | Window | : out Gtk_Window; |
The_Type | : Gtk.Enums.Gtk_Window_Type := Gtk.Enums.Window_Toplevel); |
procedure Initialize
( | Window | : not null access Gtk_Window_Record'Class; |
The_Type | : Gtk.Enums.Gtk_Window_Type := Gtk.Enums.Window_Toplevel); |
function Gtk_Window_New
( | The_Type | : Gtk.Enums.Gtk_Window_Type := Gtk.Enums.Window_Toplevel) return Gtk_Window; |
function Get_Type return Glib.GType;
procedure Gtk_New
( | Window_Group | : out Gtk_Window_Group); |
procedure Initialize
( | Window_Group | : not null access Gtk_Window_Group_Record'Class); |
function Gtk_Window_Group_New return Gtk_Window_Group;
function Group_Get_Type return Glib.GType;
function Activate_Default
( | Window | : not null access Gtk_Window_Record) return Boolean; |
function Activate_Focus
( | Window | : not null access Gtk_Window_Record) return Boolean; |
function Activate_Key
( | Window | : not null access Gtk_Window_Record; |
Event | : Gdk.Event.Gdk_Event_Key) return Boolean; |
procedure Add_Accel_Group
( | Window | : not null access Gtk_Window_Record; |
Accel_Group | : not null access Gtk.Accel_Group.Gtk_Accel_Group_Record'Class); |
procedure Add_Mnemonic
( | Window | : not null access Gtk_Window_Record; |
Keyval | : Gdk.Types.Gdk_Key_Type; | |
Target | : not null access Gtk.Widget.Gtk_Widget_Record'Class); |
procedure Begin_Move_Drag
( | Window | : not null access Gtk_Window_Record; |
Button | : Gint; | |
Root_X | : Gint; | |
Root_Y | : Gint; | |
Timestamp | : Guint32); |
procedure Begin_Resize_Drag
( | Window | : not null access Gtk_Window_Record; |
Edge | : Gdk.Window.Gdk_Window_Edge; | |
Button | : Gint; | |
Root_X | : Gint; | |
Root_Y | : Gint; | |
Timestamp | : Guint32); |
procedure Deiconify
( | Window | : not null access Gtk_Window_Record); |
procedure Fullscreen
( | Window | : not null access Gtk_Window_Record); |
function Get_Accept_Focus
( | Window | : not null access Gtk_Window_Record) return Boolean; |
procedure Set_Accept_Focus
( | Window | : not null access Gtk_Window_Record; |
Setting | : Boolean); |
function Get_Attached_To
( | Window | : not null access Gtk_Window_Record) return Gtk.Widget.Gtk_Widget; |
procedure Set_Attached_To
( | Window | : not null access Gtk_Window_Record; |
Attach_Widget | : access Gtk.Widget.Gtk_Widget_Record'Class); |
function Get_Decorated
( | Window | : not null access Gtk_Window_Record) return Boolean; |
procedure Set_Decorated
( | Window | : not null access Gtk_Window_Record; |
Setting | : Boolean); |
procedure Get_Default_Size
( | Window | : not null access Gtk_Window_Record; |
Width | : out Gint; | |
Height | : out Gint); |
procedure Set_Default_Size
( | Window | : not null access Gtk_Window_Record; |
Width | : Gint; | |
Height | : Gint); |
function Get_Default_Widget
( | Window | : not null access Gtk_Window_Record) return Gtk.Widget.Gtk_Widget; |
function Get_Deletable
( | Window | : not null access Gtk_Window_Record) return Boolean; |
procedure Set_Deletable
( | Window | : not null access Gtk_Window_Record; |
Setting | : Boolean); |
function Get_Destroy_With_Parent
( | Window | : not null access Gtk_Window_Record) return Boolean; |
procedure Set_Destroy_With_Parent
( | Window | : not null access Gtk_Window_Record; |
Setting | : Boolean); |
function Get_Focus
( | Window | : not null access Gtk_Window_Record) return Gtk.Widget.Gtk_Widget; |
procedure Set_Focus
( | Window | : not null access Gtk_Window_Record; |
Focus | : access Gtk.Widget.Gtk_Widget_Record'Class); |
function Get_Focus_On_Map
( | Window | : not null access Gtk_Window_Record) return Boolean; |
procedure Set_Focus_On_Map
( | Window | : not null access Gtk_Window_Record; |
Setting | : Boolean); |
function Get_Focus_Visible
( | Window | : not null access Gtk_Window_Record) return Boolean; |
procedure Set_Focus_Visible
( | Window | : not null access Gtk_Window_Record; |
Setting | : Boolean); |
function Get_Gravity
( | Window | : not null access Gtk_Window_Record) return Gdk.Window.Gdk_Gravity; |
procedure Set_Gravity
( | Window | : not null access Gtk_Window_Record; |
Gravity | : Gdk.Window.Gdk_Gravity); |
function Get_Group
( | Window | : not null access Gtk_Window_Record) return Gtk_Window_Group; |
function Get_Has_Resize_Grip
( | Window | : not null access Gtk_Window_Record) return Boolean; |
procedure Set_Has_Resize_Grip
( | Window | : not null access Gtk_Window_Record; |
Value | : Boolean); |
function Get_Hide_Titlebar_When_Maximized
( | Window | : not null access Gtk_Window_Record) return Boolean; |
procedure Set_Hide_Titlebar_When_Maximized
( | Window | : not null access Gtk_Window_Record; |
Setting | : Boolean); |
function Get_Icon
( | Window | : not null access Gtk_Window_Record) return Gdk.Pixbuf.Gdk_Pixbuf; |
procedure Set_Icon
( | Window | : not null access Gtk_Window_Record; |
Icon | : access Gdk.Pixbuf.Gdk_Pixbuf_Record'Class); |
function Get_Icon_List
( | Window | : not null access Gtk_Window_Record) return Glib.Object.Object_Simple_List.Glist; |
procedure Set_Icon_List
( | Window | : not null access Gtk_Window_Record; |
List | : Glib.Object.Object_Simple_List.Glist); |
function Get_Icon_Name
( | Window | : not null access Gtk_Window_Record) return UTF8_String; |
procedure Set_Icon_Name
( | Window | : not null access Gtk_Window_Record; |
Name | : UTF8_String := ""); |
function Get_Mnemonic_Modifier
( | Window | : not null access Gtk_Window_Record) return Gdk.Types.Gdk_Modifier_Type; |
procedure Set_Mnemonic_Modifier
( | Window | : not null access Gtk_Window_Record; |
Modifier | : Gdk.Types.Gdk_Modifier_Type); |
function Get_Mnemonics_Visible
( | Window | : not null access Gtk_Window_Record) return Boolean; |
procedure Set_Mnemonics_Visible
( | Window | : not null access Gtk_Window_Record; |
Setting | : Boolean); |
function Get_Modal
( | Window | : not null access Gtk_Window_Record) return Boolean; |
procedure Set_Modal
( | Window | : not null access Gtk_Window_Record; |
Modal | : Boolean := True); |
procedure Get_Position
( | Window | : not null access Gtk_Window_Record; |
Root_X | : out Gint; | |
Root_Y | : out Gint); |
procedure Set_Position
( | Window | : not null access Gtk_Window_Record; |
Position | : Gtk.Enums.Gtk_Window_Position); |
function Get_Resizable
( | Window | : not null access Gtk_Window_Record) return Boolean; |
procedure Set_Resizable
( | Window | : not null access Gtk_Window_Record; |
Resizable | : Boolean); |
procedure Get_Resize_Grip_Area
( | Window | : not null access Gtk_Window_Record; |
Rect | : out Gdk.Rectangle.Gdk_Rectangle; | |
retrieved | : out Boolean); |
function Get_Role
( | Window | : not null access Gtk_Window_Record) return UTF8_String; |
procedure Set_Role
( | Window | : not null access Gtk_Window_Record; |
Role | : UTF8_String); |
function Get_Screen
( | Window | : not null access Gtk_Window_Record) return Gdk.Screen.Gdk_Screen; |
procedure Set_Screen
( | Window | : not null access Gtk_Window_Record; |
Screen | : not null access Gdk.Screen.Gdk_Screen_Record'Class); |
procedure Get_Size
( | Window | : not null access Gtk_Window_Record; |
Width | : out Gint; | |
Height | : out Gint); |
function Get_Skip_Pager_Hint
( | Window | : not null access Gtk_Window_Record) return Boolean; |
procedure Set_Skip_Pager_Hint
( | Window | : not null access Gtk_Window_Record; |
Setting | : Boolean); |
function Get_Skip_Taskbar_Hint
( | Window | : not null access Gtk_Window_Record) return Boolean; |
procedure Set_Skip_Taskbar_Hint
( | Window | : not null access Gtk_Window_Record; |
Setting | : Boolean); |
function Get_Title
( | Window | : not null access Gtk_Window_Record) return UTF8_String; |
procedure Set_Title
( | Window | : not null access Gtk_Window_Record; |
Title | : UTF8_String); |
function Get_Transient_For
( | Window | : not null access Gtk_Window_Record) return Gtk_Window; |
procedure Set_Transient_For
( | Window | : not null access Gtk_Window_Record; |
Parent | : access Gtk_Window_Record'Class); |
function Get_Type_Hint
( | Window | : not null access Gtk_Window_Record) return Gdk.Window.Gdk_Window_Type_Hint; |
procedure Set_Type_Hint
( | Window | : not null access Gtk_Window_Record; |
Hint | : Gdk.Window.Gdk_Window_Type_Hint); |
function Get_Urgency_Hint
( | Window | : not null access Gtk_Window_Record) return Boolean; |
procedure Set_Urgency_Hint
( | Window | : not null access Gtk_Window_Record; |
Setting | : Boolean); |
function Get_Window_Type
( | Window | : not null access Gtk_Window_Record) return Gtk.Enums.Gtk_Window_Type; |
function Has_Group
( | Window | : not null access Gtk_Window_Record) return Boolean; |
function Has_Toplevel_Focus
( | Window | : not null access Gtk_Window_Record) return Boolean; |
procedure Iconify
( | Window | : not null access Gtk_Window_Record); |
function Is_Active
( | Window | : not null access Gtk_Window_Record) return Boolean; |
procedure Maximize
( | Window | : not null access Gtk_Window_Record); |
function Mnemonic_Activate
( | Window | : not null access Gtk_Window_Record; |
Keyval | : Gdk.Types.Gdk_Key_Type; | |
Modifier | : Gdk.Types.Gdk_Modifier_Type) return Boolean; |
procedure Move
( | Window | : not null access Gtk_Window_Record; |
X | : Gint; | |
Y | : Gint); |
function Parse_Geometry
( | Window | : not null access Gtk_Window_Record; |
Geometry | : UTF8_String) return Boolean; |
procedure Present
( | Window | : not null access Gtk_Window_Record); |
procedure Present_With_Time
( | Window | : not null access Gtk_Window_Record; |
Timestamp | : Guint32); |
function Propagate_Key_Event
( | Window | : not null access Gtk_Window_Record; |
Event | : Gdk.Event.Gdk_Event_Key) return Boolean; |
procedure Remove_Accel_Group
( | Window | : not null access Gtk_Window_Record; |
Accel_Group | : not null access Gtk.Accel_Group.Gtk_Accel_Group_Record'Class); |
procedure Remove_Mnemonic
( | Window | : not null access Gtk_Window_Record; |
Keyval | : Gdk.Types.Gdk_Key_Type; | |
Target | : not null access Gtk.Widget.Gtk_Widget_Record'Class); |
procedure Reshow_With_Initial_Size
( | Window | : not null access Gtk_Window_Record); |
procedure Resize
( | Window | : not null access Gtk_Window_Record; |
Width | : Gint; | |
Height | : Gint); |
function Resize_Grip_Is_Visible
( | Window | : not null access Gtk_Window_Record) return Boolean; |
procedure Resize_To_Geometry
( | Window | : not null access Gtk_Window_Record; |
Width | : Gint; | |
Height | : Gint); |
procedure Set_Default
( | Window | : not null access Gtk_Window_Record; |
Default_Widget | : access Gtk.Widget.Gtk_Widget_Record'Class); |
procedure Set_Default_Geometry
( | Window | : not null access Gtk_Window_Record; |
Width | : Gint; | |
Height | : Gint); |
procedure Set_Geometry_Hints
( | Window | : not null access Gtk_Window_Record; |
Geometry_Widget | : access Gtk.Widget.Gtk_Widget_Record'Class; | |
Geometry | : Gdk.Window.Gdk_Geometry; | |
Geom_Mask | : Gdk.Window.Gdk_Window_Hints); |
procedure Set_Has_User_Ref_Count
( | Window | : not null access Gtk_Window_Record; |
Setting | : Boolean); |
function Set_Icon_From_File
( | Window | : not null access Gtk_Window_Record; |
Filename | : UTF8_String) return Boolean; |
procedure Set_Keep_Above
( | Window | : not null access Gtk_Window_Record; |
Setting | : Boolean); |
procedure Set_Keep_Below
( | Window | : not null access Gtk_Window_Record; |
Setting | : Boolean); |
procedure Set_Startup_Id
( | Window | : not null access Gtk_Window_Record; |
Startup_Id | : UTF8_String); |
procedure Set_Wmclass
( | Window | : not null access Gtk_Window_Record; |
Wmclass_Name | : UTF8_String; | |
Wmclass_Class | : UTF8_String); |
procedure Stick
( | Window | : not null access Gtk_Window_Record); |
procedure Unfullscreen
( | Window | : not null access Gtk_Window_Record); |
procedure Unmaximize
( | Window | : not null access Gtk_Window_Record); |
procedure Unstick
( | Window | : not null access Gtk_Window_Record); |
procedure Add_Window
( | Window_Group | : not null access Gtk_Window_Group_Record; |
Window | : not null access Gtk_Window_Record'Class); |
function Get_Current_Device_Grab
( | Window_Group | : not null access Gtk_Window_Group_Record; |
Device | : not null access Gdk.Device.Gdk_Device_Record'Class) return Gtk.Widget.Gtk_Widget; |
function Get_Current_Grab
( | Window_Group | : not null access Gtk_Window_Group_Record) return Gtk.Widget.Gtk_Widget; |
function List_Windows
( | Window_Group | : not null access Gtk_Window_Group_Record) return Gtk.Widget.Widget_List.Glist; |
procedure Remove_Window
( | Window_Group | : not null access Gtk_Window_Group_Record; |
Window | : not null access Gtk_Window_Record'Class); |
function Get_Default_Icon_List return Glib.Object.Object_Simple_List.Glist;
procedure Set_Default_Icon_List
( | List | : Glib.Object.Object_Simple_List.Glist); |
function Get_Default_Icon_Name return UTF8_String;
procedure Set_Default_Icon_Name
( | Name | : UTF8_String); |
function List_Toplevels return Gtk.Widget.Widget_List.Glist;
procedure Set_Default_Icon
( | Icon | : not null access Gdk.Pixbuf.Gdk_Pixbuf_Record'Class); |
function Set_Default_Icon_From_File
( | Filename | : UTF8_String) return Boolean; |
procedure On_Activate_Default
( | Self | : not null access Gtk_Window_Record; |
Call | : Cb_Gtk_Window_Void; | |
After | : Boolean := False); |
procedure On_Activate_Default
( | Self | : not null access Gtk_Window_Record; |
Call | : Cb_GObject_Void; | |
Slot | : not null access Glib.Object.GObject_Record'Class; | |
After | : Boolean := False); |
procedure On_Activate_Focus
( | Self | : not null access Gtk_Window_Record; |
Call | : Cb_Gtk_Window_Void; | |
After | : Boolean := False); |
procedure On_Activate_Focus
( | Self | : not null access Gtk_Window_Record; |
Call | : Cb_GObject_Void; | |
Slot | : not null access Glib.Object.GObject_Record'Class; | |
After | : Boolean := False); |
procedure On_Keys_Changed
( | Self | : not null access Gtk_Window_Record; |
Call | : Cb_Gtk_Window_Void; | |
After | : Boolean := False); |
procedure On_Keys_Changed
( | Self | : not null access Gtk_Window_Record; |
Call | : Cb_GObject_Void; | |
Slot | : not null access Glib.Object.GObject_Record'Class; | |
After | : Boolean := False); |
procedure On_Set_Focus
( | Self | : not null access Gtk_Window_Record; |
Call | : Cb_Gtk_Window_Gtk_Widget_Void; | |
After | : Boolean := False); |
procedure On_Set_Focus
( | Self | : not null access Gtk_Window_Record; |
Call | : Cb_GObject_Gtk_Widget_Void; | |
Slot | : not null access Glib.Object.GObject_Record'Class; | |
After | : Boolean := False); |
function "+"
( | Widget | : access Gtk_Window_Record'Class) return Gtk.Buildable.Gtk_Buildable renames Implements_Gtk_Buildable.To_Interface; |
function "-"
( | Interf | : Gtk.Buildable.Gtk_Buildable) return Gtk_Window renames Implements_Gtk_Buildable.To_Object; |
A GtkWindow is a toplevel window which can contain other widgets. Windows normally have decorations that are under the control of the windowing system and allow the user to manipulate the window (resize it, move it, close it,...).
GTK+ also allows windows to have a resize grip (a small area in the lower right or left corner) which can be clicked to reszie the window. To control whether a window has a resize grip, use Gtk.Window.Set_Has_Resize_Grip. == GtkWindow as GtkBuildable == The GtkWindow implementation of the GtkBuildable interface supports a custom <tag class="starttag">accel-groups</tag> element, which supports any number of <tag class="starttag">group</tag> elements representing the Gtk.Accel_Group.Gtk_Accel_Group objects you want to add to your window (synonymous with Gtk.Window.Add_Accel_Group. == A UI definition fragment with accel groups == <object class="GtkWindow"> <accel-groups>