| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Gsk.Objects.CairoNode
Description
No description available in the introspection data.
Synopsis
- newtype CairoNode = CairoNode (ManagedPtr CairoNode)
- class (BoxedPtr o, TypedObject o, IsDescendantOf CairoNode o) => IsCairoNode o
- toCairoNode :: (MonadIO m, IsCairoNode o) => o -> m CairoNode
- cairoNodeGetDrawContext :: (HasCallStack, MonadIO m, IsCairoNode a) => a -> m Context
- cairoNodeNew :: (HasCallStack, MonadIO m) => Rect -> m CairoNode
- cairoNodePeekSurface :: (HasCallStack, MonadIO m, IsCairoNode a) => a -> m Surface
Exported types
Memory-managed wrapper type.
Constructors
| CairoNode (ManagedPtr CairoNode) |
Instances
| Eq CairoNode Source # | |
| ManagedPtrNewtype CairoNode Source # | |
Defined in GI.Gsk.Objects.CairoNode Methods | |
| BoxedPtr CairoNode Source # | |
Defined in GI.Gsk.Objects.CairoNode | |
| TypedObject CairoNode Source # | |
Defined in GI.Gsk.Objects.CairoNode | |
| HasParentTypes CairoNode Source # | |
Defined in GI.Gsk.Objects.CairoNode | |
| type ParentTypes CairoNode Source # | |
Defined in GI.Gsk.Objects.CairoNode | |
class (BoxedPtr o, TypedObject o, IsDescendantOf CairoNode o) => IsCairoNode o Source #
Type class for types which can be safely cast to CairoNode, for instance with toCairoNode.
Instances
| (BoxedPtr o, TypedObject o, IsDescendantOf CairoNode o) => IsCairoNode o Source # | |
Defined in GI.Gsk.Objects.CairoNode | |
toCairoNode :: (MonadIO m, IsCairoNode o) => o -> m CairoNode Source #
Methods
Overloaded methods
getDrawContext
cairoNodeGetDrawContext Source #
Arguments
| :: (HasCallStack, MonadIO m, IsCairoNode a) | |
| => a |
|
| -> m Context | Returns: a Cairo context used for drawing; use
|
Creates a Cairo context for drawing using the surface associated to the render node.
If no surface exists yet, a surface will be created optimized for
rendering to renderer.
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Rect |
|
| -> m CairoNode | Returns: A new |
Creates a RenderNode that will render a cairo surface
into the area given by bounds. You can draw to the cairo
surface using cairoNodeGetDrawContext
peekSurface
Arguments
| :: (HasCallStack, MonadIO m, IsCairoNode a) | |
| => a |
|
| -> m Surface | Returns: a Cairo surface |
Retrieves the Cairo surface used by the render node.