Gtk2HsContentsIndex
Graphics.UI.Gtk.Gdk.Events
Description
Synopsis
type Modifier = Word32
hasShift :: Modifier -> Bool
hasLock :: Modifier -> Bool
hasControl :: Modifier -> Bool
hasMod1 :: Modifier -> Bool
hasMod2 :: Modifier -> Bool
hasMod3 :: Modifier -> Bool
hasMod4 :: Modifier -> Bool
hasMod5 :: Modifier -> Bool
hasButLeft :: Modifier -> Bool
hasButRight :: Modifier -> Bool
hasButMiddle :: Modifier -> Bool
data Event
= Event {
sent :: Bool
}
| Expose {
sent :: Bool
area :: Rectangle
count :: Int
}
| Motion {
sent :: Bool
time :: Integer
x, y :: Double
modif :: Modifier
isHint :: Bool
xRoot, yRoot :: Double
}
| Button {
sent :: Bool
click :: Click
time :: Integer
x, y :: Double
modif :: Modifier
button :: Button
xRoot, yRoot :: Double
}
| Key {
release :: Bool
sent :: Bool
time :: Integer
modif :: Modifier
keyval :: Integer
len :: Int
str :: String
}
| Crossing {
sent :: Bool
time :: Integer
x, y :: Double
xRoot, yRoot :: Double
cMode :: CrossingMode
nType :: NotifyType
modif :: Modifier
}
| Focus {
sent :: Bool
inFocus :: Bool
}
| Configure {
sent :: Bool
xPar :: Int
yPar :: Int
width :: Int
height :: Int
}
| Property {
sent :: Bool
time :: Integer
}
| Visibility {
sent :: Bool
visible :: VisibilityState
}
| Scroll {
sent :: Bool
time :: Integer
x, y :: Double
direc :: ScrollDirection
xRoot, yRoot :: Double
}
| WindowState {
sent :: Bool
wMask :: WindowState
wState :: WindowState
}
marshalEvent :: Ptr Event -> IO Event
data VisibilityState
= VisibilityUnobscured
| VisibilityPartialObscured
| VisibilityFullyObscured
data CrossingMode
= CrossingNormal
| CrossingGrab
| CrossingUngrab
data NotifyType
= NotifyAncestor
| NotifyVirtual
| NotifyInferior
| NotifyNonlinear
| NotifyNonlinearVirtual
| NotifyUnknown
data WindowState
= WindowStateWithdrawn
| WindowStateIconified
| WindowStateMaximized
| WindowStateSticky
| WindowStateFullscreen
| WindowStateAbove
| WindowStateBelow
data ScrollDirection
= ScrollUp
| ScrollDown
| ScrollLeft
| ScrollRight
data Button
= LeftButton
| MiddleButton
| RightButton
| WheelUp
| WheelDown
| OtherButton
data Click
= SingleClick
| DoubleClick
| TripleClick
| ReleaseClick
data Rectangle = Rectangle Int Int Int Int
Documentation
type Modifier = Word32
modifier key flags
hasShift :: Modifier -> Bool
hasLock :: Modifier -> Bool
hasControl :: Modifier -> Bool
hasMod1 :: Modifier -> Bool
hasMod2 :: Modifier -> Bool
hasMod3 :: Modifier -> Bool
hasMod4 :: Modifier -> Bool
hasMod5 :: Modifier -> Bool
hasButLeft :: Modifier -> Bool
hasButRight :: Modifier -> Bool
hasButMiddle :: Modifier -> Bool
data Event
Constructors
Event
sent :: Bool
Expose
sent :: Bool
area :: Rectangle
count :: Int
Motion
sent :: Bool
time :: Integer
x, y :: Double
modif :: Modifier
isHint :: Bool
xRoot, yRoot :: Double
Button
sent :: Bool
click :: Click
time :: Integer
x, y :: Double
modif :: Modifier
button :: Button
xRoot, yRoot :: Double
Key
release :: Bool
sent :: Bool
time :: Integer
modif :: Modifier
keyval :: Integer
len :: Int
str :: String
Crossing
sent :: Bool
time :: Integer
x, y :: Double
xRoot, yRoot :: Double
cMode :: CrossingMode
nType :: NotifyType
modif :: Modifier
Focus
sent :: Bool
inFocus :: Bool
Configure
sent :: Bool
xPar :: Int
yPar :: Int
width :: Int
height :: Int
Property
sent :: Bool
time :: Integer
Visibility
sent :: Bool
visible :: VisibilityState
Scroll
sent :: Bool
time :: Integer
x, y :: Double
direc :: ScrollDirection
xRoot, yRoot :: Double
WindowState
sent :: Bool
wMask :: WindowState
wState :: WindowState
marshalEvent :: Ptr Event -> IO Event
data VisibilityState
visibility of a window
Constructors
VisibilityUnobscured
VisibilityPartialObscured
VisibilityFullyObscured
Instances
Enum VisibilityState
data CrossingMode
provide additionl information if cursor crosses a window
Constructors
CrossingNormal
CrossingGrab
CrossingUngrab
Instances
Enum CrossingMode
data NotifyType
Constructors
NotifyAncestor
NotifyVirtual
NotifyInferior
NotifyNonlinear
NotifyNonlinearVirtual
NotifyUnknown
Instances
Enum NotifyType
data WindowState
the state a GDK window is in
Constructors
WindowStateWithdrawn
WindowStateIconified
WindowStateMaximized
WindowStateSticky
WindowStateFullscreen
WindowStateAbove
WindowStateBelow
Instances
Enum WindowState
Flags WindowState
Bounded WindowState
data ScrollDirection
in which direction was scrolled?
Constructors
ScrollUp
ScrollDown
ScrollLeft
ScrollRight
Instances
Enum ScrollDirection
data Button
Button number
Constructors
LeftButton
MiddleButton
RightButton
WheelUp
WheelDown
OtherButton
Instances
Enum Button
data Click
Type of mouse click
Constructors
SingleClick
DoubleClick
TripleClick
ReleaseClick
data Rectangle

Rectangle

  • for Events
  • Specifies x, y, width and height
Constructors
Rectangle Int Int Int Int
Instances
Storable Rectangle
Produced by Haddock version 0.6