This package provides routines to handle initialization and set up of the Gdk library.
Subprograms |
---|
procedure Init; | ||
Initialize the library for use. | ||
procedure Gdk_Exit (Error_Code : in Gint); | ||
Restore the library to an un-itialized state and exits | ||
function Set_Locale return String; | ||
Initialize handling of internationalization of strings. | ||
procedure Set_Locale; | ||
Drops the string returned by the Set_Locale function;
| ||
procedure Set_Use_Xshm (Use_Xshm : in Boolean := True); | ||
Set whether shared memory (when supported by the graphic server) should | ||
function Get_Use_Xshm return Boolean; | ||
Return whether shared memory on the graphic server is used.
| ||
function Get_Display return String; | ||
Return the name of the display.
| ||
function Time_Get return Guint32; | ||
Get the number of milliseconds since the library was initialized. | ||
function Timer_Get return Guint32; | ||
Return the current timer interval. | ||
procedure Timer_Set (Milliseconds : in Guint32); | ||
Set the timer interval. | ||
procedure Timer_Enable; | ||
Enable the Gdk timer.
| ||
procedure Timer_Disable; | ||
Disable the Gdk timer.
| ||
function Screen_Width return Gint; | ||
Return the width of the screen.
| ||
function Screen_Height return Gint; | ||
Return the height of the screen.
| ||
function Screen_Width_MM return Gint; | ||
Return the width of the screen in millimeters.
| ||
function Screen_Height_MM return Gint; | ||
Return the height of the screen in millimeters.
| ||
procedure Flush; | ||
Flush the queue of graphic events and then wait | ||
procedure Beep; | ||
Emit a beep.
| ||
procedure Key_Repeat_Disable; | ||
Disable the key repeat behavior.
| ||
procedure Key_Repeat_Restore; | ||
Restore the key repet behavior.
| ||
function Pointer_Grab (Window : in Gdk.Window.Gdk_Window; Owner_Events : in Boolean := True; Event_Mask : in Gdk.Types.Gdk_Event_Mask; Confine_To : in Gdk.Window.Gdk_Window := Gdk.Window.Null_Window; Cursor : in Gdk.Cursor.Gdk_Cursor := Gdk.Cursor.Null_Cursor; Time : in Guint32) return Boolean; | ||
Grab the pointer to a specific window.
| ||
procedure Pointer_Ungrab (Time : in Guint32); | ||
Release any pointer grab.
| ||
function Pointer_Is_Grabbed return Boolean; | ||
Tell wether there is an active pointer grab in effect.
| ||
function Keyboard_Grab (Window : in Gdk.Window.Gdk_Window; Owner_Events : in Boolean := True; Time : in Guint32) return Boolean; | ||
Grab the keyboard to a specific window.
| ||
procedure Keyboard_Ungrab (Time : in Guint32); | ||
Release any keyboard grab.
|