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 |
GI.Gdk.Objects.Device
Contents
- Exported types
- Methods
- getAssociatedDevice
- getAxisUse
- getDeviceType
- getDisplay
- getHasCursor
- getKey
- getLastEventWindow
- getMode
- getNAxes
- getNKeys
- getName
- getPosition
- getPositionDouble
- getProductId
- getSeat
- getSource
- getVendorId
- getWindowAtPosition
- getWindowAtPositionDouble
- grab
- grabInfoLibgtkOnly
- listAxes
- listSlaveDevices
- setAxisUse
- setKey
- setMode
- ungrab
- warp
- Properties
- Signals
Description
- newtype Device = Device (ManagedPtr Device)
- class GObject o => IsDevice o
- toDevice :: IsDevice o => o -> IO Device
- noDevice :: Maybe Device
- data DeviceGetAssociatedDeviceMethodInfo
- deviceGetAssociatedDevice :: (MonadIO m, IsDevice a) => a -> m (Maybe Device)
- data DeviceGetAxisUseMethodInfo
- deviceGetAxisUse :: (MonadIO m, IsDevice a) => a -> Word32 -> m AxisUse
- data DeviceGetDeviceTypeMethodInfo
- deviceGetDeviceType :: (MonadIO m, IsDevice a) => a -> m DeviceType
- data DeviceGetDisplayMethodInfo
- deviceGetDisplay :: (MonadIO m, IsDevice a) => a -> m Display
- data DeviceGetHasCursorMethodInfo
- deviceGetHasCursor :: (MonadIO m, IsDevice a) => a -> m Bool
- data DeviceGetKeyMethodInfo
- deviceGetKey :: (MonadIO m, IsDevice a) => a -> Word32 -> m (Bool, Word32, [ModifierType])
- data DeviceGetLastEventWindowMethodInfo
- deviceGetLastEventWindow :: (MonadIO m, IsDevice a) => a -> m (Maybe Window)
- data DeviceGetModeMethodInfo
- deviceGetMode :: (MonadIO m, IsDevice a) => a -> m InputMode
- data DeviceGetNAxesMethodInfo
- deviceGetNAxes :: (MonadIO m, IsDevice a) => a -> m Int32
- data DeviceGetNKeysMethodInfo
- deviceGetNKeys :: (MonadIO m, IsDevice a) => a -> m Int32
- data DeviceGetNameMethodInfo
- deviceGetName :: (MonadIO m, IsDevice a) => a -> m Text
- data DeviceGetPositionMethodInfo
- deviceGetPosition :: (MonadIO m, IsDevice a) => a -> m (Screen, Int32, Int32)
- data DeviceGetPositionDoubleMethodInfo
- deviceGetPositionDouble :: (MonadIO m, IsDevice a) => a -> m (Screen, Double, Double)
- data DeviceGetProductIdMethodInfo
- deviceGetProductId :: (MonadIO m, IsDevice a) => a -> m (Maybe Text)
- data DeviceGetSeatMethodInfo
- deviceGetSeat :: (MonadIO m, IsDevice a) => a -> m Seat
- data DeviceGetSourceMethodInfo
- deviceGetSource :: (MonadIO m, IsDevice a) => a -> m InputSource
- data DeviceGetVendorIdMethodInfo
- deviceGetVendorId :: (MonadIO m, IsDevice a) => a -> m (Maybe Text)
- data DeviceGetWindowAtPositionMethodInfo
- deviceGetWindowAtPosition :: (MonadIO m, IsDevice a) => a -> m (Maybe Window, Int32, Int32)
- data DeviceGetWindowAtPositionDoubleMethodInfo
- deviceGetWindowAtPositionDouble :: (MonadIO m, IsDevice a) => a -> m (Maybe Window, Double, Double)
- data DeviceGrabMethodInfo
- deviceGrab :: (MonadIO m, IsDevice a, IsWindow b, IsCursor c) => a -> b -> GrabOwnership -> Bool -> [EventMask] -> Maybe c -> Word32 -> m GrabStatus
- deviceGrabInfoLibgtkOnly :: (MonadIO m, IsDisplay a, IsDevice b) => a -> b -> m (Bool, Window, Bool)
- data DeviceListAxesMethodInfo
- deviceListAxes :: (MonadIO m, IsDevice a) => a -> m [Atom]
- data DeviceListSlaveDevicesMethodInfo
- deviceListSlaveDevices :: (MonadIO m, IsDevice a) => a -> m [Device]
- data DeviceSetAxisUseMethodInfo
- deviceSetAxisUse :: (MonadIO m, IsDevice a) => a -> Word32 -> AxisUse -> m ()
- data DeviceSetKeyMethodInfo
- deviceSetKey :: (MonadIO m, IsDevice a) => a -> Word32 -> Word32 -> [ModifierType] -> m ()
- data DeviceSetModeMethodInfo
- deviceSetMode :: (MonadIO m, IsDevice a) => a -> InputMode -> m Bool
- data DeviceUngrabMethodInfo
- deviceUngrab :: (MonadIO m, IsDevice a) => a -> Word32 -> m ()
- data DeviceWarpMethodInfo
- deviceWarp :: (MonadIO m, IsDevice a, IsScreen b) => a -> b -> Int32 -> Int32 -> m ()
- data DeviceAssociatedDevicePropertyInfo
- deviceAssociatedDevice :: AttrLabelProxy "associatedDevice"
- getDeviceAssociatedDevice :: (MonadIO m, IsDevice o) => o -> m (Maybe Device)
- data DeviceDeviceManagerPropertyInfo
- constructDeviceDeviceManager :: (IsDevice o, IsDeviceManager a) => a -> IO (GValueConstruct o)
- deviceDeviceManager :: AttrLabelProxy "deviceManager"
- getDeviceDeviceManager :: (MonadIO m, IsDevice o) => o -> m (Maybe DeviceManager)
- data DeviceDisplayPropertyInfo
- constructDeviceDisplay :: (IsDevice o, IsDisplay a) => a -> IO (GValueConstruct o)
- deviceDisplay :: AttrLabelProxy "display"
- getDeviceDisplay :: (MonadIO m, IsDevice o) => o -> m Display
- data DeviceHasCursorPropertyInfo
- constructDeviceHasCursor :: IsDevice o => Bool -> IO (GValueConstruct o)
- deviceHasCursor :: AttrLabelProxy "hasCursor"
- getDeviceHasCursor :: (MonadIO m, IsDevice o) => o -> m Bool
- data DeviceInputModePropertyInfo
- constructDeviceInputMode :: IsDevice o => InputMode -> IO (GValueConstruct o)
- deviceInputMode :: AttrLabelProxy "inputMode"
- getDeviceInputMode :: (MonadIO m, IsDevice o) => o -> m InputMode
- setDeviceInputMode :: (MonadIO m, IsDevice o) => o -> InputMode -> m ()
- data DeviceInputSourcePropertyInfo
- constructDeviceInputSource :: IsDevice o => InputSource -> IO (GValueConstruct o)
- deviceInputSource :: AttrLabelProxy "inputSource"
- getDeviceInputSource :: (MonadIO m, IsDevice o) => o -> m InputSource
- data DeviceNAxesPropertyInfo
- deviceNAxes :: AttrLabelProxy "nAxes"
- getDeviceNAxes :: (MonadIO m, IsDevice o) => o -> m Word32
- data DeviceNamePropertyInfo
- constructDeviceName :: IsDevice o => Text -> IO (GValueConstruct o)
- deviceName :: AttrLabelProxy "name"
- getDeviceName :: (MonadIO m, IsDevice o) => o -> m Text
- data DeviceNumTouchesPropertyInfo
- constructDeviceNumTouches :: IsDevice o => Word32 -> IO (GValueConstruct o)
- deviceNumTouches :: AttrLabelProxy "numTouches"
- getDeviceNumTouches :: (MonadIO m, IsDevice o) => o -> m Word32
- data DeviceProductIdPropertyInfo
- constructDeviceProductId :: IsDevice o => Text -> IO (GValueConstruct o)
- deviceProductId :: AttrLabelProxy "productId"
- getDeviceProductId :: (MonadIO m, IsDevice o) => o -> m (Maybe Text)
- data DeviceSeatPropertyInfo
- clearDeviceSeat :: (MonadIO m, IsDevice o) => o -> m ()
- constructDeviceSeat :: (IsDevice o, IsSeat a) => a -> IO (GValueConstruct o)
- deviceSeat :: AttrLabelProxy "seat"
- getDeviceSeat :: (MonadIO m, IsDevice o) => o -> m Seat
- setDeviceSeat :: (MonadIO m, IsDevice o, IsSeat a) => o -> a -> m ()
- data DeviceTypePropertyInfo
- constructDeviceType :: IsDevice o => DeviceType -> IO (GValueConstruct o)
- deviceType :: AttrLabelProxy "type"
- getDeviceType :: (MonadIO m, IsDevice o) => o -> m DeviceType
- data DeviceVendorIdPropertyInfo
- constructDeviceVendorId :: IsDevice o => Text -> IO (GValueConstruct o)
- deviceVendorId :: AttrLabelProxy "vendorId"
- getDeviceVendorId :: (MonadIO m, IsDevice o) => o -> m (Maybe Text)
- type C_DeviceChangedCallback = Ptr () -> Ptr () -> IO ()
- type DeviceChangedCallback = IO ()
- data DeviceChangedSignalInfo
- afterDeviceChanged :: (GObject a, MonadIO m) => a -> DeviceChangedCallback -> m SignalHandlerId
- genClosure_DeviceChanged :: DeviceChangedCallback -> IO Closure
- mk_DeviceChangedCallback :: C_DeviceChangedCallback -> IO (FunPtr C_DeviceChangedCallback)
- noDeviceChangedCallback :: Maybe DeviceChangedCallback
- onDeviceChanged :: (GObject a, MonadIO m) => a -> DeviceChangedCallback -> m SignalHandlerId
- wrap_DeviceChangedCallback :: DeviceChangedCallback -> Ptr () -> Ptr () -> IO ()
Exported types
Instances
GObject Device Source # | |
IsObject Device Source # | |
IsDevice Device Source # | |
((~) * info (ResolveDeviceMethod t Device), MethodInfo * info Device p) => IsLabel t (Device -> p) Source # | |
((~) * info (ResolveDeviceMethod t Device), MethodInfo * info Device p) => IsLabelProxy t (Device -> p) Source # | |
HasAttributeList * Device Source # | |
type SignalList Device Source # | |
type AttributeList Device Source # | |
Methods
getAssociatedDevice
getAxisUse
getDeviceType
data DeviceGetDeviceTypeMethodInfo Source #
Instances
((~) * signature (m DeviceType), MonadIO m, IsDevice a) => MethodInfo * DeviceGetDeviceTypeMethodInfo a signature Source # | |
deviceGetDeviceType :: (MonadIO m, IsDevice a) => a -> m DeviceType Source #
getDisplay
getHasCursor
getKey
deviceGetKey :: (MonadIO m, IsDevice a) => a -> Word32 -> m (Bool, Word32, [ModifierType]) Source #
getLastEventWindow
getMode
getNAxes
getNKeys
getName
deviceGetName :: (MonadIO m, IsDevice a) => a -> m Text Source #
getPosition
getPositionDouble
getProductId
getSeat
getSource
data DeviceGetSourceMethodInfo Source #
Instances
((~) * signature (m InputSource), MonadIO m, IsDevice a) => MethodInfo * DeviceGetSourceMethodInfo a signature Source # | |
deviceGetSource :: (MonadIO m, IsDevice a) => a -> m InputSource Source #
getVendorId
getWindowAtPosition
deviceGetWindowAtPosition :: (MonadIO m, IsDevice a) => a -> m (Maybe Window, Int32, Int32) Source #
getWindowAtPositionDouble
deviceGetWindowAtPositionDouble :: (MonadIO m, IsDevice a) => a -> m (Maybe Window, Double, Double) Source #
grab
data DeviceGrabMethodInfo Source #
Instances
((~) * signature (b -> GrabOwnership -> Bool -> [EventMask] -> Maybe c -> Word32 -> m GrabStatus), MonadIO m, IsDevice a, IsWindow b, IsCursor c) => MethodInfo * DeviceGrabMethodInfo a signature Source # | |
deviceGrab :: (MonadIO m, IsDevice a, IsWindow b, IsCursor c) => a -> b -> GrabOwnership -> Bool -> [EventMask] -> Maybe c -> Word32 -> m GrabStatus Source #
Deprecated: (Since version 3.20.)Use gdk_seat_grab() instead.
grabInfoLibgtkOnly
deviceGrabInfoLibgtkOnly :: (MonadIO m, IsDisplay a, IsDevice b) => a -> b -> m (Bool, Window, Bool) Source #
Deprecated: (Since version 3.16)The symbol was never meant to be used outside of GTK+
listAxes
listSlaveDevices
setAxisUse
setKey
data DeviceSetKeyMethodInfo Source #
Instances
((~) * signature (Word32 -> Word32 -> [ModifierType] -> m ()), MonadIO m, IsDevice a) => MethodInfo * DeviceSetKeyMethodInfo a signature Source # | |
deviceSetKey :: (MonadIO m, IsDevice a) => a -> Word32 -> Word32 -> [ModifierType] -> m () Source #
setMode
ungrab
deviceUngrab :: (MonadIO m, IsDevice a) => a -> Word32 -> m () Source #
Deprecated: (Since version 3.20.)Use gdk_seat_ungrab() instead.
warp
data DeviceWarpMethodInfo Source #
Properties
associatedDevice
data DeviceAssociatedDevicePropertyInfo Source #
Instances
AttrInfo DeviceAssociatedDevicePropertyInfo Source # | |
type AttrSetTypeConstraint DeviceAssociatedDevicePropertyInfo Source # | |
type AttrOrigin DeviceAssociatedDevicePropertyInfo Source # | |
type AttrLabel DeviceAssociatedDevicePropertyInfo Source # | |
type AttrGetType DeviceAssociatedDevicePropertyInfo Source # | |
type AttrBaseTypeConstraint DeviceAssociatedDevicePropertyInfo Source # | |
type AttrAllowedOps DeviceAssociatedDevicePropertyInfo Source # | |
deviceAssociatedDevice :: AttrLabelProxy "associatedDevice" Source #
deviceManager
data DeviceDeviceManagerPropertyInfo Source #
Instances
AttrInfo DeviceDeviceManagerPropertyInfo Source # | |
type AttrSetTypeConstraint DeviceDeviceManagerPropertyInfo Source # | |
type AttrOrigin DeviceDeviceManagerPropertyInfo Source # | |
type AttrLabel DeviceDeviceManagerPropertyInfo Source # | |
type AttrGetType DeviceDeviceManagerPropertyInfo Source # | |
type AttrBaseTypeConstraint DeviceDeviceManagerPropertyInfo Source # | |
type AttrAllowedOps DeviceDeviceManagerPropertyInfo Source # | |
constructDeviceDeviceManager :: (IsDevice o, IsDeviceManager a) => a -> IO (GValueConstruct o) Source #
deviceDeviceManager :: AttrLabelProxy "deviceManager" Source #
getDeviceDeviceManager :: (MonadIO m, IsDevice o) => o -> m (Maybe DeviceManager) Source #
display
data DeviceDisplayPropertyInfo Source #
Instances
AttrInfo DeviceDisplayPropertyInfo Source # | |
type AttrSetTypeConstraint DeviceDisplayPropertyInfo Source # | |
type AttrOrigin DeviceDisplayPropertyInfo Source # | |
type AttrLabel DeviceDisplayPropertyInfo Source # | |
type AttrGetType DeviceDisplayPropertyInfo Source # | |
type AttrBaseTypeConstraint DeviceDisplayPropertyInfo Source # | |
type AttrAllowedOps DeviceDisplayPropertyInfo Source # | |
deviceDisplay :: AttrLabelProxy "display" Source #
hasCursor
data DeviceHasCursorPropertyInfo Source #
Instances
AttrInfo DeviceHasCursorPropertyInfo Source # | |
type AttrSetTypeConstraint DeviceHasCursorPropertyInfo Source # | |
type AttrOrigin DeviceHasCursorPropertyInfo Source # | |
type AttrLabel DeviceHasCursorPropertyInfo Source # | |
type AttrGetType DeviceHasCursorPropertyInfo Source # | |
type AttrBaseTypeConstraint DeviceHasCursorPropertyInfo Source # | |
type AttrAllowedOps DeviceHasCursorPropertyInfo Source # | |
deviceHasCursor :: AttrLabelProxy "hasCursor" Source #
inputMode
data DeviceInputModePropertyInfo Source #
Instances
AttrInfo DeviceInputModePropertyInfo Source # | |
type AttrSetTypeConstraint DeviceInputModePropertyInfo Source # | |
type AttrOrigin DeviceInputModePropertyInfo Source # | |
type AttrLabel DeviceInputModePropertyInfo Source # | |
type AttrGetType DeviceInputModePropertyInfo Source # | |
type AttrBaseTypeConstraint DeviceInputModePropertyInfo Source # | |
type AttrAllowedOps DeviceInputModePropertyInfo Source # | |
deviceInputMode :: AttrLabelProxy "inputMode" Source #
inputSource
data DeviceInputSourcePropertyInfo Source #
Instances
AttrInfo DeviceInputSourcePropertyInfo Source # | |
type AttrSetTypeConstraint DeviceInputSourcePropertyInfo Source # | |
type AttrOrigin DeviceInputSourcePropertyInfo Source # | |
type AttrLabel DeviceInputSourcePropertyInfo Source # | |
type AttrGetType DeviceInputSourcePropertyInfo Source # | |
type AttrBaseTypeConstraint DeviceInputSourcePropertyInfo Source # | |
type AttrAllowedOps DeviceInputSourcePropertyInfo Source # | |
constructDeviceInputSource :: IsDevice o => InputSource -> IO (GValueConstruct o) Source #
deviceInputSource :: AttrLabelProxy "inputSource" Source #
getDeviceInputSource :: (MonadIO m, IsDevice o) => o -> m InputSource Source #
nAxes
data DeviceNAxesPropertyInfo Source #
Instances
AttrInfo DeviceNAxesPropertyInfo Source # | |
type AttrSetTypeConstraint DeviceNAxesPropertyInfo Source # | |
type AttrOrigin DeviceNAxesPropertyInfo Source # | |
type AttrLabel DeviceNAxesPropertyInfo Source # | |
type AttrGetType DeviceNAxesPropertyInfo Source # | |
type AttrBaseTypeConstraint DeviceNAxesPropertyInfo Source # | |
type AttrAllowedOps DeviceNAxesPropertyInfo Source # | |
deviceNAxes :: AttrLabelProxy "nAxes" Source #
name
data DeviceNamePropertyInfo Source #
Instances
AttrInfo DeviceNamePropertyInfo Source # | |
type AttrSetTypeConstraint DeviceNamePropertyInfo Source # | |
type AttrOrigin DeviceNamePropertyInfo Source # | |
type AttrLabel DeviceNamePropertyInfo Source # | |
type AttrGetType DeviceNamePropertyInfo Source # | |
type AttrBaseTypeConstraint DeviceNamePropertyInfo Source # | |
type AttrAllowedOps DeviceNamePropertyInfo Source # | |
constructDeviceName :: IsDevice o => Text -> IO (GValueConstruct o) Source #
deviceName :: AttrLabelProxy "name" Source #
getDeviceName :: (MonadIO m, IsDevice o) => o -> m Text Source #
numTouches
data DeviceNumTouchesPropertyInfo Source #
Instances
AttrInfo DeviceNumTouchesPropertyInfo Source # | |
type AttrSetTypeConstraint DeviceNumTouchesPropertyInfo Source # | |
type AttrOrigin DeviceNumTouchesPropertyInfo Source # | |
type AttrLabel DeviceNumTouchesPropertyInfo Source # | |
type AttrGetType DeviceNumTouchesPropertyInfo Source # | |
type AttrBaseTypeConstraint DeviceNumTouchesPropertyInfo Source # | |
type AttrAllowedOps DeviceNumTouchesPropertyInfo Source # | |
deviceNumTouches :: AttrLabelProxy "numTouches" Source #
productId
data DeviceProductIdPropertyInfo Source #
Instances
AttrInfo DeviceProductIdPropertyInfo Source # | |
type AttrSetTypeConstraint DeviceProductIdPropertyInfo Source # | |
type AttrOrigin DeviceProductIdPropertyInfo Source # | |
type AttrLabel DeviceProductIdPropertyInfo Source # | |
type AttrGetType DeviceProductIdPropertyInfo Source # | |
type AttrBaseTypeConstraint DeviceProductIdPropertyInfo Source # | |
type AttrAllowedOps DeviceProductIdPropertyInfo Source # | |
constructDeviceProductId :: IsDevice o => Text -> IO (GValueConstruct o) Source #
deviceProductId :: AttrLabelProxy "productId" Source #
seat
data DeviceSeatPropertyInfo Source #
Instances
AttrInfo DeviceSeatPropertyInfo Source # | |
type AttrSetTypeConstraint DeviceSeatPropertyInfo Source # | |
type AttrOrigin DeviceSeatPropertyInfo Source # | |
type AttrLabel DeviceSeatPropertyInfo Source # | |
type AttrGetType DeviceSeatPropertyInfo Source # | |
type AttrBaseTypeConstraint DeviceSeatPropertyInfo Source # | |
type AttrAllowedOps DeviceSeatPropertyInfo Source # | |
clearDeviceSeat :: (MonadIO m, IsDevice o) => o -> m () Source #
deviceSeat :: AttrLabelProxy "seat" Source #
type
data DeviceTypePropertyInfo Source #
Instances
AttrInfo DeviceTypePropertyInfo Source # | |
type AttrSetTypeConstraint DeviceTypePropertyInfo Source # | |
type AttrOrigin DeviceTypePropertyInfo Source # | |
type AttrLabel DeviceTypePropertyInfo Source # | |
type AttrGetType DeviceTypePropertyInfo Source # | |
type AttrBaseTypeConstraint DeviceTypePropertyInfo Source # | |
type AttrAllowedOps DeviceTypePropertyInfo Source # | |
constructDeviceType :: IsDevice o => DeviceType -> IO (GValueConstruct o) Source #
deviceType :: AttrLabelProxy "type" Source #
getDeviceType :: (MonadIO m, IsDevice o) => o -> m DeviceType Source #
vendorId
data DeviceVendorIdPropertyInfo Source #
Instances
AttrInfo DeviceVendorIdPropertyInfo Source # | |
type AttrSetTypeConstraint DeviceVendorIdPropertyInfo Source # | |
type AttrOrigin DeviceVendorIdPropertyInfo Source # | |
type AttrLabel DeviceVendorIdPropertyInfo Source # | |
type AttrGetType DeviceVendorIdPropertyInfo Source # | |
type AttrBaseTypeConstraint DeviceVendorIdPropertyInfo Source # | |
type AttrAllowedOps DeviceVendorIdPropertyInfo Source # | |
constructDeviceVendorId :: IsDevice o => Text -> IO (GValueConstruct o) Source #
deviceVendorId :: AttrLabelProxy "vendorId" Source #
Signals
changed
type DeviceChangedCallback = IO () Source #
data DeviceChangedSignalInfo Source #
Instances
SignalInfo DeviceChangedSignalInfo Source # | |
type HaskellCallbackType DeviceChangedSignalInfo Source # | |
afterDeviceChanged :: (GObject a, MonadIO m) => a -> DeviceChangedCallback -> m SignalHandlerId Source #
genClosure_DeviceChanged :: DeviceChangedCallback -> IO Closure Source #
onDeviceChanged :: (GObject a, MonadIO m) => a -> DeviceChangedCallback -> m SignalHandlerId Source #
wrap_DeviceChangedCallback :: DeviceChangedCallback -> Ptr () -> Ptr () -> IO () Source #