gi-gdk-3.0.7: Gdk bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gdk.Structs.EventButton

Contents

Description

Used for button press and button release events. The @type field will be one of %GDK_BUTTON_PRESS, %GDK_2BUTTON_PRESS, %GDK_3BUTTON_PRESS or %GDK_BUTTON_RELEASE,

Double and triple-clicks result in a sequence of events being received. For double-clicks the order of events will be:

  • %GDK_BUTTON_PRESS
  • %GDK_BUTTON_RELEASE
  • %GDK_BUTTON_PRESS
  • %GDK_2BUTTON_PRESS
  • %GDK_BUTTON_RELEASE

Note that the first click is received just like a normal button press, while the second click results in a %GDK_2BUTTON_PRESS being received just after the %GDK_BUTTON_PRESS.

Triple-clicks are very similar to double-clicks, except that %GDK_3BUTTON_PRESS is inserted after the third click. The order of the events is:

  • %GDK_BUTTON_PRESS
  • %GDK_BUTTON_RELEASE
  • %GDK_BUTTON_PRESS
  • %GDK_2BUTTON_PRESS
  • %GDK_BUTTON_RELEASE
  • %GDK_BUTTON_PRESS
  • %GDK_3BUTTON_PRESS
  • %GDK_BUTTON_RELEASE

For a double click to occur, the second button press must occur within 1/4 of a second of the first. For a triple click to occur, the third button press must also occur within 1/2 second of the first button press.

Synopsis

Exported types

newtype EventButton Source #

Constructors

EventButton (ManagedPtr EventButton) 

Instances

WrappedPtr EventButton Source # 
(~) AttrOpTag tag AttrSet => Constructible EventButton tag Source # 

Methods

new :: MonadIO m => (ManagedPtr EventButton -> EventButton) -> [AttrOp EventButton tag] -> m EventButton

((~) * info (ResolveEventButtonMethod t EventButton), MethodInfo * info EventButton p) => IsLabel t (EventButton -> p) Source # 

Methods

fromLabel :: Proxy# Symbol t -> EventButton -> p #

((~) * info (ResolveEventButtonMethod t EventButton), MethodInfo * info EventButton p) => IsLabelProxy t (EventButton -> p) Source # 
HasAttributeList * EventButton Source # 
type AttributeList EventButton Source # 
type AttributeList EventButton

newZeroEventButton :: MonadIO m => m EventButton Source #

Construct a EventButton struct initialized to zero.

Properties

axes

eventButton_axes :: AttrLabelProxy "axes" Source #

button

eventButton_button :: AttrLabelProxy "button" Source #

device

eventButton_device :: AttrLabelProxy "device" Source #

sendEvent

eventButton_sendEvent :: AttrLabelProxy "sendEvent" Source #

state

eventButton_state :: AttrLabelProxy "state" Source #

time

eventButton_time :: AttrLabelProxy "time" Source #

type

eventButton_type :: AttrLabelProxy "type" Source #

window

eventButton_window :: AttrLabelProxy "window" Source #

x

eventButton_x :: AttrLabelProxy "x" Source #

xRoot

eventButton_xRoot :: AttrLabelProxy "xRoot" Source #

y

eventButton_y :: AttrLabelProxy "y" Source #

yRoot

eventButton_yRoot :: AttrLabelProxy "yRoot" Source #