DrawContext
Object Hierarchy:
Description:
[
CCode ( type_id =
"gdk_draw_context_get_type ()" ) ]
public abstract class DrawContext :
Object
Base class for objects implementing different rendering methods.
`GdkDrawContext` is the base object used by contexts implementing different rendering methods, such as [class@Gdk.CairoContext] or [
class@Gdk.GLContext]. It provides shared functionality between those contexts.
You will always interact with one of those subclasses.
A `GdkDrawContext` is always associated with a single toplevel surface.
Content:
Properties:
Creation methods:
Methods:
- public void begin_frame (Region region)
Indicates that you are beginning the process of redrawing region
on the this's surface.
- public void end_frame ()
- public unowned Display? get_display ()
Retrieves the `GdkDisplay` the this
is created for
- public unowned Region? get_frame_region ()
Retrieves the region that is currently being repainted.
- public unowned Surface? get_surface ()
Retrieves the surface that this is
bound to.
- public bool is_in_frame ()
Returns true if
this is in the process of drawing to its surface.
Inherited Members:
All known members inherited from class GLib.Object