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 DeformEffect
structure contains
only private data and should be accessed using the provided API
Since: 1.4
Synopsis
- newtype DeformEffect = DeformEffect (ManagedPtr DeformEffect)
- class (GObject o, IsDescendantOf DeformEffect o) => IsDeformEffect o
- toDeformEffect :: (MonadIO m, IsDeformEffect o) => o -> m DeformEffect
- deformEffectGetBackMaterial :: (HasCallStack, MonadIO m, IsDeformEffect a) => a -> m (Ptr ())
- deformEffectGetNTiles :: (HasCallStack, MonadIO m, IsDeformEffect a) => a -> m (Word32, Word32)
- deformEffectInvalidate :: (HasCallStack, MonadIO m, IsDeformEffect a) => a -> m ()
- deformEffectSetBackMaterial :: (HasCallStack, MonadIO m, IsDeformEffect a) => a -> Ptr () -> m ()
- deformEffectSetNTiles :: (HasCallStack, MonadIO m, IsDeformEffect a) => a -> Word32 -> Word32 -> m ()
- constructDeformEffectXTiles :: (IsDeformEffect o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getDeformEffectXTiles :: (MonadIO m, IsDeformEffect o) => o -> m Word32
- setDeformEffectXTiles :: (MonadIO m, IsDeformEffect o) => o -> Word32 -> m ()
- constructDeformEffectYTiles :: (IsDeformEffect o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getDeformEffectYTiles :: (MonadIO m, IsDeformEffect o) => o -> m Word32
- setDeformEffectYTiles :: (MonadIO m, IsDeformEffect o) => o -> Word32 -> m ()
Exported types
newtype DeformEffect Source #
Memory-managed wrapper type.
DeformEffect (ManagedPtr DeformEffect) |
Instances
Eq DeformEffect Source # | |
Defined in GI.Clutter.Objects.DeformEffect (==) :: DeformEffect -> DeformEffect -> Bool # (/=) :: DeformEffect -> DeformEffect -> Bool # | |
GObject DeformEffect Source # | |
Defined in GI.Clutter.Objects.DeformEffect | |
ManagedPtrNewtype DeformEffect Source # | |
Defined in GI.Clutter.Objects.DeformEffect toManagedPtr :: DeformEffect -> ManagedPtr DeformEffect | |
TypedObject DeformEffect Source # | |
Defined in GI.Clutter.Objects.DeformEffect | |
HasParentTypes DeformEffect Source # | |
Defined in GI.Clutter.Objects.DeformEffect | |
IsGValue (Maybe DeformEffect) Source # | Convert |
Defined in GI.Clutter.Objects.DeformEffect gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe DeformEffect -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe DeformEffect) | |
type ParentTypes DeformEffect Source # | |
Defined in GI.Clutter.Objects.DeformEffect |
class (GObject o, IsDescendantOf DeformEffect o) => IsDeformEffect o Source #
Type class for types which can be safely cast to DeformEffect
, for instance with toDeformEffect
.
Instances
(GObject o, IsDescendantOf DeformEffect o) => IsDeformEffect o Source # | |
Defined in GI.Clutter.Objects.DeformEffect |
toDeformEffect :: (MonadIO m, IsDeformEffect o) => o -> m DeformEffect Source #
Cast to DeformEffect
, 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, createTexture, forceFloating, freezeNotify, getv, invalidate, isFloating, notify, notifyByPspec, paintTarget, queueRepaint, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getActor, getBackMaterial, getData, getEnabled, getNTiles, getName, getProperty, getQdata, getTarget, getTargetRect, getTargetSize, getTexture.
Setters
setBackMaterial, setData, setDataFull, setEnabled, setNTiles, setName, setProperty.
getBackMaterial
deformEffectGetBackMaterial Source #
:: (HasCallStack, MonadIO m, IsDeformEffect a) | |
=> a |
|
-> m (Ptr ()) | Returns: a handle for the material, or |
Retrieves the handle to the back face material used by effect
Since: 1.4
getNTiles
deformEffectGetNTiles Source #
:: (HasCallStack, MonadIO m, IsDeformEffect a) | |
=> a |
|
-> m (Word32, Word32) |
Retrieves the number of horizontal and vertical tiles used to sub-divide the actor's geometry during the effect
Since: 1.4
invalidate
deformEffectInvalidate Source #
:: (HasCallStack, MonadIO m, IsDeformEffect a) | |
=> a |
|
-> m () |
Invalidates the effect
's vertices and, if it is associated
to an actor, it will queue a redraw
Since: 1.4
setBackMaterial
deformEffectSetBackMaterial Source #
:: (HasCallStack, MonadIO m, IsDeformEffect a) | |
=> a |
|
-> Ptr () |
|
-> m () |
Sets the material that should be used when drawing the back face of the actor during a deformation
The DeformEffect
will take a reference on the material's
handle
Since: 1.4
setNTiles
deformEffectSetNTiles Source #
:: (HasCallStack, MonadIO m, IsDeformEffect a) | |
=> a |
|
-> Word32 |
|
-> Word32 |
|
-> m () |
Sets the number of horizontal and vertical tiles to be used when applying the effect
More tiles allow a finer grained deformation at the expenses of computation
Since: 1.4
Properties
xTiles
The number of horizontal tiles. The bigger the number, the smaller the tiles
Since: 1.4
constructDeformEffectXTiles :: (IsDeformEffect o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “x-tiles
” property. This is rarely needed directly, but it is used by new
.
getDeformEffectXTiles :: (MonadIO m, IsDeformEffect o) => o -> m Word32 Source #
Get the value of the “x-tiles
” property.
When overloading is enabled, this is equivalent to
get
deformEffect #xTiles
setDeformEffectXTiles :: (MonadIO m, IsDeformEffect o) => o -> Word32 -> m () Source #
Set the value of the “x-tiles
” property.
When overloading is enabled, this is equivalent to
set
deformEffect [ #xTiles:=
value ]
yTiles
The number of vertical tiles. The bigger the number, the smaller the tiles
Since: 1.4
constructDeformEffectYTiles :: (IsDeformEffect o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “y-tiles
” property. This is rarely needed directly, but it is used by new
.
getDeformEffectYTiles :: (MonadIO m, IsDeformEffect o) => o -> m Word32 Source #
Get the value of the “y-tiles
” property.
When overloading is enabled, this is equivalent to
get
deformEffect #yTiles
setDeformEffectYTiles :: (MonadIO m, IsDeformEffect o) => o -> Word32 -> m () Source #
Set the value of the “y-tiles
” property.
When overloading is enabled, this is equivalent to
set
deformEffect [ #yTiles:=
value ]