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 |
Point in a path behaviour.
Since: 0.2
Synopsis
- newtype Knot = Knot (ManagedPtr Knot)
- newZeroKnot :: MonadIO m => m Knot
- knotCopy :: (HasCallStack, MonadIO m) => Knot -> m Knot
- knotEqual :: (HasCallStack, MonadIO m) => Knot -> Knot -> m Bool
- knotFree :: (HasCallStack, MonadIO m) => Knot -> m ()
- getKnotX :: MonadIO m => Knot -> m Int32
- setKnotX :: MonadIO m => Knot -> Int32 -> m ()
- getKnotY :: MonadIO m => Knot -> m Int32
- setKnotY :: MonadIO m => Knot -> Int32 -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq Knot Source # | |
GBoxed Knot Source # | |
Defined in GI.Clutter.Structs.Knot | |
ManagedPtrNewtype Knot Source # | |
Defined in GI.Clutter.Structs.Knot toManagedPtr :: Knot -> ManagedPtr Knot # | |
TypedObject Knot Source # | |
Defined in GI.Clutter.Structs.Knot | |
HasParentTypes Knot Source # | |
Defined in GI.Clutter.Structs.Knot | |
tag ~ 'AttrSet => Constructible Knot tag Source # | |
Defined in GI.Clutter.Structs.Knot | |
IsGValue (Maybe Knot) Source # | Convert |
Defined in GI.Clutter.Structs.Knot | |
type ParentTypes Knot Source # | |
Defined in GI.Clutter.Structs.Knot |
Methods
Click to display all available methods, including inherited ones
copy
:: (HasCallStack, MonadIO m) | |
=> Knot |
|
-> m Knot | Returns: the copied knot. |
Makes an allocated copy of a knot.
Since: 0.2
equal
:: (HasCallStack, MonadIO m) | |
=> Knot |
|
-> Knot |
|
-> m Bool | Returns: |
Compares to knot and checks if the point to the same location.
Since: 0.2
free
:: (HasCallStack, MonadIO m) | |
=> Knot |
|
-> m () |
Frees the memory of an allocated knot.
Since: 0.2
Properties
x
X coordinate of the knot
getKnotX :: MonadIO m => Knot -> m Int32 Source #
Get the value of the “x
” field.
When overloading is enabled, this is equivalent to
get
knot #x
setKnotX :: MonadIO m => Knot -> Int32 -> m () Source #
Set the value of the “x
” field.
When overloading is enabled, this is equivalent to
set
knot [ #x:=
value ]
y
Y coordinate of the knot