| 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
- deviceGetAssociatedDevice
- deviceGetAxisUse
- deviceGetDeviceType
- deviceGetDisplay
- deviceGetHasCursor
- deviceGetKey
- deviceGetLastEventWindow
- deviceGetMode
- deviceGetNAxes
- deviceGetNKeys
- deviceGetName
- deviceGetPosition
- deviceGetPositionDouble
- deviceGetProductId
- deviceGetSeat
- deviceGetSource
- deviceGetVendorId
- deviceGetWindowAtPosition
- deviceGetWindowAtPositionDouble
- deviceGrab
- deviceGrabInfoLibgtkOnly
- deviceListAxes
- deviceListSlaveDevices
- deviceSetAxisUse
- deviceSetKey
- deviceSetMode
- deviceUngrab
- deviceWarp
- Properties
- Signals
Description
- newtype Device = Device (ForeignPtr 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 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
Constructors
| Device (ForeignPtr Device) |
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
deviceGetAssociatedDevice
deviceGetAxisUse
deviceGetDeviceType
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 #
deviceGetDisplay
deviceGetHasCursor
deviceGetKey
deviceGetKey :: (MonadIO m, IsDevice a) => a -> Word32 -> m (Bool, Word32, [ModifierType]) Source #
deviceGetLastEventWindow
deviceGetMode
deviceGetNAxes
deviceGetNKeys
deviceGetName
deviceGetName :: (MonadIO m, IsDevice a) => a -> m Text Source #
deviceGetPosition
deviceGetPositionDouble
deviceGetProductId
deviceGetSeat
deviceGetSource
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 #
deviceGetVendorId
deviceGetWindowAtPosition
deviceGetWindowAtPosition :: (MonadIO m, IsDevice a) => a -> m (Maybe Window, Int32, Int32) Source #
deviceGetWindowAtPositionDouble
deviceGetWindowAtPositionDouble :: (MonadIO m, IsDevice a) => a -> m (Maybe Window, Double, Double) Source #
deviceGrab
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.
deviceGrabInfoLibgtkOnly
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+
deviceListAxes
deviceListSlaveDevices
deviceSetAxisUse
deviceSetKey
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 #
deviceSetMode
deviceUngrab
deviceUngrab :: (MonadIO m, IsDevice a) => a -> Word32 -> m () Source #
Deprecated: (Since version 3.20.)Use gdk_seat_ungrab() instead.
deviceWarp
data DeviceWarpMethodInfo Source #
Properties
AssociatedDevice
data DeviceAssociatedDevicePropertyInfo Source #
Instances
| AttrInfo DeviceAssociatedDevicePropertyInfo Source # | |
| type AttrSetTypeConstraint 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 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 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 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 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 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 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 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 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 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 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 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 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 #
deviceChangedCallbackWrapper :: DeviceChangedCallback -> Ptr () -> Ptr () -> IO () Source #
deviceChangedClosure :: DeviceChangedCallback -> IO Closure Source #
onDeviceChanged :: (GObject a, MonadIO m) => a -> DeviceChangedCallback -> m SignalHandlerId Source #