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 |
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.
Instances
Eq CairoNode Source # | |
ManagedPtrNewtype CairoNode Source # | |
Defined in GI.Gsk.Objects.CairoNode | |
BoxedPtr CairoNode Source # | |
Defined in GI.Gsk.Objects.CairoNode boxedPtrCopy :: CairoNode -> IO CairoNode # boxedPtrFree :: CairoNode -> IO () # | |
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 #
:: (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
:: (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
:: (HasCallStack, MonadIO m, IsCairoNode a) | |
=> a |
|
-> m Surface | Returns: a Cairo surface |
Retrieves the Cairo surface used by the render node.