Renderer
Object Hierarchy:
Gsk.Renderer
Gsk.Renderer
Gsk.Renderer
GLib.Object
GLib.Object
GLib.Object->Gsk.Renderer
Description:
[ CCode ( type_id = "gsk_renderer_get_type ()" ) ]public abstract class Renderer : Object
`GskRenderer` is a class that renders a scene graph defined via a tree of [class@Gsk.
RenderNode] instances.
Typically you will use a `GskRenderer` instance to repeatedly call [[email protected] ] to update the contents of its associated
[[email protected] ].
It is necessary to realize a `GskRenderer` instance using [[email protected] ] before calling [[email protected] ], in
order to create the appropriate windowing system resources needed to render the scene.
Content:
Properties:
Static methods:
Creation methods:
Methods:
public unowned Surface ? get_surface ()
Retrieves the `GdkSurface` set using gsk_enderer_realize
.
public bool is_realized ()
Checks whether the this is realized
or not.
public bool realize (Surface ? surface) throws Error
Creates the resources needed by the this
to render the scene graph.
public void render (RenderNode root, Region ? region)
Renders the scene graph, described by a tree of `GskRenderNode`
instances to the renderer's surface, ensuring that the given region
gets redrawn.
public Texture render_texture (RenderNode root, Rect ? viewport)
Renders the scene graph, described by a tree of `GskRenderNode`
instances, to a `GdkTexture`.
public void unrealize ()
Releases all the resources created by
realize .
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref