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 |
- newtype DeviceTool = DeviceTool (ManagedPtr DeviceTool)
- class GObject o => IsDeviceTool o
- toDeviceTool :: IsDeviceTool o => o -> IO DeviceTool
- noDeviceTool :: Maybe DeviceTool
- data DeviceToolGetHardwareIdMethodInfo
- deviceToolGetHardwareId :: (HasCallStack, MonadIO m, IsDeviceTool a) => a -> m Word64
- data DeviceToolGetSerialMethodInfo
- deviceToolGetSerial :: (HasCallStack, MonadIO m, IsDeviceTool a) => a -> m Word64
- data DeviceToolGetToolTypeMethodInfo
- deviceToolGetToolType :: (HasCallStack, MonadIO m, IsDeviceTool a) => a -> m DeviceToolType
- data DeviceToolAxesPropertyInfo
- constructDeviceToolAxes :: IsDeviceTool o => [AxisFlags] -> IO (GValueConstruct o)
- deviceToolAxes :: AttrLabelProxy "axes"
- getDeviceToolAxes :: (MonadIO m, IsDeviceTool o) => o -> m [AxisFlags]
- data DeviceToolHardwareIdPropertyInfo
- constructDeviceToolHardwareId :: IsDeviceTool o => Word64 -> IO (GValueConstruct o)
- deviceToolHardwareId :: AttrLabelProxy "hardwareId"
- getDeviceToolHardwareId :: (MonadIO m, IsDeviceTool o) => o -> m Word64
- data DeviceToolSerialPropertyInfo
- constructDeviceToolSerial :: IsDeviceTool o => Word64 -> IO (GValueConstruct o)
- deviceToolSerial :: AttrLabelProxy "serial"
- getDeviceToolSerial :: (MonadIO m, IsDeviceTool o) => o -> m Word64
- data DeviceToolToolTypePropertyInfo
- constructDeviceToolToolType :: IsDeviceTool o => DeviceToolType -> IO (GValueConstruct o)
- deviceToolToolType :: AttrLabelProxy "toolType"
- getDeviceToolToolType :: (MonadIO m, IsDeviceTool o) => o -> m DeviceToolType
Exported types
newtype DeviceTool Source #
GObject DeviceTool Source # | |
IsObject DeviceTool Source # | |
IsDeviceTool DeviceTool Source # | |
((~) * info (ResolveDeviceToolMethod t DeviceTool), MethodInfo * info DeviceTool p) => IsLabel t (DeviceTool -> p) Source # | |
((~) * info (ResolveDeviceToolMethod t DeviceTool), MethodInfo * info DeviceTool p) => IsLabelProxy t (DeviceTool -> p) Source # | |
HasAttributeList * DeviceTool Source # | |
type AttributeList DeviceTool Source # | |
type SignalList DeviceTool Source # | |
class GObject o => IsDeviceTool o Source #
toDeviceTool :: IsDeviceTool o => o -> IO DeviceTool Source #
Methods
getHardwareId
data DeviceToolGetHardwareIdMethodInfo Source #
((~) * signature (m Word64), MonadIO m, IsDeviceTool a) => MethodInfo * DeviceToolGetHardwareIdMethodInfo a signature Source # | |
deviceToolGetHardwareId Source #
:: (HasCallStack, MonadIO m, IsDeviceTool a) | |
=> a |
|
-> m Word64 | Returns: The hardware identificator of this tool. |
Gets the hardware ID of this tool, or 0 if it's not known. When
non-zero, the identificator is unique for the given tool model,
meaning that two identical tools will share the same hardwareId
,
but will have different serial numbers (see deviceToolGetSerial
).
This is a more concrete (and device specific) method to identify
a DeviceTool
than deviceToolGetToolType
, as a tablet
may support multiple devices with the same DeviceToolType
,
but having different hardware identificators.
Since: 3.22
getSerial
data DeviceToolGetSerialMethodInfo Source #
((~) * signature (m Word64), MonadIO m, IsDeviceTool a) => MethodInfo * DeviceToolGetSerialMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsDeviceTool a) | |
=> a |
|
-> m Word64 | Returns: The serial ID for this tool |
Gets the serial of this tool, this value can be used to identify a physical tool (eg. a tablet pen) across program executions.
Since: 3.22
getToolType
data DeviceToolGetToolTypeMethodInfo Source #
((~) * signature (m DeviceToolType), MonadIO m, IsDeviceTool a) => MethodInfo * DeviceToolGetToolTypeMethodInfo a signature Source # | |
deviceToolGetToolType Source #
:: (HasCallStack, MonadIO m, IsDeviceTool a) | |
=> a |
|
-> m DeviceToolType | Returns: The physical type for this tool. This can be used to figure out what sort of pen is being used, such as an airbrush or a pencil. |
Gets the DeviceToolType
of the tool.
Since: 3.22
Properties
axes
data DeviceToolAxesPropertyInfo Source #
constructDeviceToolAxes :: IsDeviceTool o => [AxisFlags] -> IO (GValueConstruct o) Source #
deviceToolAxes :: AttrLabelProxy "axes" Source #
getDeviceToolAxes :: (MonadIO m, IsDeviceTool o) => o -> m [AxisFlags] Source #
hardwareId
data DeviceToolHardwareIdPropertyInfo Source #
constructDeviceToolHardwareId :: IsDeviceTool o => Word64 -> IO (GValueConstruct o) Source #
deviceToolHardwareId :: AttrLabelProxy "hardwareId" Source #
getDeviceToolHardwareId :: (MonadIO m, IsDeviceTool o) => o -> m Word64 Source #
serial
data DeviceToolSerialPropertyInfo Source #
constructDeviceToolSerial :: IsDeviceTool o => Word64 -> IO (GValueConstruct o) Source #
deviceToolSerial :: AttrLabelProxy "serial" Source #
getDeviceToolSerial :: (MonadIO m, IsDeviceTool o) => o -> m Word64 Source #
toolType
data DeviceToolToolTypePropertyInfo Source #
constructDeviceToolToolType :: IsDeviceTool o => DeviceToolType -> IO (GValueConstruct o) Source #
deviceToolToolType :: AttrLabelProxy "toolType" Source #
getDeviceToolToolType :: (MonadIO m, IsDeviceTool o) => o -> m DeviceToolType Source #