Window.connectMovedToRect

Connect to MovedToRect signal.

Emitted when the position of window is finalized after being moved to a destination rectangle.

window might be flipped over the destination rectangle in order to keep it on-screen, in which case flipped_x and flipped_y will be set to true accordingly.

flipped_rect is the ideal position of window after any possible flipping, but before any possible sliding. final_rect is flipped_rect, but possibly translated in the case that flipping is still ineffective in keeping window on-screen.

class Window
gulong
connectMovedToRect
(
T
)
(,
Flag!"After" after = No.After
)
if (
isCallable!T &&
is(ReturnType!T == void)
&&
(
Parameters!T.length < 1 ||
(
ParameterStorageClassTuple!T[0] == ParameterStorageClass.none &&
is(Parameters!T[0] == void*)
)
)
&&
(
Parameters!T.length < 2 ||
(
ParameterStorageClassTuple!T[1] == ParameterStorageClass.none &&
is(Parameters!T[1] == void*)
)
)
&&
(
Parameters!T.length < 3 ||
(
ParameterStorageClassTuple!T[2] == ParameterStorageClass.none &&
is(Parameters!T[2] == bool)
)
)
&&
(
Parameters!T.length < 4 ||
(
ParameterStorageClassTuple!T[3] == ParameterStorageClass.none &&
is(Parameters!T[3] == bool)
)
)
&&
(
Parameters!T.length < 5 ||
(
ParameterStorageClassTuple!T[4] == ParameterStorageClass.none &&
is(Parameters!T[4] : gdk.window.Window)
)
)
&&
Parameters!T.length < 6
)

Parameters

callback T

signal callback delegate or function to connect

void callback(void* flippedRect, void* finalRect, bool flippedX, bool flippedY, gdk.window.Window window)

flippedRect the position of window after any possible flipping or null if the backend can't obtain it (optional)

finalRect the final position of window or null if the backend can't obtain it (optional)

flippedX true if the anchors were flipped horizontally (optional)

flippedY true if the anchors were flipped vertically (optional)

window the instance the signal is connected to (optional)

after Flag!"After"

Yes.After to execute callback after default handler, No.After to execute before (default)

Return Value

Type: gulong

Signal ID