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