Skip to main content

Crate gdkx11

Crate gdkx11 

Source
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§

X11AppLaunchContext
Implements
X11Cursor
Implements
X11DeviceCore
Implements
X11DeviceManagerCore
Implements
X11DeviceManagerXI2
Properties
X11DeviceXI2
Properties
X11Display
Implements
X11DisplayManager
Implements
X11DragContext
Implements
X11GLContext
Implements
X11Keymap
Implements
X11Monitor
Implements
X11Screen
Signals
X11Visual
Implements
X11Window
Implements

Functions§

x11_atom_to_xatom
Converts from a gdk::Atom to the X atom for the default GDK display with the same string value.
x11_atom_to_xatom_for_display
Converts from a gdk::Atom to the X atom for a gdk::Display with the same string value. The special value GDK_NONE is converted to None.
x11_device_get_id
those managed via XInput 1.x), will return 0.
x11_device_manager_lookup
Returns the gdk::Device that 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::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_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 return None, even if xatom is 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, use x11_ungrab_server().
x11_register_standard_event_type
Registers interest in receiving extension events with type codes between event_base and event_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_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.
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::Display to the corresponding gdk::Atom.