Compilation Units
Tagged Types
A render node for a Cairo surface.
function Create
(Object : not null access System.Address) return Gsk_Cairo_Node_Record
function Get_Draw_Context
(Self : Gsk_Cairo_Node) return Cairo.Cairo_Context
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.
a Cairo context used for drawing; use cairo_destroy when done drawing
function Get_Surface (Self : Gsk_Cairo_Node) return Cairo.Cairo_Surface
Retrieves the Cairo surface used by the render node.
a Cairo surface
function Get_Type return Glib.GType
type Gsk_Cairo_Node is access all Gsk_Cairo_Node_Record'Class;
function Gsk_Cairo_Node_New
(Bounds : not null access Graphene.Rect.Graphene_Rect_T)
return Gsk_Cairo_Node
Creates a GskRenderNode that will render a cairo surface into the area given by Bounds. You can draw to the cairo surface using [methodGsk.CairoNode.get_draw_context].
the rectangle to render to
type Gsk_Cairo_Node_Record is new Gsk_Render_Node_Record with null record;
procedure Gtk_New
(Self : out Gsk_Cairo_Node;
Bounds : not null access Graphene.Rect.Graphene_Rect_T)
Creates a GskRenderNode that will render a cairo surface into the area given by Bounds. You can draw to the cairo surface using [methodGsk.CairoNode.get_draw_context]. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
the rectangle to render to
procedure Initialize
(Self : not null access Gsk_Cairo_Node_Record'Class;
Bounds : not null access Graphene.Rect.Graphene_Rect_T)
Creates a GskRenderNode that will render a cairo surface into the area given by Bounds. You can draw to the cairo surface using [methodGsk.CairoNode.get_draw_context]. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
the rectangle to render to