Window.connectCreateSurface
gulong connectCreateSurface(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == cairo.surface.Surface)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == int)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == int)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gdk.window.Window)))
&& Parameters!T.length < 4)Connect to CreateSurface signal.
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 [gdk.global.offscreenWindowGetSurface] will lead to a crash.
Parameters
callback | signal callback delegate or function to connect cairo.surface.Surface callback(int width, int height, gdk.window.Window window) width the width of the offscreen surface to create (optional) height the height of the offscreen surface to create (optional) window the instance the signal is connected to (optional) Returns the newly created #cairo_surface_t for the offscreen window |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID