WindowSignalName

public enum WindowSignalName : String, SignalNameProtocol

Undocumented

  • 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-nil 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.

    Declaration

    Swift

    case createSurface = "create-surface"
  • The from-embedder signal is emitted to translate coordinates in the embedder of an offscreen window to the offscreen window.

    See also GdkWindow::to-embedder.

    Declaration

    Swift

    case fromEmbedder = "from-embedder"
  • 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.

    Declaration

    Swift

    case movedToRect = "moved-to-rect"
  • 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 G_PARAM_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 G_PARAM_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: (C Language Example):

    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 as detail strings for the notify signal.

    Declaration

    Swift

    case notify = "notify"
  • The pick-embedded-child signal is emitted to find an embedded child at the given position.

    Declaration

    Swift

    case pickEmbeddedChild = "pick-embedded-child"
  • The to-embedder signal is emitted to translate coordinates in an offscreen window to its embedder.

    See also GdkWindow::from-embedder.

    Declaration

    Swift

    case toEmbedder = "to-embedder"
  • The mouse pointer for a GdkWindow. See gdk_window_set_cursor() and gdk_window_get_cursor() for details.

    Declaration

    Swift

    case notifyCursor = "notify::cursor"