Functions¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- GdkX11.x11_device_get_id(device)[source]¶
- Parameters:
device (
GdkX11.X11DeviceXI2
) – aGdkDevice
- Returns:
the XInput2 device ID
- Return type:
Returns the device ID as seen by XInput2.
- GdkX11.x11_device_manager_lookup(device_manager, device_id)[source]¶
- Parameters:
device_manager (
GdkX11.X11DeviceManagerXI2
) – aGdkDeviceManager
device_id (
int
) – a device ID, as understood by the XInput2 protocol
- Returns:
The
GdkDevice
wrapping the device ID, orNone
if the given ID doesn’t currently represent a device.- Return type:
Returns the
GdkDevice
that wraps the given device ID.
- GdkX11.x11_free_compound_text(ctext)[source]¶
- Parameters:
ctext (
int
) – The pointer stored in ctext from a call toGdkX11.X11Display.string_to_compound_text
().
Frees the data returned from
GdkX11.X11Display.string_to_compound_text
().
- GdkX11.x11_free_text_list(list)[source]¶
- Parameters:
list (
str
) – the value stored in the list parameter by a call toGdkX11.X11Display.text_property_to_text_list
().
Frees the array of strings created by
GdkX11.X11Display.text_property_to_text_list
().
- GdkX11.x11_get_server_time(surface)[source]¶
- Parameters:
surface (
GdkX11.X11Surface
) – aGdkSurface
, used for communication with the server. The surface must haveGDK_PROPERTY_CHANGE_MASK
in its events mask or a hang will result.- Returns:
the time stamp
- Return type:
Routine to get the current X server time stamp.
- GdkX11.x11_get_xatom_by_name_for_display(display, atom_name)[source]¶
- Parameters:
display (
GdkX11.X11Display
) – aGdkDisplay
atom_name (
str
) – a string
- Returns:
a X atom for a
GdkDisplay
- Return type:
Returns the X atom for a
GdkDisplay
corresponding to atom_name. This function caches the result, so if called repeatedly it is much faster than XInternAtom(), which is a round trip to the server each time.
- GdkX11.x11_get_xatom_name_for_display(display, xatom)[source]¶
- Parameters:
display (
GdkX11.X11Display
) – theGdkDisplay
where xatom is definedxatom (
int
) – an X atom
- Returns:
name of the X atom; this string is owned by GDK, so it shouldn’t be modified or freed.
- Return type:
Returns the name of an X atom for its display. This function is meant mainly for debugging, so for convenience, unlike XAtomName() and the result doesn’t need to be freed.
- GdkX11.x11_lookup_xdisplay(xdisplay)[source]¶
- Parameters:
xdisplay (
xlib.Display
) – a pointer to an Xxlib.Display
- Returns:
the
GdkDisplay
, if found, otherwiseNone
.- Return type:
Find the
GdkDisplay
corresponding to xdisplay, if any exists.
- GdkX11.x11_set_sm_client_id(sm_client_id)[source]¶
- Parameters:
sm_client_id (
str
orNone
) – the client id assigned by the session manager when the connection was opened, orNone
to remove the property.
Sets the
SM_CLIENT_ID
property on the application’s leader window so that the window manager can save the application’s state using the X11R6 ICCCM session management protocol.See the X Session Management Library documentation for more information on session management and the Inter-Client Communication Conventions Manual