gi-gdk-3.0.11: Gdk bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gdk.Objects.DeviceTool

Contents

Description

 

Synopsis

Exported types

Methods

getHardwareId

deviceToolGetHardwareId Source #

Arguments

:: (HasCallStack, MonadIO m, IsDeviceTool a) 
=> a

tool: a DeviceTool

-> 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

deviceToolGetSerial Source #

Arguments

:: (HasCallStack, MonadIO m, IsDeviceTool a) 
=> a

tool: a DeviceTool

-> 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

deviceToolGetToolType Source #

Arguments

:: (HasCallStack, MonadIO m, IsDeviceTool a) 
=> a

tool: a DeviceTool

-> 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 #

Instances

AttrInfo DeviceToolAxesPropertyInfo Source # 
type AttrOrigin DeviceToolAxesPropertyInfo Source # 
type AttrLabel DeviceToolAxesPropertyInfo Source # 
type AttrGetType DeviceToolAxesPropertyInfo Source # 
type AttrBaseTypeConstraint DeviceToolAxesPropertyInfo Source # 
type AttrSetTypeConstraint DeviceToolAxesPropertyInfo Source # 
type AttrAllowedOps DeviceToolAxesPropertyInfo Source # 

hardwareId

data DeviceToolHardwareIdPropertyInfo Source #

Instances

AttrInfo DeviceToolHardwareIdPropertyInfo Source # 
type AttrOrigin DeviceToolHardwareIdPropertyInfo Source # 
type AttrLabel DeviceToolHardwareIdPropertyInfo Source # 
type AttrGetType DeviceToolHardwareIdPropertyInfo Source # 
type AttrBaseTypeConstraint DeviceToolHardwareIdPropertyInfo Source # 
type AttrSetTypeConstraint DeviceToolHardwareIdPropertyInfo Source # 
type AttrAllowedOps DeviceToolHardwareIdPropertyInfo Source # 

serial

data DeviceToolSerialPropertyInfo Source #

Instances

AttrInfo DeviceToolSerialPropertyInfo Source # 
type AttrOrigin DeviceToolSerialPropertyInfo Source # 
type AttrLabel DeviceToolSerialPropertyInfo Source # 
type AttrGetType DeviceToolSerialPropertyInfo Source # 
type AttrBaseTypeConstraint DeviceToolSerialPropertyInfo Source # 
type AttrSetTypeConstraint DeviceToolSerialPropertyInfo Source # 
type AttrAllowedOps DeviceToolSerialPropertyInfo Source # 

toolType

data DeviceToolToolTypePropertyInfo Source #

Instances

AttrInfo DeviceToolToolTypePropertyInfo Source # 
type AttrOrigin DeviceToolToolTypePropertyInfo Source # 
type AttrLabel DeviceToolToolTypePropertyInfo Source # 
type AttrGetType DeviceToolToolTypePropertyInfo Source # 
type AttrBaseTypeConstraint DeviceToolToolTypePropertyInfo Source # 
type AttrSetTypeConstraint DeviceToolToolTypePropertyInfo Source # 
type AttrAllowedOps DeviceToolToolTypePropertyInfo Source #