Gdk.Main

Entities

Subprograms

Description

This package provides routines to handle initialization and set up of the Gdk library.

<c_version>1.3.6</c_version> <group>Gdk, the low-level API</group>

Beep

procedure Beep

Emit a beep.

Flush

procedure Flush

Flush the queue of graphic events and then wait until all requests have been received and processed.

Gdk_Exit

procedure Gdk_Exit (Error_Code : Gint)

Restore the library to an un-itialized state and exits the program using the "exit" system call. Error_Code is the error value to pass to "exit". Allocated structures are freed and the program exits cleanly. This function is deprecated.

Parameters
Error_Code

Get_Display

function Get_Display return String

Return the name of the display.

Return Value

Init

procedure Init

Initialize the library for use. The command line arguments are modified to reflect any arguments which were not handled. (Such arguments should either be handled by the application or dismissed).

Keyboard_Grab

function Keyboard_Grab
  (Window       : Gdk.Gdk_Window;
   Owner_Events : Boolean := True;
   Time         : Guint32 := 0) return Gdk.Types.Gdk_Grab_Status

Grab the keyboard to a specific window.

Requires a corresponding call to Keyboard_Ungrab

Parameters
Window
Owner_Events
Time
Return Value

Keyboard_Ungrab

procedure Keyboard_Ungrab (Time : Guint32 := 0)

Release any keyboard grab.

Parameters
Time

Pointer_Grab

function Pointer_Grab
  (Window       : Gdk.Gdk_Window;
   Owner_Events : Boolean := True;
   Event_Mask   : Gdk.Event.Gdk_Event_Mask;
   Confine_To   : Gdk.Gdk_Window := null;
   Cursor       : Gdk.Gdk_Cursor := null;
   Time         : Guint32 := 0) return Gdk.Types.Gdk_Grab_Status

Grab the pointer to a specific window.

Requires a corresponding call to Pointer_Ungrab

This is obsolescent in gtk-3, use Gdk.Device.Grab instead

Parameters
Window
Owner_Events
Event_Mask
Confine_To
Cursor
Time
Return Value

Pointer_Is_Grabbed

function Pointer_Is_Grabbed return Boolean

Tell wether there is an active pointer grab in effect.

Return Value

Pointer_Ungrab

procedure Pointer_Ungrab (Time : Guint32 := 0)

Release any pointer grab.

Parameters
Time

Screen_Height

function Screen_Height return Gint

Return the height of the screen.

Return Value

Screen_Height_MM

function Screen_Height_MM return Gint

Return the height of the screen in millimeters.

Return Value

Screen_Width

function Screen_Width return Gint

Return the width of the screen.

Return Value

Screen_Width_MM

function Screen_Width_MM return Gint

Return the width of the screen in millimeters.

Return Value

Set_Double_Click_Time

procedure Set_Double_Click_Time (Msec : Guint)
Parameters
Msec