W Wrapl, The Programming Language

Libraries:Gtk:Gdk:Global

Functions

AddClientMessageFilter(message_type @ Gtk.Gdk.Atom.T, func @ Std.Function.T, data @ Std.Address.T) : Std.Object.T

Adds a filter to the default display to be called when X ClientMessage events are received. See Gtk.Gdk.Display.AddClientMessageFilter.

message_type the type of ClientMessage events to receive. This will be checked against the message_type field of the XClientMessage event struct.
func the function to call to process the event.
data user data to pass to func.


AddOptionEntriesLibgtkOnly(group @ Gtk.Glib.GOptionGroup.T) : Std.Object.T



DevicesList() : Std.Object.T

Returns the list of available input devices for the default display. The list is statically allocated and should not be freed.

Returns a list of Gtk.Gdk.Device.T


EventsPending() : Std.Symbol.T

Checks if any events are ready to be processed for any display.

Returns TRUE if any events are pending.


FreeCompoundText(ctext @ Std.String.T) : Std.Object.T

Warning

FreeCompoundText is deprecated and should not be used in newly-written code.



FreeTextList(list @ Agg.List.T) : Std.Object.T

Warning

FreeTextList is deprecated and should not be used in newly-written code.



GetDefaultRootWindow() : Gtk.Gdk.Window.T

Obtains the root window (parent all other windows are inside) for the default display and screen.

Returns the default root window


GetDisplay() : Std.String.T

Gets the name of the display, which usually comes from the DISPLAY environment variable or the --display command line option.

Returns the name of the display.


GetDisplayArgName() : Std.String.T

Gets the display name specified in the command line arguments passed to gdk_init() or ParseArgs, if any.

Returns the display name, if specified explicitely, otherwise NULL this string is owned by GTK+ and must not be modified or freed.


GetProgramClass() : Std.String.T

Gets the program class. Unless the program class has explicitly been set with SetProgramClass or with the --class commandline option, the default value is the program name (determined with g_get_prgname()) with the first character converted to uppercase.

Returns the program class.


GetShowEvents() : Std.Symbol.T

Gets whether event debugging output is enabled.

Returns TRUE if event debugging output is enabled.


GetUseXshm() : Std.Symbol.T

Warning

GetUseXshm is deprecated and should not be used in newly-written code.



InitCheck(argc @ Std.Object.T, argv @ Std.Object.T) : Std.Symbol.T

Initialize the library for use.

Arguments: "argc" is the number of arguments. "argv" is an array of strings.

Results: "argc" and "argv" are modified to reflect any arguments which were not handled. (Such arguments should either be handled by the application or dismissed). If initialization fails, returns FALSE, otherwise TRUE.

Side effects: The library is initialized.

--------------------------------------------------------------

Initializes the GDK library and connects to the X server, returning TRUE on success.

Any arguments used by GDK are removed from the array and argc and argv are updated accordingly.

GTK+ initializes GDK in gtk_init() and so this function is not usually needed by GTK+ applications.

argc . [inout]
argv . [array length=argc][inout]
Returns TRUE if initialization succeeded.


ListVisuals() : Std.Object.T

Lists the available visuals for the default screen. (See Gtk.Gdk.Screen.ListVisuals) A visual describes a hardware image data format. For example, a visual might support 24-bit color, or 8-bit color, and might expect pixels to be in a certain format.

Call g_list_free() on the return value when you're finished with it.

Returns a list of visuals; the list must be freed, but not its contents. [transfer container][element-type GdkVisual]


NetWmSupports(property @ Gtk.Gdk.Atom.T) : Std.Symbol.T

Warning

NetWmSupports has been deprecated since version 2.24 and should not be used in newly-written code. Use gdk_x11_screen_supports_net_wm_hint() instead



ParseArgs(argc @ Std.Object.T, argv @ Std.Object.T) : Std.Object.T

Parse command line arguments, and store for future use by calls to Gtk.Gdk.Display.Open.

Any arguments used by GDK are removed from the array and argc and argv are updated accordingly.

You shouldn't call this function explicitely if you are using gtk_init(), gtk_init_check(), gdk_init(), or InitCheck.

argc the number of command line arguments.
argv the array of command line arguments. [inout][array length=argc]


PreParseLibgtkOnly() : Std.Object.T



SetDoubleClickTime(msec @ Std.Integer.SmallT) : Std.Object.T

Set the double click time for the default display. See Gtk.Gdk.Display.SetDoubleClickTime. See also Gtk.Gdk.Display.SetDoubleClickDistance. Applications should not set this, it is a global user-configured setting.

msec double click time in milliseconds (thousandths of a second)


SetLocale() : Std.String.T

Warning

SetLocale has been deprecated since version 2.24 and should not be used in newly-written code. Use setlocale() directly



SetPointerHooks(new_hooks @ Gtk.Gdk.PointerHooks.T) : Gtk.Gdk.PointerHooks.T

Warning

SetPointerHooks has been deprecated since version 2.24 and should not be used in newly-written code. This function will go away in GTK 3 for lack of use cases.



SetProgramClass(program_class @ Std.String.T) : Std.Object.T

Sets the program class. The X11 backend uses the program class to set the class name part of the WM_CLASS property on toplevel windows; see the ICCCM.

program_class a string.


SetShowEvents(show_events @ Std.Symbol.T) : Std.Object.T

Sets whether a trace of received events is output. Note that GTK+ must be compiled with debugging (that is, configured using the --enable-debug option) to use this option.

show_events TRUE to output event debugging information.


SetSmClientId(sm_client_id @ Std.String.T) : Std.Object.T

Warning

SetSmClientId has been deprecated since version 2.24 and should not be used in newly-written code. Use gdk_x11_set_sm_client_id() instead



SetUseXshm(use_xshm @ Std.Symbol.T) : Std.Object.T

Warning

SetUseXshm is deprecated and should not be used in newly-written code.



SettingGet(name @ Std.String.T, value @ Gtk.GObject.Value.T) : Std.Symbol.T

Obtains a desktop-wide setting, such as the double-click time, for the default screen. See Gtk.Gdk.Screen.GetSetting.

name the name of the setting.
value location to store the value of the setting.
Returns TRUE if the setting existed and a value was stored in value, FALSE otherwise.


StringExtents(font @ Gtk.Gdk.Font.T, string @ Std.String.T, lbearing @ Std.Object.T, rbearing @ Std.Object.T, width @ Std.Object.T, ascent @ Std.Object.T, descent @ Std.Object.T) : Std.Object.T

Warning

StringExtents is deprecated and should not be used in newly-written code.



StringHeight(font @ Gtk.Gdk.Font.T, string @ Std.String.T) : Std.Integer.SmallT

Warning

StringHeight is deprecated and should not be used in newly-written code.



StringMeasure(font @ Gtk.Gdk.Font.T, string @ Std.String.T) : Std.Integer.SmallT

Warning

StringMeasure is deprecated and should not be used in newly-written code.



StringToCompoundText(str @ Std.String.T, encoding @ Gtk.Gdk.Atom.T, format @ Std.Object.T, ctext @ Std.Object.T, length @ Std.Object.T) : Std.Integer.SmallT

Warning

StringToCompoundText is deprecated and should not be used in newly-written code.



StringToCompoundTextForDisplay(display @ Gtk.Gdk.Display.T, str @ Std.String.T, encoding @ Gtk.Gdk.Atom.T, format @ Std.Object.T, ctext @ Std.Object.T, length @ Std.Object.T) : Std.Integer.SmallT

Warning

StringToCompoundTextForDisplay has been deprecated since version 2.24 and should not be used in newly-written code. Use gdk_x11_display_string_to_compound_text()



StringWidth(font @ Gtk.Gdk.Font.T, string @ Std.String.T) : Std.Integer.SmallT

Warning

StringWidth is deprecated and should not be used in newly-written code.



UnicodeToKeyval(wc @ Std.Integer.SmallT) : Std.Integer.SmallT

Convert from a ISO10646 character to a key symbol.

wc a ISO10646 encoded character
Returns the corresponding GDK key symbol, if one exists. or, if there is no corresponding symbol, wc | 0x01000000