Package ch.bailu.gtk.gsk
Class CairoNode
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gsk.RenderNode
ch.bailu.gtk.gsk.CairoNode
- All Implemented Interfaces:
PointerInterface
A render node for a Cairo surface.
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.bailu.gtk.gsk.RenderNode
RenderNode.OnParseErrorFunc -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a `GskRenderNode` that will render a cairo surface
into the area given by @bounds.CairoNode(PointerContainer pointer) -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandlerCreates a Cairo context for drawing using the surface associated
to the render node.static intstatic longstatic TypeSystem.TypeSizeRetrieves the Cairo surface used by the render node.static longstatic TypeSystem.TypeSizeMethods inherited from class ch.bailu.gtk.gsk.RenderNode
deserialize, draw, getBounds, getNodeType, ref, serialize, unref, writeToFile, writeToFileMethods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksMethods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Constructor Details
-
CairoNode
-
CairoNode
Creates a `GskRenderNode` that will render a cairo surface
into the area given by @bounds.
You can draw to the cairo surface using [method@Gsk.CairoNode.get_draw_context].- Parameters:
bounds- the rectangle to render to
-
-
Method Details
-
getClassHandler
-
getDrawContext
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.- Returns:
- a Cairo context used for drawing; use cairo_destroy() when done drawing
-
getSurface
Retrieves the Cairo surface used by the render node.- Returns:
- a Cairo surface
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-