create_surface


Description:

[ Version ( since = "3.0" ) ]
public virtual signal Surface create_surface (int width, int height)

The create_surface signal is emitted when an offscreen window needs its surface (re)created, which happens either when the window is first drawn to, or when the window is being resized.

The first signal handler that returns a non-null surface will stop any further signal emission, and its surface will be used.

Note that it is not possible to access the window's previous surface from within any callback of this signal. Calling offscreen_window_get_surface will lead to a crash.

Parameters:

width

the width of the offscreen surface to create

height

the height of the offscreen surface to create

Returns:

the newly created XlibSurface for the offscreen window




2022 vala-language.org