DrawingContext
Object Hierarchy:
Description:
[ CCode ( type_id = "gdk_drawing_context_get_type ()" ) ]
public class DrawingContext : Object
DrawingContext is an object that represents the current drawing state of a
Window.
It's possible to use a DrawingContext to draw on a Window via
rendering API like Cairo or OpenGL.
A DrawingContext can only be created by calling
begin_draw_frame and will be valid until a call to end_draw_frame.
DrawingContext is available since GDK 3.22
Content:
Properties:
Creation methods:
Methods:
- public unowned Context get_cairo_context ()
Retrieves a Cairo context to be used to draw on the
Window that created the DrawingContext.
- public Region? get_clip ()
Retrieves a copy of the clip region used when creating the
this.
- public unowned Window get_window ()
Retrieves the window that created the drawing
this.
- public bool is_valid ()
Checks whether the given DrawingContext is
valid.
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