Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- Exported types
- Methods
- deviceGetAssociatedDevice
- deviceGetAxisUse
- deviceGetDeviceType
- deviceGetDisplay
- deviceGetHasCursor
- deviceGetKey
- deviceGetLastEventWindow
- deviceGetMode
- deviceGetNAxes
- deviceGetNKeys
- deviceGetName
- deviceGetPosition
- deviceGetPositionDouble
- deviceGetProductId
- deviceGetSource
- deviceGetVendorId
- deviceGetWindowAtPosition
- deviceGetWindowAtPositionDouble
- deviceGrab
- deviceGrabInfoLibgtkOnly
- deviceListAxes
- deviceListSlaveDevices
- deviceSetAxisUse
- deviceSetKey
- deviceSetMode
- deviceUngrab
- deviceWarp
- Properties
- Signals
- newtype Device = Device (ForeignPtr Device)
- class GObject o => DeviceK o
- toDevice :: DeviceK o => o -> IO Device
- noDevice :: Maybe Device
- deviceGetAssociatedDevice :: (MonadIO m, DeviceK a) => a -> m Device
- deviceGetAxisUse :: (MonadIO m, DeviceK a) => a -> Word32 -> m AxisUse
- deviceGetDeviceType :: (MonadIO m, DeviceK a) => a -> m DeviceType
- deviceGetDisplay :: (MonadIO m, DeviceK a) => a -> m Display
- deviceGetHasCursor :: (MonadIO m, DeviceK a) => a -> m Bool
- deviceGetKey :: (MonadIO m, DeviceK a) => a -> Word32 -> m (Bool, Word32, [ModifierType])
- deviceGetLastEventWindow :: (MonadIO m, DeviceK a) => a -> m Window
- deviceGetMode :: (MonadIO m, DeviceK a) => a -> m InputMode
- deviceGetNAxes :: (MonadIO m, DeviceK a) => a -> m Int32
- deviceGetNKeys :: (MonadIO m, DeviceK a) => a -> m Int32
- deviceGetName :: (MonadIO m, DeviceK a) => a -> m Text
- deviceGetPosition :: (MonadIO m, DeviceK a) => a -> m (Screen, Int32, Int32)
- deviceGetPositionDouble :: (MonadIO m, DeviceK a) => a -> m (Screen, Double, Double)
- deviceGetProductId :: (MonadIO m, DeviceK a) => a -> m Text
- deviceGetSource :: (MonadIO m, DeviceK a) => a -> m InputSource
- deviceGetVendorId :: (MonadIO m, DeviceK a) => a -> m Text
- deviceGetWindowAtPosition :: (MonadIO m, DeviceK a) => a -> m (Window, Int32, Int32)
- deviceGetWindowAtPositionDouble :: (MonadIO m, DeviceK a) => a -> m (Window, Double, Double)
- deviceGrab :: (MonadIO m, DeviceK a, WindowK b, CursorK c) => a -> b -> GrabOwnership -> Bool -> [EventMask] -> Maybe c -> Word32 -> m GrabStatus
- deviceGrabInfoLibgtkOnly :: (MonadIO m, DisplayK a, DeviceK b) => a -> b -> m (Bool, Window, Bool)
- deviceListAxes :: (MonadIO m, DeviceK a) => a -> m [Atom]
- deviceListSlaveDevices :: (MonadIO m, DeviceK a) => a -> m [Device]
- deviceSetAxisUse :: (MonadIO m, DeviceK a) => a -> Word32 -> AxisUse -> m ()
- deviceSetKey :: (MonadIO m, DeviceK a) => a -> Word32 -> Word32 -> [ModifierType] -> m ()
- deviceSetMode :: (MonadIO m, DeviceK a) => a -> InputMode -> m Bool
- deviceUngrab :: (MonadIO m, DeviceK a) => a -> Word32 -> m ()
- deviceWarp :: (MonadIO m, DeviceK a, ScreenK b) => a -> b -> Int32 -> Int32 -> m ()
- data DeviceAssociatedDevicePropertyInfo
- getDeviceAssociatedDevice :: (MonadIO m, DeviceK o) => o -> m Device
- data DeviceDeviceManagerPropertyInfo
- constructDeviceDeviceManager :: DeviceManagerK a => a -> IO ([Char], GValue)
- getDeviceDeviceManager :: (MonadIO m, DeviceK o) => o -> m DeviceManager
- data DeviceDisplayPropertyInfo
- constructDeviceDisplay :: DisplayK a => a -> IO ([Char], GValue)
- getDeviceDisplay :: (MonadIO m, DeviceK o) => o -> m Display
- data DeviceHasCursorPropertyInfo
- constructDeviceHasCursor :: Bool -> IO ([Char], GValue)
- getDeviceHasCursor :: (MonadIO m, DeviceK o) => o -> m Bool
- data DeviceInputModePropertyInfo
- constructDeviceInputMode :: InputMode -> IO ([Char], GValue)
- getDeviceInputMode :: (MonadIO m, DeviceK o) => o -> m InputMode
- setDeviceInputMode :: (MonadIO m, DeviceK o) => o -> InputMode -> m ()
- data DeviceInputSourcePropertyInfo
- constructDeviceInputSource :: InputSource -> IO ([Char], GValue)
- getDeviceInputSource :: (MonadIO m, DeviceK o) => o -> m InputSource
- data DeviceNAxesPropertyInfo
- getDeviceNAxes :: (MonadIO m, DeviceK o) => o -> m Word32
- data DeviceNamePropertyInfo
- constructDeviceName :: Text -> IO ([Char], GValue)
- getDeviceName :: (MonadIO m, DeviceK o) => o -> m Text
- data DeviceProductIdPropertyInfo
- constructDeviceProductId :: Text -> IO ([Char], GValue)
- getDeviceProductId :: (MonadIO m, DeviceK o) => o -> m Text
- data DeviceTypePropertyInfo
- constructDeviceType :: DeviceType -> IO ([Char], GValue)
- getDeviceType :: (MonadIO m, DeviceK o) => o -> m DeviceType
- data DeviceVendorIdPropertyInfo
- constructDeviceVendorId :: Text -> IO ([Char], GValue)
- getDeviceVendorId :: (MonadIO m, DeviceK o) => o -> m Text
- type DeviceChangedCallback = IO ()
- type DeviceChangedCallbackC = Ptr () -> Ptr () -> IO ()
- data DeviceChangedSignalInfo
- afterDeviceChanged :: (GObject a, MonadIO m) => a -> DeviceChangedCallback -> m SignalHandlerId
- deviceChangedCallbackWrapper :: DeviceChangedCallback -> Ptr () -> Ptr () -> IO ()
- deviceChangedClosure :: DeviceChangedCallback -> IO Closure
- mkDeviceChangedCallback :: DeviceChangedCallbackC -> IO (FunPtr DeviceChangedCallbackC)
- noDeviceChangedCallback :: Maybe DeviceChangedCallback
- onDeviceChanged :: (GObject a, MonadIO m) => a -> DeviceChangedCallback -> m SignalHandlerId
Exported types
GObject Device | |
type ParentTypes Device | |
type AttributeList Device | |
type SignalList Device |
Methods
deviceGetAssociatedDevice
deviceGetAssociatedDevice :: (MonadIO m, DeviceK a) => a -> m Device Source
deviceGetAxisUse
deviceGetDeviceType
deviceGetDeviceType :: (MonadIO m, DeviceK a) => a -> m DeviceType Source
deviceGetDisplay
deviceGetDisplay :: (MonadIO m, DeviceK a) => a -> m Display Source
deviceGetHasCursor
deviceGetHasCursor :: (MonadIO m, DeviceK a) => a -> m Bool Source
deviceGetKey
deviceGetKey :: (MonadIO m, DeviceK a) => a -> Word32 -> m (Bool, Word32, [ModifierType]) Source
deviceGetLastEventWindow
deviceGetLastEventWindow :: (MonadIO m, DeviceK a) => a -> m Window Source
deviceGetMode
deviceGetMode :: (MonadIO m, DeviceK a) => a -> m InputMode Source
deviceGetNAxes
deviceGetNAxes :: (MonadIO m, DeviceK a) => a -> m Int32 Source
deviceGetNKeys
deviceGetNKeys :: (MonadIO m, DeviceK a) => a -> m Int32 Source
deviceGetName
deviceGetName :: (MonadIO m, DeviceK a) => a -> m Text Source
deviceGetPosition
deviceGetPositionDouble
deviceGetProductId
deviceGetProductId :: (MonadIO m, DeviceK a) => a -> m Text Source
deviceGetSource
deviceGetSource :: (MonadIO m, DeviceK a) => a -> m InputSource Source
deviceGetVendorId
deviceGetVendorId :: (MonadIO m, DeviceK a) => a -> m Text Source
deviceGetWindowAtPosition
deviceGetWindowAtPositionDouble
deviceGrab
deviceGrab :: (MonadIO m, DeviceK a, WindowK b, CursorK c) => a -> b -> GrabOwnership -> Bool -> [EventMask] -> Maybe c -> Word32 -> m GrabStatus Source
deviceGrabInfoLibgtkOnly
deviceGrabInfoLibgtkOnly :: (MonadIO m, DisplayK a, DeviceK b) => a -> b -> m (Bool, Window, Bool) Source
Deprecated: (Since version 3.16)The symbol was never meant to be used outside of GTK+
deviceListAxes
deviceListAxes :: (MonadIO m, DeviceK a) => a -> m [Atom] Source
deviceListSlaveDevices
deviceListSlaveDevices :: (MonadIO m, DeviceK a) => a -> m [Device] Source
deviceSetAxisUse
deviceSetKey
deviceSetKey :: (MonadIO m, DeviceK a) => a -> Word32 -> Word32 -> [ModifierType] -> m () Source
deviceSetMode
deviceUngrab
deviceUngrab :: (MonadIO m, DeviceK a) => a -> Word32 -> m () Source
deviceWarp
Properties
AssociatedDevice
data DeviceAssociatedDevicePropertyInfo Source
AttrInfo DeviceAssociatedDevicePropertyInfo | |
type AttrLabel DeviceAssociatedDevicePropertyInfo = "Device::associated-device" | |
type AttrGetType DeviceAssociatedDevicePropertyInfo = Device | |
type AttrBaseTypeConstraint DeviceAssociatedDevicePropertyInfo = DeviceK | |
type AttrSetTypeConstraint DeviceAssociatedDevicePropertyInfo = * ~ () | |
type AttrAllowedOps DeviceAssociatedDevicePropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) |
getDeviceAssociatedDevice :: (MonadIO m, DeviceK o) => o -> m Device Source
DeviceManager
data DeviceDeviceManagerPropertyInfo Source
AttrInfo DeviceDeviceManagerPropertyInfo | |
type AttrLabel DeviceDeviceManagerPropertyInfo = "Device::device-manager" | |
type AttrGetType DeviceDeviceManagerPropertyInfo = DeviceManager | |
type AttrBaseTypeConstraint DeviceDeviceManagerPropertyInfo = DeviceK | |
type AttrSetTypeConstraint DeviceDeviceManagerPropertyInfo = DeviceManagerK | |
type AttrAllowedOps DeviceDeviceManagerPropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag)) |
constructDeviceDeviceManager :: DeviceManagerK a => a -> IO ([Char], GValue) Source
getDeviceDeviceManager :: (MonadIO m, DeviceK o) => o -> m DeviceManager Source
Display
data DeviceDisplayPropertyInfo Source
AttrInfo DeviceDisplayPropertyInfo | |
type AttrLabel DeviceDisplayPropertyInfo = "Device::display" | |
type AttrGetType DeviceDisplayPropertyInfo = Display | |
type AttrBaseTypeConstraint DeviceDisplayPropertyInfo = DeviceK | |
type AttrSetTypeConstraint DeviceDisplayPropertyInfo = DisplayK | |
type AttrAllowedOps DeviceDisplayPropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag)) |
getDeviceDisplay :: (MonadIO m, DeviceK o) => o -> m Display Source
HasCursor
data DeviceHasCursorPropertyInfo Source
AttrInfo DeviceHasCursorPropertyInfo | |
type AttrLabel DeviceHasCursorPropertyInfo = "Device::has-cursor" | |
type AttrGetType DeviceHasCursorPropertyInfo = Bool | |
type AttrBaseTypeConstraint DeviceHasCursorPropertyInfo = DeviceK | |
type AttrSetTypeConstraint DeviceHasCursorPropertyInfo = * ~ Bool | |
type AttrAllowedOps DeviceHasCursorPropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag)) |
getDeviceHasCursor :: (MonadIO m, DeviceK o) => o -> m Bool Source
InputMode
data DeviceInputModePropertyInfo Source
AttrInfo DeviceInputModePropertyInfo | |
type AttrLabel DeviceInputModePropertyInfo = "Device::input-mode" | |
type AttrGetType DeviceInputModePropertyInfo = InputMode | |
type AttrBaseTypeConstraint DeviceInputModePropertyInfo = DeviceK | |
type AttrSetTypeConstraint DeviceInputModePropertyInfo = * ~ InputMode | |
type AttrAllowedOps DeviceInputModePropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) |
getDeviceInputMode :: (MonadIO m, DeviceK o) => o -> m InputMode Source
setDeviceInputMode :: (MonadIO m, DeviceK o) => o -> InputMode -> m () Source
InputSource
data DeviceInputSourcePropertyInfo Source
AttrInfo DeviceInputSourcePropertyInfo | |
type AttrLabel DeviceInputSourcePropertyInfo = "Device::input-source" | |
type AttrGetType DeviceInputSourcePropertyInfo = InputSource | |
type AttrBaseTypeConstraint DeviceInputSourcePropertyInfo = DeviceK | |
type AttrSetTypeConstraint DeviceInputSourcePropertyInfo = * ~ InputSource | |
type AttrAllowedOps DeviceInputSourcePropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag)) |
constructDeviceInputSource :: InputSource -> IO ([Char], GValue) Source
getDeviceInputSource :: (MonadIO m, DeviceK o) => o -> m InputSource Source
NAxes
data DeviceNAxesPropertyInfo Source
AttrInfo DeviceNAxesPropertyInfo | |
type AttrLabel DeviceNAxesPropertyInfo = "Device::n-axes" | |
type AttrGetType DeviceNAxesPropertyInfo = Word32 | |
type AttrBaseTypeConstraint DeviceNAxesPropertyInfo = DeviceK | |
type AttrSetTypeConstraint DeviceNAxesPropertyInfo = * ~ () | |
type AttrAllowedOps DeviceNAxesPropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) |
getDeviceNAxes :: (MonadIO m, DeviceK o) => o -> m Word32 Source
Name
data DeviceNamePropertyInfo Source
AttrInfo DeviceNamePropertyInfo | |
type AttrLabel DeviceNamePropertyInfo = "Device::name" | |
type AttrGetType DeviceNamePropertyInfo = Text | |
type AttrBaseTypeConstraint DeviceNamePropertyInfo = DeviceK | |
type AttrSetTypeConstraint DeviceNamePropertyInfo = * ~ Text | |
type AttrAllowedOps DeviceNamePropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag)) |
getDeviceName :: (MonadIO m, DeviceK o) => o -> m Text Source
ProductId
data DeviceProductIdPropertyInfo Source
AttrInfo DeviceProductIdPropertyInfo | |
type AttrLabel DeviceProductIdPropertyInfo = "Device::product-id" | |
type AttrGetType DeviceProductIdPropertyInfo = Text | |
type AttrBaseTypeConstraint DeviceProductIdPropertyInfo = DeviceK | |
type AttrSetTypeConstraint DeviceProductIdPropertyInfo = * ~ Text | |
type AttrAllowedOps DeviceProductIdPropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag)) |
getDeviceProductId :: (MonadIO m, DeviceK o) => o -> m Text Source
Type
data DeviceTypePropertyInfo Source
AttrInfo DeviceTypePropertyInfo | |
type AttrLabel DeviceTypePropertyInfo = "Device::type" | |
type AttrGetType DeviceTypePropertyInfo = DeviceType | |
type AttrBaseTypeConstraint DeviceTypePropertyInfo = DeviceK | |
type AttrSetTypeConstraint DeviceTypePropertyInfo = * ~ DeviceType | |
type AttrAllowedOps DeviceTypePropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag)) |
constructDeviceType :: DeviceType -> IO ([Char], GValue) Source
getDeviceType :: (MonadIO m, DeviceK o) => o -> m DeviceType Source
VendorId
data DeviceVendorIdPropertyInfo Source
AttrInfo DeviceVendorIdPropertyInfo | |
type AttrLabel DeviceVendorIdPropertyInfo = "Device::vendor-id" | |
type AttrGetType DeviceVendorIdPropertyInfo = Text | |
type AttrBaseTypeConstraint DeviceVendorIdPropertyInfo = DeviceK | |
type AttrSetTypeConstraint DeviceVendorIdPropertyInfo = * ~ Text | |
type AttrAllowedOps DeviceVendorIdPropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag)) |
getDeviceVendorId :: (MonadIO m, DeviceK o) => o -> m Text Source
Signals
Changed
type DeviceChangedCallback = IO () Source
type DeviceChangedCallbackC = Ptr () -> Ptr () -> IO () Source
afterDeviceChanged :: (GObject a, MonadIO m) => a -> DeviceChangedCallback -> m SignalHandlerId Source
deviceChangedCallbackWrapper :: DeviceChangedCallback -> Ptr () -> Ptr () -> IO () Source
onDeviceChanged :: (GObject a, MonadIO m) => a -> DeviceChangedCallback -> m SignalHandlerId Source