Appends gdk option entries to the passed in option group. This is not public API and must not be used by applications.
Emits a short beep on the default display.
Creates a Cairo context for drawing to window.
This is the main way to draw GL content in GTK+. It takes a render buffer ID (source_type == #GL_RENDERBUFFER) or a texture id (source_type == #GL_TEXTURE) and draws it onto cr with an OVER operation, respecting the current clip. The top left corner of the rectangle specified by x, y, width and height will be drawn at the current (0,0) position of the cairo_t.
This is a convenience function around cairo.context.Context.clipExtents. It rounds the clip extents to integer coordinates and returns a boolean indicating if a clip area exists.
Retrieves the #GdkDrawingContext that created the Cairo context cr.
Adds the given rectangle to the current path of cr.
Adds the given region to the current path of cr.
Creates region that describes covers the area where the given surface is more than 50% opaque.
Sets the specified #GdkColor as the source color of cr.
Sets the given pixbuf as the source pattern for cr.
Sets the specified #GdkRGBA as the source color of cr.
Sets the given window as the source pattern for cr.
Creates an image surface with the same contents as the pixbuf.
Disables multidevice support in GDK. This call must happen prior to gdk.display.Display.open, gtk.global.init_, gtk.global.initWithArgs or gtk.global.initCheck in order to take effect.
Aborts a drag without dropping.
Drops on the current destination.
Inform GDK if the drop ended successfully. Passing false for success may trigger a drag cancellation animation.
Returns whether the dropped data has been successfully transferred. This function is intended to be used while handling a gdk.types.EventType.DropFinished event, its return value is meaningless at other times.
Finds the destination window and DND protocol to use at the given pointer position.
Returns the selection atom for the current source window.
Updates the drag context when the pointer moves or the set of actions changes.
Selects one of the actions offered by the drag source.
Ends the drag operation after a drop.
Accepts or rejects a drop.
Removes an error trap pushed with gdk.global.errorTrapPush. May block until an error has been definitively received or not received from the X server. gdk.global.errorTrapPopIgnored is preferred if you don’t need to know whether an error occurred, because it never has to block. If you don't need the return value of gdk.global.errorTrapPop, use gdk.global.errorTrapPopIgnored.
Removes an error trap pushed with gdk.global.errorTrapPush, but without bothering to wait and see whether an error occurred. If an error arrives later asynchronously that was triggered while the trap was pushed, that error will be ignored.
This function allows X errors to be trapped instead of the normal behavior of exiting the application. It should only be used if it is not possible to avoid the X error in any other way. Errors are ignored on all #GdkDisplay currently known to the #GdkDisplayManager. If you don’t care which error happens and just want to ignore everything, pop with gdk.global.errorTrapPopIgnored. If you need the error code, use gdk.global.errorTrapPop which may have to block and wait for the error to arrive from the X server.
If both events contain X/Y information, this function will return true and return in angle the relative angle from event1 to event2. The rotation direction for positive angles is from the positive X axis towards the positive Y axis.
If both events contain X/Y information, the center of both coordinates will be returned in x and y.
If both events have X/Y information, the distance between both coordinates (as in a straight line going from event1 to event2) will be returned.
Checks if any events are ready to be processed for any display.
Flushes the output buffers of all display connections and waits until all requests have been processed. This is rarely needed by applications.
Obtains the root window (parent all other windows are inside) for the default display and screen.
Gets the name of the display, which usually comes from the DISPLAY environment variable or the --display command line option.
Gets the display name specified in the command line arguments passed to gdk.global.init_ or gdk.global.parseArgs, if any.
Gets the program class. Unless the program class has explicitly been set with gdk.global.setProgramClass or with the --class commandline option, the default value is the program name (determined with glib.global.getPrgname) with the first character converted to uppercase.
Gets whether event debugging output is enabled.
Grabs the keyboard so that all events are passed to this application until the keyboard is ungrabbed with gdk.global.keyboardUngrab. This overrides any previous keyboard grab by this client.
Ungrabs the keyboard on the default display, if it is grabbed by this application.
Obtains the upper- and lower-case versions of the keyval symbol. Examples of keyvals are #GDK_KEY_a, #GDK_KEY_Enter, #GDK_KEY_F1, etc.
Converts a key name to a key value.
Returns true if the given key value is in lower case.
Returns true if the given key value is in upper case.
Converts a key value into a symbolic name.
Converts a key value to lower case, if applicable.
Convert from a GDK key symbol to the corresponding ISO10646 (Unicode) character.
Converts a key value to upper case, if applicable.
Lists the available visuals for the default screen. (See gdk.screen.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.
Indicates to the GUI environment that the application has finished loading. If the applications opens windows, this function is normally called after opening the application’s initial set of windows.
Indicates to the GUI environment that the application has finished loading, using a given identifier.
Gets the window that window is embedded in.
Gets the offscreen surface that an offscreen window renders into. If you need to keep this around over window resizes, you need to add a reference to it.
Sets window to be embedded in embedder.
Creates a #PangoContext for the default GDK screen.
Creates a #PangoContext for display.
Creates a #PangoContext for screen.
Transfers image data from a #cairo_surface_t and converts it to an RGB(A) representation inside a #GdkPixbuf. This allows you to efficiently read individual pixels from cairo surfaces. For #GdkWindows, use gdk.global.pixbufGetFromWindow instead.
Transfers image data from a #GdkWindow and converts it to an RGB(A) representation inside a #GdkPixbuf.
Grabs the pointer (usually a mouse) so that all events are passed to this application until the pointer is ungrabbed with gdk.global.pointerUngrab, or the grab window becomes unviewable. This overrides any previous pointer grab by this client.
Returns true if the pointer on the default display is currently grabbed by this application.
Ungrabs the pointer on the default display, if it is grabbed by this application.
Prepare for parsing command line arguments for GDK. This is not public API and should not be used in application code.
Deletes a property from a window.
Retrieves a portion of the contents of a property. If the property does not exist, then the function returns false, and GDK_NONE will be stored in actual_property_type.
This function returns the available bit depths for the default screen. It’s equivalent to listing the visuals (gdk.global.listVisuals) and then looking at the depth field in each visual, removing duplicates.
This function returns the available visual types for the default screen. It’s equivalent to listing the visuals (gdk.global.listVisuals) and then looking at the type field in each visual, removing duplicates.
Retrieves the contents of a selection in a given form.
Determines the owner of the given selection.
Determine the owner of the given selection.
Sets the owner of the given selection.
Sets the #GdkWindow owner as the current owner of the selection selection.
Sends a response to SelectionRequest event.
Send a response to SelectionRequest event.
Sets a list of backends that GDK should try to use.
Set the double click time for the default display. See gdk.display.Display.setDoubleClickTime. See also gdk.display.Display.setDoubleClickDistance. Applications should not set this, it is a global user-configured setting.
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.
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.
Obtains a desktop-wide setting, such as the double-click time, for the default screen. See gdk.screen.Screen.getSetting.
Retrieves a pixel from window to force the windowing system to carry out any pending rendering commands.
This function is intended to be used in GTK+ test programs. It will warp the mouse pointer to the given (x,y) coordinates within window and simulate a button press or release event. Because the mouse pointer needs to be warped to the target location, use of this function outside of test programs that run in their own virtual windowing system (e.g. Xvfb) is not recommended.
This function is intended to be used in GTK+ test programs. If (x,y) are > (-1,-1), it will warp the mouse pointer to the given (x,y) coordinates within window and simulate a key press or release event.
Converts a text property in the given encoding to a list of UTF-8 strings.
Adds a function to be called whenever there are no higher priority events pending. If the function returns false it is automatically removed from the list of event sources and will not be called again.
Sets a function to be called at regular intervals holding the GDK lock, with the given priority. The function is called repeatedly until it returns false, at which point the timeout is automatically destroyed and the function will not be called again. The notify function is called when the timeout is destroyed. The first call to the function will be at the end of the first interval.
A variant of gdk.global.threadsAddTimeoutFull with second-granularity. See glib.global.timeoutAddSecondsFull for a discussion of why it is a good idea to use this function if you don’t need finer granularity.
This function marks the beginning of a critical section in which GDK and GTK+ functions can be called safely and without causing race conditions. Only one thread at a time can be in such a critial section.
Initializes GDK so that it can be used from multiple threads in conjunction with gdk.global.threadsEnter and gdk.global.threadsLeave.
Leaves a critical region begun with gdk.global.threadsEnter.
Convert from a ISO10646 character to a key symbol.
Converts an UTF-8 string into the best possible representation as a STRING. The representation of characters not in STRING is not specified; it may be as pseudo-escape sequences \x{ABCD}, or it may be in some other form of approximation.
Global functions for gdk3 library