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 |
The ZoomAction
structure contains only
private data and should be accessed using the provided API
Since: 1.12
Synopsis
- newtype ZoomAction = ZoomAction (ManagedPtr ZoomAction)
- class (GObject o, IsDescendantOf ZoomAction o) => IsZoomAction o
- toZoomAction :: (MonadIO m, IsZoomAction o) => o -> m ZoomAction
- zoomActionGetFocalPoint :: (HasCallStack, MonadIO m, IsZoomAction a) => a -> m Point
- zoomActionGetTransformedFocalPoint :: (HasCallStack, MonadIO m, IsZoomAction a) => a -> m Point
- zoomActionGetZoomAxis :: (HasCallStack, MonadIO m, IsZoomAction a) => a -> m ZoomAxis
- zoomActionNew :: (HasCallStack, MonadIO m) => m ZoomAction
- zoomActionSetZoomAxis :: (HasCallStack, MonadIO m, IsZoomAction a) => a -> ZoomAxis -> m ()
- constructZoomActionZoomAxis :: (IsZoomAction o, MonadIO m) => ZoomAxis -> m (GValueConstruct o)
- getZoomActionZoomAxis :: (MonadIO m, IsZoomAction o) => o -> m ZoomAxis
- setZoomActionZoomAxis :: (MonadIO m, IsZoomAction o) => o -> ZoomAxis -> m ()
- type ZoomActionZoomCallback = Actor -> Point -> Double -> IO Bool
- afterZoomActionZoom :: (IsZoomAction a, MonadIO m) => a -> ((?self :: a) => ZoomActionZoomCallback) -> m SignalHandlerId
- onZoomActionZoom :: (IsZoomAction a, MonadIO m) => a -> ((?self :: a) => ZoomActionZoomCallback) -> m SignalHandlerId
Exported types
newtype ZoomAction Source #
Memory-managed wrapper type.
ZoomAction (ManagedPtr ZoomAction) |
Instances
Eq ZoomAction Source # | |
Defined in GI.Clutter.Objects.ZoomAction (==) :: ZoomAction -> ZoomAction -> Bool # (/=) :: ZoomAction -> ZoomAction -> Bool # | |
GObject ZoomAction Source # | |
Defined in GI.Clutter.Objects.ZoomAction | |
ManagedPtrNewtype ZoomAction Source # | |
Defined in GI.Clutter.Objects.ZoomAction toManagedPtr :: ZoomAction -> ManagedPtr ZoomAction | |
TypedObject ZoomAction Source # | |
Defined in GI.Clutter.Objects.ZoomAction | |
HasParentTypes ZoomAction Source # | |
Defined in GI.Clutter.Objects.ZoomAction | |
IsGValue (Maybe ZoomAction) Source # | Convert |
Defined in GI.Clutter.Objects.ZoomAction gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe ZoomAction -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe ZoomAction) | |
type ParentTypes ZoomAction Source # | |
Defined in GI.Clutter.Objects.ZoomAction |
class (GObject o, IsDescendantOf ZoomAction o) => IsZoomAction o Source #
Type class for types which can be safely cast to ZoomAction
, for instance with toZoomAction
.
Instances
(GObject o, IsDescendantOf ZoomAction o) => IsZoomAction o Source # | |
Defined in GI.Clutter.Objects.ZoomAction |
toZoomAction :: (MonadIO m, IsZoomAction o) => o -> m ZoomAction Source #
Cast to ZoomAction
, 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, cancel, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getActor, getData, getDevice, getEnabled, getFocalPoint, getLastEvent, getMotionCoords, getMotionDelta, getNCurrentPoints, getNTouchPoints, getName, getPressCoords, getProperty, getQdata, getReleaseCoords, getSequence, getThresholdTriggerDistance, getThresholdTriggerEdge, getThresholdTriggerEgde, getTransformedFocalPoint, getVelocity, getZoomAxis.
Setters
setData, setDataFull, setEnabled, setNTouchPoints, setName, setProperty, setThresholdTriggerDistance, setThresholdTriggerEdge, setZoomAxis.
getFocalPoint
zoomActionGetFocalPoint Source #
:: (HasCallStack, MonadIO m, IsZoomAction a) | |
=> a |
|
-> m Point |
Retrieves the focal point of the current zoom
Since: 1.12
getTransformedFocalPoint
zoomActionGetTransformedFocalPoint Source #
:: (HasCallStack, MonadIO m, IsZoomAction a) | |
=> a |
|
-> m Point |
Retrieves the focal point relative to the actor's coordinates of the current zoom
Since: 1.12
getZoomAxis
zoomActionGetZoomAxis Source #
:: (HasCallStack, MonadIO m, IsZoomAction a) | |
=> a |
|
-> m ZoomAxis | Returns: the axis constraint |
Retrieves the axis constraint set by zoomActionSetZoomAxis
Since: 1.12
new
:: (HasCallStack, MonadIO m) | |
=> m ZoomAction | Returns: the newly created |
Creates a new ZoomAction
instance
Since: 1.12
setZoomAxis
zoomActionSetZoomAxis Source #
:: (HasCallStack, MonadIO m, IsZoomAction a) | |
=> a |
|
-> ZoomAxis |
|
-> m () |
Restricts the zooming action to a specific axis
Since: 1.12
Properties
zoomAxis
Constraints the zooming action to the specified axis
Since: 1.12
constructZoomActionZoomAxis :: (IsZoomAction o, MonadIO m) => ZoomAxis -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “zoom-axis
” property. This is rarely needed directly, but it is used by new
.
getZoomActionZoomAxis :: (MonadIO m, IsZoomAction o) => o -> m ZoomAxis Source #
Get the value of the “zoom-axis
” property.
When overloading is enabled, this is equivalent to
get
zoomAction #zoomAxis
setZoomActionZoomAxis :: (MonadIO m, IsZoomAction o) => o -> ZoomAxis -> m () Source #
Set the value of the “zoom-axis
” property.
When overloading is enabled, this is equivalent to
set
zoomAction [ #zoomAxis:=
value ]
Signals
zoom
type ZoomActionZoomCallback Source #
= Actor |
|
-> Point |
|
-> Double |
|
-> IO Bool | Returns: |
The zoom signal is emitted for each series of touch events that change the distance and focal point between the touch points.
The default handler of the signal will call
actorSetScale
on actor
using the ratio of the first
distance between the touch points and the current distance. To
override the default behaviour, connect to this signal and return
False
.
Since: 1.12
afterZoomActionZoom :: (IsZoomAction a, MonadIO m) => a -> ((?self :: a) => ZoomActionZoomCallback) -> m SignalHandlerId Source #
Connect a signal handler for the zoom signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
zoomAction #zoom 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.
onZoomActionZoom :: (IsZoomAction a, MonadIO m) => a -> ((?self :: a) => ZoomActionZoomCallback) -> m SignalHandlerId Source #
Connect a signal handler for the zoom signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
zoomAction #zoom callback