GdkDrawContext

GdkDrawContext — Base class for draw contexts

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── GdkDrawContext
        ╰── GdkGLContext

Includes

#include <gdk/gdkwayland.h>

Description

GdkDrawContext is the base object used by contexts implementing different rendering methods, such as GdkGLContext or GdkVulkanContext. It provides shared functionality between those contexts.

You will always interact with one of those s.ubclasses.

A GdkDrawContext is always associated with a single toplevel window.

Functions

gdk_draw_context_get_display ()

GdkDisplay *
gdk_draw_context_get_display (GdkDrawContext *context);

Retrieves the GdkDisplay the context is created for

Parameters

context

a GdkDrawContext

 

Returns

a GdkDisplay or NULL.

[nullable][transfer none]

Since: 3.90


gdk_draw_context_get_window ()

GdkWindow *
gdk_draw_context_get_window (GdkDrawContext *context);

Retrieves the GdkWindow used by the context .

Parameters

context

a GdkDrawContext

 

Returns

a GdkWindow or NULL.

[nullable][transfer none]

Since: 3.90

Types and Values

GdkDrawContext

typedef struct _GdkDrawContext GdkDrawContext;

The GdkDrawContext struct contains only private fields and should not be accessed directly.