Interface

Gdk-3.0GdkWindowSignalSignatures

interface SignalSignatures {
    "create-surface": (arg0: number, arg1: number) => default.Surface;
    "from-embedder": (
        arg0: number,
        arg1: number,
        arg2: number,
        arg3: number,
    ) => void;
    "moved-to-rect": (
        arg0: any,
        arg1: any,
        arg2: boolean,
        arg3: boolean,
    ) => void;
    notify: (arg0: GObject.ParamSpec) => void;
    "notify::cursor": (pspec: GObject.ParamSpec) => void;
    "pick-embedded-child": (arg0: number, arg1: number) => Gdk.Window;
    "to-embedder": (
        arg0: number,
        arg1: number,
        arg2: number,
        arg3: number,
    ) => void;
}

Hierarchy (View Summary)

Index

Properties

"create-surface": (arg0: number, arg1: number) => default.Surface

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_offscreen_window_get_surface() will lead to a crash.

3.0

"from-embedder": (
    arg0: number,
    arg1: number,
    arg2: number,
    arg3: number,
) => void

The ::from-embedder signal is emitted to translate coordinates in the embedder of an offscreen window to the offscreen window.

See also Gdk.Window.SignalSignatures.to_embedder | Gdk.Window::to-embedder.

2.18

"moved-to-rect": (arg0: any, arg1: any, arg2: boolean, arg3: boolean) => void

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.

3.22

"notify::cursor": (pspec: GObject.ParamSpec) => void
"pick-embedded-child": (arg0: number, arg1: number) => Gdk.Window

The ::pick-embedded-child signal is emitted to find an embedded child at the given position.

2.18

"to-embedder": (arg0: number, arg1: number, arg2: number, arg3: number) => void

The ::to-embedder signal is emitted to translate coordinates in an offscreen window to its embedder.

See also Gdk.Window.SignalSignatures.from_embedder | Gdk.Window::from-embedder.

2.18

Properties - Inherited from GObject

notify: (arg0: GObject.ParamSpec) => void

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with GObject.ParamFlags.EXPLICIT_NOTIFY, then any call to g_object_set_property() results in ::notify being emitted, even if the new value is the same as the old. If they did pass GObject.ParamFlags.EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly call g_object_notify() or g_object_notify_by_pspec(), and common practice is to do that only when the value has actually changed.

This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the g_signal_connect() call, like this:

g_signal_connect (text_view->buffer, "notify::paste-target-list",
G_CALLBACK (gtk_text_view_target_list_notify),
text_view)

It is important to note that you must use [canonical parameter names][class@GObject.ParamSpec#parameter-names] as detail strings for the notify signal.