Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Commit

Permalink
Merge pull request #352 from emmanueltouzery/gdk_button
Browse files Browse the repository at this point in the history
add GDK_BUTTON_* see gtk-rs/gtk#1044
  • Loading branch information
GuillaumeGomez authored Aug 10, 2020
2 parents d06597e + c6199bf commit fa2fb78
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,12 @@ pub use window::WindowAttr;
pub type key = i32;

pub use self::keys::{keyval_name, keyval_to_unicode};

/// The primary button. This is typically the left mouse button, or the right button in a left-handed setup.
pub const BUTTON_PRIMARY: u32 = gdk_sys::GDK_BUTTON_PRIMARY as u32;

/// The middle button.
pub const BUTTON_MIDDLE: u32 = gdk_sys::GDK_BUTTON_MIDDLE as u32;

/// The secondary button. This is typically the right mouse button, or the left button in a left-handed setup.
pub const BUTTON_SECONDARY: u32 = gdk_sys::GDK_BUTTON_SECONDARY as u32;

0 comments on commit fa2fb78

Please sign in to comment.