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 |
A render node for a GdkTexture
.
Since: 4.10
Synopsis
- newtype TextureScaleNode = TextureScaleNode (ManagedPtr TextureScaleNode)
- class (BoxedPtr o, TypedObject o, IsDescendantOf TextureScaleNode o) => IsTextureScaleNode o
- toTextureScaleNode :: (MonadIO m, IsTextureScaleNode o) => o -> m TextureScaleNode
- textureScaleNodeGetFilter :: (HasCallStack, MonadIO m, IsTextureScaleNode a) => a -> m ScalingFilter
- textureScaleNodeGetTexture :: (HasCallStack, MonadIO m, IsTextureScaleNode a) => a -> m Texture
- textureScaleNodeNew :: (HasCallStack, MonadIO m, IsTexture a) => a -> Rect -> ScalingFilter -> m TextureScaleNode
Exported types
newtype TextureScaleNode Source #
Memory-managed wrapper type.
TextureScaleNode (ManagedPtr TextureScaleNode) |
Instances
Eq TextureScaleNode Source # | |
Defined in GI.Gsk.Objects.TextureScaleNode (==) :: TextureScaleNode -> TextureScaleNode -> Bool # (/=) :: TextureScaleNode -> TextureScaleNode -> Bool # | |
BoxedPtr TextureScaleNode Source # | |
Defined in GI.Gsk.Objects.TextureScaleNode boxedPtrCopy :: TextureScaleNode -> IO TextureScaleNode boxedPtrFree :: TextureScaleNode -> IO () | |
ManagedPtrNewtype TextureScaleNode Source # | |
Defined in GI.Gsk.Objects.TextureScaleNode toManagedPtr :: TextureScaleNode -> ManagedPtr TextureScaleNode | |
TypedObject TextureScaleNode Source # | |
Defined in GI.Gsk.Objects.TextureScaleNode | |
HasParentTypes TextureScaleNode Source # | |
Defined in GI.Gsk.Objects.TextureScaleNode | |
type ParentTypes TextureScaleNode Source # | |
Defined in GI.Gsk.Objects.TextureScaleNode |
class (BoxedPtr o, TypedObject o, IsDescendantOf TextureScaleNode o) => IsTextureScaleNode o Source #
Type class for types which can be safely cast to TextureScaleNode
, for instance with toTextureScaleNode
.
Instances
(BoxedPtr o, TypedObject o, IsDescendantOf TextureScaleNode o) => IsTextureScaleNode o Source # | |
Defined in GI.Gsk.Objects.TextureScaleNode |
toTextureScaleNode :: (MonadIO m, IsTextureScaleNode o) => o -> m TextureScaleNode Source #
Cast to TextureScaleNode
, 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
draw, ref, serialize, unref, writeToFile.
Getters
getBounds, getFilter, getNodeType, getTexture.
Setters
None.
getFilter
textureScaleNodeGetFilter Source #
:: (HasCallStack, MonadIO m, IsTextureScaleNode a) | |
=> a |
|
-> m ScalingFilter | Returns: the |
Retrieves the GskScalingFilter
used when creating this GskRenderNode
.
Since: 4.10
getTexture
textureScaleNodeGetTexture Source #
:: (HasCallStack, MonadIO m, IsTextureScaleNode a) | |
=> a |
|
-> m Texture | Returns: the |
Retrieves the GdkTexture
used when creating this GskRenderNode
.
Since: 4.10
new
:: (HasCallStack, MonadIO m, IsTexture a) | |
=> a |
|
-> Rect |
|
-> ScalingFilter |
|
-> m TextureScaleNode | Returns: A new |
Creates a node that scales the texture to the size given by the bounds using the filter and then places it at the bounds' position.
Note that further scaling and other transformations which are applied to the node will apply linear filtering to the resulting texture, as usual.
This node is intended for tight control over scaling applied to a texture, such as in image editors and requires the application to be aware of the whole render tree as further transforms may be applied that conflict with the desired effect of this node.
Since: 4.10