Module: GdkX11
- Defined in:
- lib/gdk4/x11-loader.rb
Overview
Copyright (C) 2017-2022 Ruby-GNOME Project Team
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Defined Under Namespace
Modules: X11DeviceType Classes: Loader, X11AppLaunchContext, X11DeviceManagerXI2, X11DeviceXI2, X11Display, X11Drag, X11GLContext, X11Monitor, X11Screen, X11Surface
Instance Method Summary collapse
-
#x11_device_get_id(device) ⇒ Integer
Returns the device ID as seen by XInput2.
-
#x11_device_manager_lookup(device_manager, device_id) ⇒ GdkX11::X11DeviceXI2
Returns the
GdkDevicethat wraps the given device ID. -
#x11_free_compound_text(ctext) ⇒ nil
Frees the data returned from gdk_x11_display_string_to_compound_text().
-
#x11_free_text_list(list) ⇒ nil
Frees the array of strings created by gdk_x11_display_text_property_to_text_list().
-
#x11_get_server_time(surface) ⇒ Integer
Routine to get the current X server time stamp.
-
#x11_get_xatom_by_name_for_display(display, atom_name) ⇒ xlib::Atom
Returns the X atom for a
GdkDisplaycorresponding to atom_name. -
#x11_get_xatom_name_for_display(display, xatom) ⇒ String
Returns the name of an X atom for its display.
-
#x11_lookup_xdisplay(xdisplay) ⇒ GdkX11::X11Display
Find the
GdkDisplaycorresponding to xdisplay, if any exists. -
#x11_set_sm_client_id(sm_client_id) ⇒ nil
Sets the
SM_CLIENT_IDproperty on the application’s leader window so that the window manager can save the application’s state using the X11R6 ICCCM session management protocol.
Instance Method Details
#x11_device_get_id(device) ⇒ Integer
Returns the device ID as seen by XInput2.
#x11_device_manager_lookup(device_manager, device_id) ⇒ GdkX11::X11DeviceXI2
Returns the GdkDevice that wraps the given device ID.
#x11_free_compound_text(ctext) ⇒ nil
Frees the data returned from gdk_x11_display_string_to_compound_text().
#x11_free_text_list(list) ⇒ nil
Frees the array of strings created by gdk_x11_display_text_property_to_text_list().
#x11_get_server_time(surface) ⇒ Integer
Routine to get the current X server time stamp.
#x11_get_xatom_by_name_for_display(display, atom_name) ⇒ xlib::Atom
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.
#x11_get_xatom_name_for_display(display, xatom) ⇒ String
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.
#x11_lookup_xdisplay(xdisplay) ⇒ GdkX11::X11Display
Find the GdkDisplay corresponding to xdisplay, if any exists.
#x11_set_sm_client_id(sm_client_id) ⇒ nil
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