Expand description
§Rust GDKX11 bindings
Project site is here.
Rust bindings and wrappers for GDKX11, part of gtk3-rs.
GDKX11 3.22 is the lowest supported version for the underlying library.
§Minimum supported Rust version
Currently, the minimum supported Rust version is 1.92.0.
§Documentation
§Using
We recommend using crates from crates.io, as demonstrated here.
If you want to track the bleeding edge, use the git dependency instead:
[dependencies]
gdkx11 = { git = "https://github.com/gtk-rs/gtk3-rs.git", package = "gdkx11" }Avoid mixing versioned and git crates like this:
# This will not compile
[dependencies]
gdkx11 = "0.13"
gdkx11 = { git = "https://github.com/gtk-rs/gtk3-rs.git", package = "gdkx11" }§See Also
§License
gdkx11 is available under the MIT License, please refer to it.
Re-exports§
pub use gdk;pub use gdk_x11_sys as ffi;pub use gio;pub use glib;pub use x11;
Modules§
- builders
- Builder pattern types.
Structs§
- X11App
Launch Context - Implements
- X11Cursor
- Implements
- X11Device
Core - Implements
- X11Device
Manager Core - Implements
- X11Device
ManagerX I2 - Properties
- X11DeviceX
I2 - Properties
- X11Display
- Implements
- X11Display
Manager - Implements
- X11Drag
Context - Implements
- X11GL
Context - Implements
- X11Keymap
- Implements
- X11Monitor
- Implements
- X11Screen
- Signals
- X11Visual
- Implements
- X11Window
- Implements
Functions§
- x11_
atom_ to_ xatom - Converts from a
gdk::Atomto the X atom for the default GDK display with the same string value. - x11_
atom_ to_ xatom_ for_ display - Converts from a
gdk::Atomto the X atom for agdk::Displaywith the same string value. The special valueGDK_NONEis converted toNone. - x11_
device_ get_ id - those managed via XInput 1.x), will return 0.
- x11_
device_ manager_ lookup - Returns the
gdk::Devicethat wraps the given device ID. - x11_
get_ default_ root_ xwindow - Gets the root window of the default screen
(see
x11_get_default_screen()). - x11_
get_ default_ screen - Gets the default GTK+ screen number.
- x11_
get_ server_ time - Routine to get the current X server time stamp.
- x11_
get_ xatom_ by_ name - Returns the X atom for GDK’s default display 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_ by_ name_ for_ display - Returns the X atom for a
gdk::Displaycorresponding toatom_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 - Returns the name of an X atom for GDK’s default display. This
function is meant mainly for debugging, so for convenience, unlike
XAtomName() and
gdk::Atom::name(), the result doesn’t need to be freed. Also, this function will never returnNone, even ifxatomis invalid. - x11_
get_ xatom_ name_ for_ display - Returns the name of an X atom for its display. This
function is meant mainly for debugging, so for convenience, unlike
XAtomName() and
gdk::Atom::name(), the result doesn’t need to be freed. - x11_
grab_ server - Call
X11Display::grab()on the default display. To ungrab the server again, usex11_ungrab_server(). - x11_
register_ standard_ event_ type - Registers interest in receiving extension events with type codes
between
event_baseandevent_base + n_events - 1. The registered events must have the window field in the same place as core X events (this is not the case for e.g. XKB extension events). - x11_
set_ sm_ client_ id - 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. - x11_
ungrab_ server - Ungrab the default display after it has been grabbed with
x11_grab_server(). - x11_
xatom_ to_ atom - Convert from an X atom for the default display to the corresponding
gdk::Atom. - x11_
xatom_ to_ atom_ for_ display - Convert from an X atom for a
gdk::Displayto the correspondinggdk::Atom.