Expand description
§Rust GDK 3 bindings
This project is UNMAINTAINED. Please take a look at gtk4-rs instead!
Project site is here.
Rust bindings and wrappers for GDK 3, part of gtk3-rs.
GDK 3.22 is the lowest supported version for the underlying library.
§Minimum supported Rust version
Currently, the minimum supported Rust version is 1.70.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]
gdk = { git = "https://github.com/gtk-rs/gtk3-rs.git", package = "gdk" }
Avoid mixing versioned and git crates like this:
# This will not compile
[dependencies]
gdk = "0.13"
gdk = { git = "https://github.com/gtk-rs/gtk3-rs.git", package = "gdk" }
§See Also
§License
gdk is available under the MIT License, please refer to it.
Re-exports§
Modules§
Structs§
- Anchor
Hints - AppLaunch
Context - Atom
- Axis
Flags - Color
- Cursor
- Device
- Device
Manager - Device
Pad - Device
Tool - Display
- Display
Manager - Drag
Action - Drag
Context - Drawing
Context - Event
- A generic GDK event.
- Event
Button - Event
Configure - Event
Crossing - EventDND
- Event
Expose - Event
Focus - Event
Grab Broken - Event
Key - Event
Mask - Event
Motion - Event
Owner Change - Event
PadAxis - Event
PadButton - Event
PadGroup Mode - Event
Property - Event
Proximity - Event
Scroll - Event
Selection - Event
Sequence - Event
Setting - Event
Touch - Event
Touchpad Pinch - Event
Touchpad Swipe - Event
Visibility - Event
Window State - Frame
Clock - Frame
Clock Phase - Frame
Timings - GLContext
- GRange
- Geometry
- Keymap
- Keymap
Key - Modifier
Type - Monitor
- RGBA
- Rectangle
- Screen
- Seat
- Seat
Capabilities - Time
Coord - Visual
- WMDecoration
- WMFunction
- Window
- Window
Attr - Window
Hints - Window
State
Enums§
- AxisUse
- Backend
- Byte
Order - Change
Data - Crossing
Mode - Cursor
Type - Device
PadFeature - Device
Tool Type - Device
Type - Drag
Cancel Reason - Drag
Protocol - Event
Type - Fullscreen
Mode - GLError
- Grab
Ownership - Grab
Status - Gravity
- Input
Mode - Input
Source - Modifier
Intent - Notify
Type - Owner
Change - Prop
Mode - Property
State - Scroll
Direction - Setting
Action - Subpixel
Layout - Visibility
State - Visual
Type - Window
Edge - Window
Type - Window
Type Hint - Window
Window Class
Constants§
- ATOM_
NONE - BUTTON_
MIDDLE - The middle button.
- BUTTON_
PRIMARY - The primary button. This is typically the left mouse button, or the right button in a left-handed setup.
- BUTTON_
SECONDARY - The secondary button. This is typically the right mouse button, or the left button in a left-handed setup.
- EVENT_
PROPAGATE - EVENT_
STOP - SELECTION_
CLIPBOARD - SELECTION_
PRIMARY - SELECTION_
SECONDARY - SELECTION_
TYPE_ ATOM - SELECTION_
TYPE_ BITMAP - SELECTION_
TYPE_ COLORMAP - SELECTION_
TYPE_ DRAWABLE - SELECTION_
TYPE_ INTEGER - SELECTION_
TYPE_ PIXMAP - SELECTION_
TYPE_ STRING - SELECTION_
TYPE_ WINDOW - TARGET_
BITMAP - TARGET_
COLORMAP - TARGET_
DRAWABLE - TARGET_
PIXMAP - TARGET_
STRING
Traits§
- From
Event - A helper trait implemented by all event subtypes.
Functions§
- beep
- display_
arg_ name - error_
trap_ pop - error_
trap_ pop_ ignored - error_
trap_ push - events_
get_ angle - events_
get_ center - events_
get_ distance - events_
pending - flush
- init
- notify_
startup_ complete - notify_
startup_ complete_ with_ id - pango_
context_ get - pango_
context_ get_ for_ display - pango_
context_ get_ for_ screen - pango_
layout_ get_ clip_ region - pango_
layout_ line_ get_ clip_ region - pixbuf_
get_ from_ surface - program_
class - property_
change - property_
delete - property_
get - selection_
convert - selection_
owner_ get - selection_
owner_ get_ for_ display - selection_
owner_ set - selection_
owner_ set_ for_ display - selection_
send_ notify - selection_
send_ notify_ for_ display - set_
allowed_ backends - set_
double_ click_ time - set_
initialized ⚠ - Informs this crate that GDK has been initialized and the current thread is the main one.
- set_
program_ class - set_
show_ events - setting_
get - shows_
events - synthesize_
window_ state - test_
render_ sync - test_
simulate_ button - test_
simulate_ key - text_
property_ to_ utf8_ list_ for_ display - utf8_
to_ string_ target