| Copyright | Will Thompson and Iñaki García Etxebarria | 
|---|---|
| License | LGPL-2.1 | 
| Maintainer | Iñaki García Etxebarria | 
| Safe Haskell | Safe-Inferred | 
| Language | Haskell2010 | 
GI.Clutter.Objects.DeviceManager
Description
The DeviceManager structure contains only private data
Since: 1.2
Synopsis
- newtype DeviceManager = DeviceManager (ManagedPtr DeviceManager)
 - class (GObject o, IsDescendantOf DeviceManager o) => IsDeviceManager o
 - toDeviceManager :: (MonadIO m, IsDeviceManager o) => o -> m DeviceManager
 - deviceManagerGetCoreDevice :: (HasCallStack, MonadIO m, IsDeviceManager a) => a -> InputDeviceType -> m InputDevice
 - deviceManagerGetDefault :: (HasCallStack, MonadIO m) => m DeviceManager
 - deviceManagerGetDevice :: (HasCallStack, MonadIO m, IsDeviceManager a) => a -> Int32 -> m InputDevice
 - deviceManagerListDevices :: (HasCallStack, MonadIO m, IsDeviceManager a) => a -> m [InputDevice]
 - deviceManagerPeekDevices :: (HasCallStack, MonadIO m, IsDeviceManager a) => a -> m [InputDevice]
 - constructDeviceManagerBackend :: (IsDeviceManager o, MonadIO m, IsBackend a) => a -> m (GValueConstruct o)
 - getDeviceManagerBackend :: (MonadIO m, IsDeviceManager o) => o -> m (Maybe Backend)
 - type DeviceManagerDeviceAddedCallback = InputDevice -> IO ()
 - afterDeviceManagerDeviceAdded :: (IsDeviceManager a, MonadIO m) => a -> ((?self :: a) => DeviceManagerDeviceAddedCallback) -> m SignalHandlerId
 - onDeviceManagerDeviceAdded :: (IsDeviceManager a, MonadIO m) => a -> ((?self :: a) => DeviceManagerDeviceAddedCallback) -> m SignalHandlerId
 - type DeviceManagerDeviceRemovedCallback = InputDevice -> IO ()
 - afterDeviceManagerDeviceRemoved :: (IsDeviceManager a, MonadIO m) => a -> ((?self :: a) => DeviceManagerDeviceRemovedCallback) -> m SignalHandlerId
 - onDeviceManagerDeviceRemoved :: (IsDeviceManager a, MonadIO m) => a -> ((?self :: a) => DeviceManagerDeviceRemovedCallback) -> m SignalHandlerId
 
Exported types
newtype DeviceManager Source #
Memory-managed wrapper type.
Constructors
| DeviceManager (ManagedPtr DeviceManager) | 
Instances
| Eq DeviceManager Source # | |
Defined in GI.Clutter.Objects.DeviceManager Methods (==) :: DeviceManager -> DeviceManager -> Bool # (/=) :: DeviceManager -> DeviceManager -> Bool #  | |
| GObject DeviceManager Source # | |
Defined in GI.Clutter.Objects.DeviceManager  | |
| ManagedPtrNewtype DeviceManager Source # | |
Defined in GI.Clutter.Objects.DeviceManager Methods toManagedPtr :: DeviceManager -> ManagedPtr DeviceManager  | |
| TypedObject DeviceManager Source # | |
Defined in GI.Clutter.Objects.DeviceManager  | |
| HasParentTypes DeviceManager Source # | |
Defined in GI.Clutter.Objects.DeviceManager  | |
| IsGValue (Maybe DeviceManager) Source # | Convert   | 
Defined in GI.Clutter.Objects.DeviceManager Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe DeviceManager -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe DeviceManager)  | |
| type ParentTypes DeviceManager Source # | |
Defined in GI.Clutter.Objects.DeviceManager type ParentTypes DeviceManager = '[Object]  | |
class (GObject o, IsDescendantOf DeviceManager o) => IsDeviceManager o Source #
Type class for types which can be safely cast to DeviceManager, for instance with toDeviceManager.
Instances
| (GObject o, IsDescendantOf DeviceManager o) => IsDeviceManager o Source # | |
Defined in GI.Clutter.Objects.DeviceManager  | |
toDeviceManager :: (MonadIO m, IsDeviceManager o) => o -> m DeviceManager Source #
Cast to DeviceManager, for types for which this is known to be safe. For general casts, use castTo.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, listDevices, notify, notifyByPspec, peekDevices, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getCoreDevice, getData, getDevice, getProperty, getQdata.
Setters
getCoreDevice
deviceManagerGetCoreDevice Source #
Arguments
| :: (HasCallStack, MonadIO m, IsDeviceManager a) | |
| => a | 
  | 
| -> InputDeviceType | 
  | 
| -> m InputDevice | Returns: a   | 
Retrieves the core InputDevice of type deviceType
Core devices are devices created automatically by the default Clutter backend
Since: 1.2
getDefault
deviceManagerGetDefault Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m DeviceManager | Returns: the   | 
Retrieves the device manager singleton
Since: 1.2
getDevice
deviceManagerGetDevice Source #
Arguments
| :: (HasCallStack, MonadIO m, IsDeviceManager a) | |
| => a | 
  | 
| -> Int32 | 
  | 
| -> m InputDevice | Returns: a   | 
Retrieves the InputDevice with the given deviceId
Since: 1.2
listDevices
deviceManagerListDevices Source #
Arguments
| :: (HasCallStack, MonadIO m, IsDeviceManager a) | |
| => a | 
  | 
| -> m [InputDevice] | Returns: 
   a newly allocated list of   | 
Lists all currently registered input devices
Since: 1.2
peekDevices
deviceManagerPeekDevices Source #
Arguments
| :: (HasCallStack, MonadIO m, IsDeviceManager a) | |
| => a | 
  | 
| -> m [InputDevice] | Returns: 
   a pointer to the internal list of   | 
Lists all currently registered input devices
Since: 1.2
Properties
backend
No description available in the introspection data.
constructDeviceManagerBackend :: (IsDeviceManager o, MonadIO m, IsBackend a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “backend” property. This is rarely needed directly, but it is used by new.
getDeviceManagerBackend :: (MonadIO m, IsDeviceManager o) => o -> m (Maybe Backend) Source #
Get the value of the “backend” property.
 When overloading is enabled, this is equivalent to
get deviceManager #backend
Signals
deviceAdded
type DeviceManagerDeviceAddedCallback Source #
Arguments
| = InputDevice | 
  | 
| -> IO () | 
The deviceAdded signal is emitted each time a device has been
 added to the DeviceManager
Since: 1.2
afterDeviceManagerDeviceAdded :: (IsDeviceManager a, MonadIO m) => a -> ((?self :: a) => DeviceManagerDeviceAddedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the deviceAdded signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after deviceManager #deviceAdded callback
By default the object invoking the signal is not passed to the callback.
 If you need to access it, you can use the implit ?self parameter.
 Note that this requires activating the ImplicitParams GHC extension.
onDeviceManagerDeviceAdded :: (IsDeviceManager a, MonadIO m) => a -> ((?self :: a) => DeviceManagerDeviceAddedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the deviceAdded signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on deviceManager #deviceAdded callback
deviceRemoved
type DeviceManagerDeviceRemovedCallback Source #
Arguments
| = InputDevice | 
  | 
| -> IO () | 
The deviceRemoved signal is emitted each time a device has been
 removed from the DeviceManager
Since: 1.2
afterDeviceManagerDeviceRemoved :: (IsDeviceManager a, MonadIO m) => a -> ((?self :: a) => DeviceManagerDeviceRemovedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the deviceRemoved signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after deviceManager #deviceRemoved callback
By default the object invoking the signal is not passed to the callback.
 If you need to access it, you can use the implit ?self parameter.
 Note that this requires activating the ImplicitParams GHC extension.
onDeviceManagerDeviceRemoved :: (IsDeviceManager a, MonadIO m) => a -> ((?self :: a) => DeviceManagerDeviceRemovedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the deviceRemoved signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on deviceManager #deviceRemoved callback