package Gdk_Window_List is new Glib.Glist.Generic_List (Gpointer => Gdk_Window);
package Window_Type_Hint_Properties is new Generic_Internal_Discrete_Property (Gdk_Window_Type_Hint);
package Gravity_Properties is new Generic_Internal_Discrete_Property (Gdk_Gravity);
subtype Gdk_Window is Gdk.Gdk_Window;
type Gdk_Window_Type is (Window_Root, -- there is only one root window and it is initialized at startup. -- Creating a window of type Window_Root is an error. Window_Toplevel, -- Windows which interact with the window manager. Window_Child, -- Windows which are children of some other type of window. -- (Any other type of window). Most windows are child windows. Window_Dialog, -- A special kind of toplevel window which interacts with the window -- manager slightly differently than a regular toplevel window. -- Dialog windows should be used for any transient window. Window_Temp, -- ??? Window_Foreign -- A window that actually belongs to another application. );
type Gdk_Window_Type_Hint is (Window_Type_Hint_Normal, -- Normal toplevel window Window_Type_Hint_Dialog, -- Dialog window Window_Type_Hint_Menu, -- Window used to implement a menu. Window_Type_Hint_Toolbar -- Toolbar: Window used to implement toolbars. );
type Gdk_Gravity is (Gravity_North_West, Gravity_North, Gravity_North_East, Gravity_West, Gravity_Center, Gravity_East, Gravity_South_West, Gravity_South, Gravity_South_East, Gravity_Static);
type Gdk_Window_Edge is (Window_Edge_North_West, Window_Edge_North, Window_Edge_North_East, Window_Edge_West, Window_Edge_East, Window_Edge_South_West, Window_Edge_South, Window_Edge_South_East);
type Gdk_Filter_Return is (Continue, -- Event not handled, continue processing Translate, -- Translated event stored Remove);
type Gdk_Filter_Func is access function (System_Event : C_Proxy; Event : Gdk.Event.Gdk_Event; Data : System.Address) return Gdk_Filter_Return;
type Property_Window_Type_Hint is new Window_Type_Hint_Properties.Property;
type Property_Gravity is new Gravity_Properties.Property;
Null_Window : constant Gdk_Window;
Wa_Title : constant Gdk_Window_Attributes_Type := 2 ** 1;
Wa_X : constant Gdk_Window_Attributes_Type := 2 ** 2;
Wa_Y : constant Gdk_Window_Attributes_Type := 2 ** 3;
Wa_Cursor : constant Gdk_Window_Attributes_Type := 2 ** 4;
Wa_Colormap : constant Gdk_Window_Attributes_Type := 2 ** 5;
Wa_Visual : constant Gdk_Window_Attributes_Type := 2 ** 6;
Wa_Wmclass : constant Gdk_Window_Attributes_Type := 2 ** 7;
Wa_Noredir : constant Gdk_Window_Attributes_Type := 2 ** 8;
Gdk_Hint_Pos : constant Gdk_Window_Hints := 2 ** 0;
Gdk_Hint_Min_Size : constant Gdk_Window_Hints := 2 ** 1;
Gdk_Hint_Max_Size : constant Gdk_Window_Hints := 2 ** 2;
Gdk_Hint_Base_Size : constant Gdk_Window_Hints := 2 ** 3;
Gdk_Hint_Aspect : constant Gdk_Window_Hints := 2 ** 4;
Gdk_Hint_Resize_Inc : constant Gdk_Window_Hints := 2 ** 5;
Decor_All : constant Gdk_Wm_Decoration := 2 ** 0;
Decor_Border : constant Gdk_Wm_Decoration := 2 ** 1;
Decor_Resize_H : constant Gdk_Wm_Decoration := 2 ** 2;
Decor_Title : constant Gdk_Wm_Decoration := 2 ** 3;
Decor_Menu : constant Gdk_Wm_Decoration := 2 ** 4;
Decor_Minimize : constant Gdk_Wm_Decoration := 2 ** 5;
Decor_Maximize : constant Gdk_Wm_Decoration := 2 ** 6;
Func_All : constant Gdk_Wm_Function := 2 ** 0;
Func_Resize : constant Gdk_Wm_Function := 2 ** 1;
Func_Move : constant Gdk_Wm_Function := 2 ** 2;
Func_Minimize : constant Gdk_Wm_Function := 2 ** 3;
Func_Maximize : constant Gdk_Wm_Function := 2 ** 4;
Func_Close : constant Gdk_Wm_Function := 2 ** 5;
procedure Gdk_New
( | Window | : out Gdk_Window; |
Parent | : Gdk_Window; | |
Attributes | : Gdk_Window_Attr; | |
Attributes_Mask | : Gdk_Window_Attributes_Type); |
procedure Set_User_Data
( | Window | : Gdk.Gdk_Window; |
Widget | : access Glib.Object.GObject_Record'Class); |
function Get_User_Data
( | Window | : Gdk.Gdk_Window) return Glib.Object.GObject; |
procedure Add_Filter
( | Window | : Gdk.Gdk_Window; |
Filter | : Gdk_Filter_Func; | |
Data | : System.Address); |
procedure Remove_Filter
( | Window | : Gdk.Gdk_Window; |
Filter | : Gdk_Filter_Func; | |
Data | : System.Address); |
function Get_Window_Type
( | Window | : Gdk_Window) return Gdk_Window_Type; |
procedure Window_At_Pointer
( | Win_X | : out Gint; |
Win_Y | : out Gint; | |
Window | : out Gdk_Window); |
procedure Show
( | Window | : Gdk_Window); |
procedure Show_Unraised
( | Window | : Gdk_Window); |
procedure Hide
( | Window | : Gdk_Window); |
procedure Withdraw
( | Window | : Gdk_Window); |
procedure Move
( | Window | : Gdk_Window; |
X | : Gint; | |
Y | : Gint); |
procedure Resize
( | Window | : Gdk_Window; |
Width | : Gint; | |
Height | : Gint); |
procedure Move_Resize
( | Window | : Gdk_Window; |
X | : Gint; | |
Y | : Gint; | |
Width | : Gint; | |
Height | : Gint); |
procedure Reparent
( | Window | : Gdk_Window; |
New_Parent | : Gdk_Window; | |
X | : Gint; | |
Y | : Gint); |
procedure Clear
( | Window | : Gdk_Window); |
procedure Clear_Area
( | Window | : Gdk_Window; |
X | : Gint; | |
Y | : Gint; | |
Width | : Gint; | |
Height | : Gint); |
procedure Clear_Area_E
( | Window | : Gdk_Window; |
X | : Gint; | |
Y | : Gint; | |
Width | : Gint; | |
Height | : Gint); |
procedure Copy_Area
( | Window | : Gdk_Window; |
Gc | : Gdk.Gdk_GC; | |
X | : Gint; | |
Y | : Gint; | |
Source_Window | : Gdk_Window; | |
Source_X | : Gint; | |
Source_Y | : Gint; | |
Width | : Gint; | |
Height | : Gint); |
function Create_Similar_Surface
( | Window | : Gdk_Window; |
Content | : Cairo.Cairo_Content; | |
Width | : Glib.Gint; | |
Height | : Glib.Gint) return Cairo.Cairo_Surface; |
procedure Gdk_Raise
( | Window | : Gdk_Window); |
procedure Lower
( | Window | : Gdk_Window); |
procedure Focus
( | Window | : Gdk_Window; |
Timestamp | : Guint32); |
procedure Set_Override_Redirect
( | Window | : Gdk_Window; |
Override_Redirect | : Boolean := True); |
procedure Scroll
( | Window | : Gdk_Window; |
Dx, Dy | : Gint); |
procedure Shape_Combine_Mask
( | Window | : Gdk_Window; |
Shape_Mask | : Gdk.Gdk_Bitmap; | |
Offset_X | : Gint; | |
Offset_Y | : Gint); |
procedure Shape_Combine_Region
( | Window | : Gdk_Window; |
Shape_Region | : Gdk.Gdk_Region; | |
Offset_X | : Gint; | |
Offset_Y | : Gint); |
procedure Set_Child_Shapes
( | Window | : Gdk_Window); |
procedure Merge_Child_Shapes
( | Window | : Gdk_Window); |
function Is_Visible
( | Window | : Gdk_Window) return Boolean; |
function Is_Viewable
( | Window | : Gdk_Window) return Boolean; |
function Get_State
( | Window | : Gdk_Window) return Gdk.Event.Gdk_Window_State; |
function Set_Static_Gravities
( | Window | : Gdk_Window; |
Use_Static | : Boolean) return Boolean; |
procedure Set_Hints
( | Window | : Gdk_Window; |
X | : Gint; | |
Y | : Gint; | |
Min_Width | : Gint; | |
Min_Height | : Gint; | |
Max_Width | : Gint; | |
Max_Height | : Gint; | |
Flags | : Gdk_Window_Hints); |
procedure Set_Type_Hint
( | Window | : Gdk_Window; |
Hint | : Gdk_Window_Type_Hint); |
procedure Set_Modal_Hint
( | Window | : Gdk_Window; |
Modal | : Boolean); |
procedure Set_Geometry_Hints
( | Window | : Gdk_Window; |
Geometry | : in out Gdk_Geometry; | |
Flags | : Gdk_Window_Hints); |
procedure Set_Title
( | Window | : Gdk_Window; |
Title | : UTF8_String); |
procedure Set_Role
( | Window | : Gdk_Window; |
Role | : String); |
procedure Set_Transient_For
( | Window | : Gdk_Window; |
Leader | : Gdk_Window); |
procedure Set_Opacity
( | Window | : Gdk_Window; |
Opacity | : Gdouble); |
procedure Set_Composited
( | Window | : Gdk_Window; |
Composited | : Boolean); |
procedure Set_Background
( | Window | : Gdk_Window; |
Color | : Gdk.Color.Gdk_Color); |
procedure Set_Back_Pixmap
( | Window | : Gdk_Window; |
Pixmap | : Gdk.Gdk_Pixmap; | |
Parent_Relative | : Boolean); |
procedure Set_Cursor
( | Window | : Gdk_Window; |
Cursor | : Gdk.Cursor.Gdk_Cursor); |
procedure Get_Geometry
( | Window | : Gdk_Window; |
X | : out Gint; | |
Y | : out Gint; | |
Width | : out Gint; | |
Height | : out Gint; | |
Depth | : out Gint); |
procedure Get_Position
( | Window | : Gdk_Window; |
X | : out Gint; | |
Y | : out Gint); |
procedure Get_Origin
( | Window | : Gdk_Window; |
X | : out Gint; | |
Y | : out Gint; | |
Success | : out Boolean); |
procedure Get_Desk_Relative_Origin
( | Window | : Gdk_Window; |
X | : out Gint; | |
Y | : out Gint; | |
Success | : out Boolean); |
procedure Get_Root_Origin
( | Window | : Gdk_Window; |
X | : out Gint; | |
Y | : out Gint); |
procedure Get_Frame_Extents
( | Window | : Gdk_Window; |
Rect | : Gdk.Rectangle.Gdk_Rectangle); |
procedure Get_Pointer
( | Window | : Gdk_Window; |
X | : out Gint; | |
Y | : out Gint; | |
Mask | : out Gdk.Types.Gdk_Modifier_Type; | |
Result | : out Gdk_Window); |
function Get_Parent
( | Window | : Gdk_Window) return Gdk_Window; |
function Get_Toplevel
( | Window | : Gdk_Window) return Gdk_Window; |
function Convert is new Unchecked_Conversion
( | Gdk_Window, System.Address); |
function Convert is new Unchecked_Conversion
( | System.Address, Gdk_Window); |
function Get_Children
( | Window | : Gdk_Window) return Gdk_Window_List.Glist; |
function Peek_Children
( | Window | : Gdk_Window) return Gdk_Window_List.Glist; |
function Get_Events
( | Window | : Gdk_Window) return Gdk.Event.Gdk_Event_Mask; |
procedure Set_Events
( | Window | : Gdk_Window; |
Event_Mask | : Gdk.Event.Gdk_Event_Mask); |
procedure Set_Icon
( | Window | : Gdk_Window; |
Icon_Window | : Gdk_Window; | |
Pixmap | : Gdk_Pixmap; | |
Mask | : Gdk_Bitmap); |
procedure Set_Icon_Name
( | Window | : Gdk_Window; |
Name | : UTF8_String); |
procedure Set_Group
( | Window | : Gdk_Window; |
Leader | : Gdk_Window); |
procedure Set_Decorations
( | Window | : Gdk_Window; |
Decorations | : Gdk_Wm_Decoration); |
procedure Get_Decorations
( | Window | : Gdk_Window; |
Decorations | : out Gdk_Wm_Decoration; | |
Success | : out Boolean); |
procedure Set_Functions
( | Window | : Gdk_Window; |
Functions | : Gdk_Wm_Function); |
procedure Invalidate_Rect
( | Window | : Gdk_Window; |
Rectangle | : Gdk.Rectangle.Gdk_Rectangle; | |
Invalidate_Children | : Boolean); |
function Get_Toplevels return Gdk_Window_List.Glist;
procedure Iconify
( | Window | : Gdk_Window); |
procedure Deiconify
( | Window | : Gdk_Window); |
procedure Stick
( | Window | : Gdk_Window); |
procedure Unstick
( | Window | : Gdk_Window); |
procedure Maximize
( | Window | : Gdk_Window); |
procedure Unmaximize
( | Window | : Gdk_Window); |
procedure Register_Dnd
( | Window | : Gdk_Window); |
function Get_Update_Area
( | Window | : Gdk_Window) return Gdk_Region; |
procedure Freeze_Updates
( | Window | : Gdk_Window); |
procedure Thaw_Updates
( | Window | : Gdk_Window); |
procedure Process_Updates
( | Window | : Gdk_Window; |
Update_Children | : Boolean := True); |
function Get_Window_Id
( | Window | : Gdk_Window) return System.Address; |
Binding from C File version 1.3.6
Binding from C File version 2.12
for some of the functions