WindowProtocol

public protocol WindowProtocol : BinProtocol

A GtkWindow is a toplevel window which can contain other widgets. Windows normally have decorations that are under the control of the windowing system and allow the user to manipulate the window (resize it, move it, close it,…).

GtkWindow as GtkBuildable

The GtkWindow implementation of the GtkBuildable interface supports a custom <accel-groups> element, which supports any number of <group> elements representing the GtkAccelGroup objects you want to add to your window (synonymous with gtk_window_add_accel_group().

It also supports the <initial-focus> element, whose name property names the widget to receive the focus when the window is mapped.

An example of a UI definition fragment with accel groups:

<object class="GtkWindow">
  <accel-groups>
    <group name="accelgroup1"/>
  </accel-groups>
  <initial-focus name="thunderclap"/>
</object>

...

<object class="GtkAccelGroup" id="accelgroup1"/>

The GtkWindow implementation of the GtkBuildable interface supports setting a child as the titlebar by specifying “titlebar” as the “type” attribute of a <child> element.

CSS nodes

(plain Language Example):

window.background
├── decoration
├── <titlebar child>.titlebar [.default-decoration]
╰── <child>

GtkWindow has a main CSS node with name window and style class .background, and a subnode with name decoration.

Style classes that are typically used with the main CSS node are .csd (when client-side decorations are in use), .solid-csd (for client-side decorations without invisible borders), .ssd (used by mutter when rendering server-side decorations). GtkWindow also represents window states with the following style classes on the main node: .tiled, .maximized, .fullscreen. Specialized types of window often add their own discriminating style classes, such as .popup or .tooltip.

GtkWindow adds the .titlebar and .default-decoration style classes to the widget that is added as a titlebar child.

The WindowProtocol protocol exposes the methods and properties of an underlying GtkWindow instance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, see Window. Alternatively, use WindowRef as a lighweight, unowned reference if you already have an instance you just want to use.

  • ptr

    Untyped pointer to the underlying GtkWindow instance.

    Declaration

    Swift

    var ptr: UnsafeMutableRawPointer! { get }
  • window_ptr Default implementation

    Typed pointer to the underlying GtkWindow instance.

    Default Implementation

    Return the stored, untyped pointer as a typed pointer to the GtkWindow instance.

    Declaration

    Swift

    var window_ptr: UnsafeMutablePointer<GtkWindow>! { get }
  • Required Initialiser for types conforming to WindowProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

Window Class

  • Bind a WindowPropertyName source property to a given target object.

    Declaration

    Swift

    @discardableResult
    @inlinable
    func bind<Q, T>(property source_property: WindowPropertyName, to target: T, _ target_property: Q, flags f: BindingFlags = .default, transformFrom transform_from: @escaping GLibObject.ValueTransformer = { $0.transform(destValue: $1) }, transformTo transform_to: @escaping GLibObject.ValueTransformer = { $0.transform(destValue: $1) }) -> BindingRef! where Q : PropertyNameProtocol, T : ObjectProtocol

    Parameters

    source_property

    the source property to bind

    target

    the target object to bind to

    target_property

    the target property to bind to

    flags

    the flags to pass to the Binding

    transform_from

    ValueTransformer to use for forward transformation

    transform_to

    ValueTransformer to use for backwards transformation

    Return Value

    binding reference or nil in case of an error

  • get(property:) Extension method

    Get the value of a Window property

    Declaration

    Swift

    @inlinable
    func get(property: WindowPropertyName) -> GLibObject.Value

    Parameters

    property

    the property to get the value for

    Return Value

    the value of the named property

  • set(property:value:) Extension method

    Set the value of a Window property. Note that this will only have an effect on properties that are writable and not construct-only!

    Declaration

    Swift

    @inlinable
    func set(property: WindowPropertyName, value v: GLibObject.Value)

    Parameters

    property

    the property to get the value for

    Return Value

    the value of the named property

Window signals

  • Connect a Swift signal handler to the given, typed WindowSignalName signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func connect(signal s: WindowSignalName, flags f: ConnectFlags = ConnectFlags(0), handler h: @escaping SignalHandler) -> Int

    Parameters

    signal

    The signal to connect

    flags

    The connection flags to use

    data

    A pointer to user data to provide to the callback

    destroyData

    A GClosureNotify C function to destroy the data pointed to by userData

    handler

    The Swift signal handler (function or callback) to invoke on the given signal

    Return Value

    The signal handler ID (always greater than 0 for successful connections)

  • Connect a C signal handler to the given, typed WindowSignalName signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func connect(signal s: WindowSignalName, flags f: ConnectFlags = ConnectFlags(0), data userData: gpointer!, destroyData destructor: GClosureNotify? = nil, signalHandler h: @escaping GCallback) -> Int

    Parameters

    signal

    The signal to connect

    flags

    The connection flags to use

    data

    A pointer to user data to provide to the callback

    destroyData

    A GClosureNotify C function to destroy the data pointed to by userData

    signalHandler

    The C function to be called on the given signal

    Return Value

    The signal handler ID (always greater than 0 for successful connections)

  • The activate-default signal is a keybinding signal which gets emitted when the user activates the default widget of window.

    Note

    This represents the underlying activate-default signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onActivateDefault(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    handler

    The signal handler to call Run the given callback whenever the activateDefault signal is emitted

  • activateDefaultSignal Extension method

    Typed activate-default signal for using the connect(signal:) methods

    Declaration

    Swift

    static var activateDefaultSignal: WindowSignalName { get }
  • The activate-focus signal is a keybinding signal which gets emitted when the user activates the currently focused widget of window.

    Note

    This represents the underlying activate-focus signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onActivateFocus(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    handler

    The signal handler to call Run the given callback whenever the activateFocus signal is emitted

  • activateFocusSignal Extension method

    Typed activate-focus signal for using the connect(signal:) methods

    Declaration

    Swift

    static var activateFocusSignal: WindowSignalName { get }
  • The enable-debugging signal is a keybinding signal which gets emitted when the user enables or disables interactive debugging. When toggle is true, interactive debugging is toggled on or off, when it is false, the debugger will be pointed at the widget under the pointer.

    The default bindings for this signal are Ctrl-Shift-I and Ctrl-Shift-D.

    Note

    This represents the underlying enable-debugging signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onEnableDebugging(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ toggle: Bool) -> Bool) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    toggle

    toggle the debugger

    handler

    true if the key binding was handled Run the given callback whenever the enableDebugging signal is emitted

  • enableDebuggingSignal Extension method

    Typed enable-debugging signal for using the connect(signal:) methods

    Declaration

    Swift

    static var enableDebuggingSignal: WindowSignalName { get }
  • The keys-changed signal gets emitted when the set of accelerators or mnemonics that are associated with window changes.

    Note

    This represents the underlying keys-changed signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onKeysChanged(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    handler

    The signal handler to call Run the given callback whenever the keysChanged signal is emitted

  • keysChangedSignal Extension method

    Typed keys-changed signal for using the connect(signal:) methods

    Declaration

    Swift

    static var keysChangedSignal: WindowSignalName { get }
  • onSetFocus(flags:handler:) Extension method

    This signal is emitted whenever the currently focused widget in this window changes.

    Note

    This represents the underlying set-focus signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onSetFocus(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ widget: WidgetRef?) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    widget

    the newly focused widget (or nil for no focus)

    handler

    The signal handler to call Run the given callback whenever the setFocus signal is emitted

  • setFocusSignal Extension method

    Typed set-focus signal for using the connect(signal:) methods

    Declaration

    Swift

    static var setFocusSignal: WindowSignalName { get }
  • 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.

    Note

    This represents the underlying notify::accept-focus signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyAcceptFocus(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyAcceptFocus signal is emitted

  • notifyAcceptFocusSignal Extension method

    Typed notify::accept-focus signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyAcceptFocusSignal: WindowSignalName { get }
  • 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.

    Note

    This represents the underlying notify::application signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyApplication(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyApplication signal is emitted

  • notifyApplicationSignal Extension method

    Typed notify::application signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyApplicationSignal: WindowSignalName { get }
  • 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.

    Note

    This represents the underlying notify::attached-to signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyAttachedTo(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyAttachedTo signal is emitted

  • notifyAttachedToSignal Extension method

    Typed notify::attached-to signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyAttachedToSignal: WindowSignalName { get }
  • 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.

    Note

    This represents the underlying notify::decorated signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyDecorated(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyDecorated signal is emitted

  • notifyDecoratedSignal Extension method

    Typed notify::decorated signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyDecoratedSignal: WindowSignalName { get }
  • 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.

    Note

    This represents the underlying notify::default-height signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyDefaultHeight(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyDefaultHeight signal is emitted

  • notifyDefaultHeightSignal Extension method

    Typed notify::default-height signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyDefaultHeightSignal: WindowSignalName { get }
  • 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.

    Note

    This represents the underlying notify::default-width signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyDefaultWidth(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyDefaultWidth signal is emitted

  • notifyDefaultWidthSignal Extension method

    Typed notify::default-width signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyDefaultWidthSignal: WindowSignalName { get }
  • 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.

    Note

    This represents the underlying notify::deletable signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyDeletable(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyDeletable signal is emitted

  • notifyDeletableSignal Extension method

    Typed notify::deletable signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyDeletableSignal: WindowSignalName { get }
  • 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.

    Note

    This represents the underlying notify::destroy-with-parent signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyDestroyWithParent(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyDestroyWithParent signal is emitted

  • Typed notify::destroy-with-parent signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyDestroyWithParentSignal: WindowSignalName { get }
  • 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.

    Note

    This represents the underlying notify::focus-on-map signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyFocusOnMap(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyFocusOnMap signal is emitted

  • notifyFocusOnMapSignal Extension method

    Typed notify::focus-on-map signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyFocusOnMapSignal: WindowSignalName { get }
  • 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.

    Note

    This represents the underlying notify::focus-visible signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyFocusVisible(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyFocusVisible signal is emitted

  • notifyFocusVisibleSignal Extension method

    Typed notify::focus-visible signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyFocusVisibleSignal: WindowSignalName { get }
  • 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.

    Note

    This represents the underlying notify::gravity signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyGravity(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyGravity signal is emitted

  • notifyGravitySignal Extension method

    Typed notify::gravity signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyGravitySignal: WindowSignalName { get }
  • 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.

    Note

    This represents the underlying notify::has-resize-grip signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyHasResizeGrip(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyHasResizeGrip signal is emitted

  • notifyHasResizeGripSignal Extension method

    Typed notify::has-resize-grip signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyHasResizeGripSignal: WindowSignalName { get }
  • 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.

    Note

    This represents the underlying notify::has-toplevel-focus signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyHasToplevelFocus(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyHasToplevelFocus signal is emitted

  • notifyHasToplevelFocusSignal Extension method

    Typed notify::has-toplevel-focus signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyHasToplevelFocusSignal: WindowSignalName { get }
  • 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.

    Note

    This represents the underlying notify::hide-titlebar-when-maximized signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyHideTitlebarWhenMaximized(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyHideTitlebarWhenMaximized signal is emitted

  • Typed notify::hide-titlebar-when-maximized signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyHideTitlebarWhenMaximizedSignal: WindowSignalName { get }
  • onNotifyIcon(flags:handler:) Extension method

    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.

    Note

    This represents the underlying notify::icon signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyIcon(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyIcon signal is emitted

  • notifyIconSignal Extension method

    Typed notify::icon signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyIconSignal: WindowSignalName { get }
  • 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.

    Note

    This represents the underlying notify::icon-name signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyIconName(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyIconName signal is emitted

  • notifyIconNameSignal Extension method

    Typed notify::icon-name signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyIconNameSignal: WindowSignalName { get }
  • 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.

    Note

    This represents the underlying notify::is-active signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyIsActive(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyIsActive signal is emitted

  • notifyIsActiveSignal Extension method

    Typed notify::is-active signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyIsActiveSignal: WindowSignalName { get }
  • 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.

    Note

    This represents the underlying notify::is-maximized signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyIsMaximized(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyIsMaximized signal is emitted

  • notifyIsMaximizedSignal Extension method

    Typed notify::is-maximized signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyIsMaximizedSignal: WindowSignalName { get }
  • 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.

    Note

    This represents the underlying notify::mnemonics-visible signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyMnemonicsVisible(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyMnemonicsVisible signal is emitted

  • notifyMnemonicsVisibleSignal Extension method

    Typed notify::mnemonics-visible signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyMnemonicsVisibleSignal: WindowSignalName { get }
  • 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.

    Note

    This represents the underlying notify::modal signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyModal(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyModal signal is emitted

  • notifyModalSignal Extension method

    Typed notify::modal signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyModalSignal: WindowSignalName { get }
  • 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.

    Note

    This represents the underlying notify::resizable signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyResizable(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyResizable signal is emitted

  • notifyResizableSignal Extension method

    Typed notify::resizable signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyResizableSignal: WindowSignalName { get }
  • 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.

    Note

    This represents the underlying notify::resize-grip-visible signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyResizeGripVisible(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyResizeGripVisible signal is emitted

  • Typed notify::resize-grip-visible signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyResizeGripVisibleSignal: WindowSignalName { get }
  • onNotifyRole(flags:handler:) Extension method

    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.

    Note

    This represents the underlying notify::role signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyRole(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyRole signal is emitted

  • notifyRoleSignal Extension method

    Typed notify::role signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyRoleSignal: WindowSignalName { get }
  • 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.

    Note

    This represents the underlying notify::screen signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyScreen(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyScreen signal is emitted

  • notifyScreenSignal Extension method

    Typed notify::screen signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyScreenSignal: WindowSignalName { get }
  • 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.

    Note

    This represents the underlying notify::skip-pager-hint signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifySkipPagerHint(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifySkipPagerHint signal is emitted

  • notifySkipPagerHintSignal Extension method

    Typed notify::skip-pager-hint signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifySkipPagerHintSignal: WindowSignalName { get }
  • 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.

    Note

    This represents the underlying notify::skip-taskbar-hint signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifySkipTaskbarHint(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifySkipTaskbarHint signal is emitted

  • notifySkipTaskbarHintSignal Extension method

    Typed notify::skip-taskbar-hint signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifySkipTaskbarHintSignal: WindowSignalName { get }
  • 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.

    Note

    This represents the underlying notify::startup-id signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyStartupID(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyStartupID signal is emitted

  • notifyStartupIDSignal Extension method

    Typed notify::startup-id signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyStartupIDSignal: WindowSignalName { get }
  • 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.

    Note

    This represents the underlying notify::title signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyTitle(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyTitle signal is emitted

  • notifyTitleSignal Extension method

    Typed notify::title signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyTitleSignal: WindowSignalName { get }
  • 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.

    Note

    This represents the underlying notify::transient-for signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyTransientFor(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyTransientFor signal is emitted

  • notifyTransientForSignal Extension method

    Typed notify::transient-for signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyTransientForSignal: WindowSignalName { get }
  • onNotifyType(flags:handler:) Extension method

    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.

    Note

    This represents the underlying notify::type signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyType(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyType signal is emitted

  • notifyTypeSignal Extension method

    Typed notify::type signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyTypeSignal: WindowSignalName { get }
  • 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.

    Note

    This represents the underlying notify::type-hint signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyTypeHint(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyTypeHint signal is emitted

  • notifyTypeHintSignal Extension method

    Typed notify::type-hint signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyTypeHintSignal: WindowSignalName { get }
  • 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.

    Note

    This represents the underlying notify::urgency-hint signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyUrgencyHint(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyUrgencyHint signal is emitted

  • notifyUrgencyHintSignal Extension method

    Typed notify::urgency-hint signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyUrgencyHintSignal: WindowSignalName { get }
  • 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.

    Note

    This represents the underlying notify::window-position signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyWindowPosition(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: WindowRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyWindowPosition signal is emitted

  • notifyWindowPositionSignal Extension method

    Typed notify::window-position signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyWindowPositionSignal: WindowSignalName { get }

Window Class: WindowProtocol extension (methods and fields)

  • activateDefault() Extension method

    Activates the default widget for the window, unless the current focused widget has been configured to receive the default action (see gtk_widget_set_receives_default()), in which case the focused widget is activated.

    Declaration

    Swift

    @inlinable
    func activateDefault() -> Bool
  • activateFocus() Extension method

    Activates the current focused widget within the window.

    Declaration

    Swift

    @inlinable
    func activateFocus() -> Bool
  • activateKey(event:) Extension method

    Activates mnemonics and accelerators for this GtkWindow. This is normally called by the default key_press_event handler for toplevel windows, however in some cases it may be useful to call this directly when overriding the standard key handling for a toplevel window.

    Declaration

    Swift

    @inlinable
    func activateKey<EventKeyT>(event: EventKeyT) -> Bool where EventKeyT : EventKeyProtocol
  • add(accelGroup:) Extension method

    Associate accel_group with window, such that calling gtk_accel_groups_activate() on window will activate accelerators in accel_group.

    Declaration

    Swift

    @inlinable
    func add<AccelGroupT>(accelGroup: AccelGroupT) where AccelGroupT : AccelGroupProtocol
  • addMnemonic(keyval:target:) Extension method

    Adds a mnemonic to this window.

    Declaration

    Swift

    @inlinable
    func addMnemonic<WidgetT>(keyval: Int, target: WidgetT) where WidgetT : WidgetProtocol
  • Starts moving a window. This function is used if an application has window movement grips. When GDK can support it, the window movement will be done using the standard mechanism for the window manager or windowing system. Otherwise, GDK will try to emulate window movement, potentially not all that well, depending on the windowing system.

    Declaration

    Swift

    @inlinable
    func beginMoveDrag(button: Int, rootX: Int, rootY: Int, timestamp: guint32)
  • Starts resizing a window. This function is used if an application has window resizing controls. When GDK can support it, the resize will be done using the standard mechanism for the window manager or windowing system. Otherwise, GDK will try to emulate window resizing, potentially not all that well, depending on the windowing system.

    Declaration

    Swift

    @inlinable
    func beginResizeDrag(edge: GdkWindowEdge, button: Int, rootX: Int, rootY: Int, timestamp: guint32)
  • close() Extension method

    Requests that the window is closed, similar to what happens when a window manager close button is clicked.

    This function can be used with close buttons in custom titlebars.

    Declaration

    Swift

    @inlinable
    func close()
  • deiconify() Extension method

    Asks to deiconify (i.e. unminimize) the specified window. Note that you shouldn’t assume the window is definitely deiconified afterward, because other entities (e.g. the user or window manager)) could iconify it again before your code which assumes deiconification gets to run.

    You can track iconification via the “window-state-event” signal on GtkWidget.

    Declaration

    Swift

    @inlinable
    func deiconify()
  • fullscreen() Extension method

    Asks to place window in the fullscreen state. Note that you shouldn’t assume the window is definitely full screen afterward, because other entities (e.g. the user or window manager) could unfullscreen it again, and not all window managers honor requests to fullscreen windows. But normally the window will end up fullscreen. Just don’t write code that crashes if not.

    You can track the fullscreen state via the “window-state-event” signal on GtkWidget.

    Declaration

    Swift

    @inlinable
    func fullscreen()
  • Asks to place window in the fullscreen state. Note that you shouldn’t assume the window is definitely full screen afterward.

    You can track the fullscreen state via the “window-state-event” signal on GtkWidget.

    Declaration

    Swift

    @inlinable
    func fullscreenOnMonitor<ScreenT>(screen: ScreenT, monitor: Int) where ScreenT : ScreenProtocol
  • getAcceptFocus() Extension method

    Gets the value set by gtk_window_set_accept_focus().

    Declaration

    Swift

    @inlinable
    func getAcceptFocus() -> Bool
  • getApplication() Extension method

    Gets the GtkApplication associated with the window (if any).

    Declaration

    Swift

    @inlinable
    func getApplication() -> ApplicationRef!
  • getAttachedTo() Extension method

    Fetches the attach widget for this window. See gtk_window_set_attached_to().

    Declaration

    Swift

    @inlinable
    func getAttachedTo() -> WidgetRef!
  • getDecorated() Extension method

    Returns whether the window has been set to have decorations such as a title bar via gtk_window_set_decorated().

    Declaration

    Swift

    @inlinable
    func getDecorated() -> Bool
  • Gets the default size of the window. A value of -1 for the width or height indicates that a default size has not been explicitly set for that dimension, so the “natural” size of the window will be used.

    Declaration

    Swift

    @inlinable
    func getDefaultSize(width: UnsafeMutablePointer<gint>! = nil, height: UnsafeMutablePointer<gint>! = nil)
  • getDefaultWidget() Extension method

    Returns the default widget for window. See gtk_window_set_default() for more details.

    Declaration

    Swift

    @inlinable
    func getDefaultWidget() -> WidgetRef!
  • getDeletable() Extension method

    Returns whether the window has been set to have a close button via gtk_window_set_deletable().

    Declaration

    Swift

    @inlinable
    func getDeletable() -> Bool
  • getDestroyWithParent() Extension method

    Returns whether the window will be destroyed with its transient parent. See gtk_window_set_destroy_with_parent ().

    Declaration

    Swift

    @inlinable
    func getDestroyWithParent() -> Bool
  • getFocus() Extension method

    Retrieves the current focused widget within the window. Note that this is the widget that would have the focus if the toplevel window focused; if the toplevel window is not focused then gtk_widget_has_focus (widget) will not be true for the widget.

    Declaration

    Swift

    @inlinable
    func getFocus() -> WidgetRef!
  • getFocusOnMap() Extension method

    Gets the value set by gtk_window_set_focus_on_map().

    Declaration

    Swift

    @inlinable
    func getFocusOnMap() -> Bool
  • getFocusVisible() Extension method

    Gets the value of the GtkWindow:focus-visible property.

    Declaration

    Swift

    @inlinable
    func getFocusVisible() -> Bool
  • getGravity() Extension method

    Gets the value set by gtk_window_set_gravity().

    Declaration

    Swift

    @inlinable
    func getGravity() -> GdkGravity
  • getGroup() Extension method

    Returns the group for window or the default group, if window is nil or if window does not have an explicit window group.

    Declaration

    Swift

    @inlinable
    func getGroup() -> WindowGroupRef!
  • getHasResizeGrip() Extension method

    Determines whether the window may have a resize grip.

    get_has_resize_grip is deprecated: Resize grips have been removed.

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func getHasResizeGrip() -> Bool
  • Returns whether the window has requested to have its titlebar hidden when maximized. See gtk_window_set_hide_titlebar_when_maximized ().

    Declaration

    Swift

    @inlinable
    func getHideTitlebarWhenMaximized() -> Bool
  • getIcon() Extension method

    Gets the value set by gtk_window_set_icon() (or if you’ve called gtk_window_set_icon_list(), gets the first icon in the icon list).

    Declaration

    Swift

    @inlinable
    func getIcon() -> PixbufRef!
  • getIconList() Extension method

    Retrieves the list of icons set by gtk_window_set_icon_list(). The list is copied, but the reference count on each member won’t be incremented.

    Declaration

    Swift

    @inlinable
    func getIconList() -> GLib.ListRef!
  • getIconName() Extension method

    Returns the name of the themed icon for the window, see gtk_window_set_icon_name().

    Declaration

    Swift

    @inlinable
    func getIconName() -> String!
  • getMnemonicModifier() Extension method

    Returns the mnemonic modifier for this window. See gtk_window_set_mnemonic_modifier().

    Declaration

    Swift

    @inlinable
    func getMnemonicModifier() -> Gdk.ModifierType
  • getMnemonicsVisible() Extension method

    Gets the value of the GtkWindow:mnemonics-visible property.

    Declaration

    Swift

    @inlinable
    func getMnemonicsVisible() -> Bool
  • getModal() Extension method

    Returns whether the window is modal. See gtk_window_set_modal().

    Declaration

    Swift

    @inlinable
    func getModal() -> Bool
  • getOpacity() Extension method

    Fetches the requested opacity for this window. See gtk_window_set_opacity().

    get_opacity is deprecated: Use gtk_widget_get_opacity instead.

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func getOpacity() -> Double
  • getPosition(rootX:rootY:) Extension method

    This function returns the position you need to pass to gtk_window_move() to keep window in its current position. This means that the meaning of the returned value varies with window gravity. See gtk_window_move() for more details.

    The reliability of this function depends on the windowing system currently in use. Some windowing systems, such as Wayland, do not support a global coordinate system, and thus the position of the window will always be (0, 0). Others, like X11, do not have a reliable way to obtain the geometry of the decorations of a window if they are provided by the window manager. Additionally, on X11, window manager have been known to mismanage window gravity, which result in windows moving even if you use the coordinates of the current position as returned by this function.

    If you haven’t changed the window gravity, its gravity will be GDK_GRAVITY_NORTH_WEST. This means that gtk_window_get_position() gets the position of the top-left corner of the window manager frame for the window. gtk_window_move() sets the position of this same top-left corner.

    If a window has gravity GDK_GRAVITY_STATIC the window manager frame is not relevant, and thus gtk_window_get_position() will always produce accurate results. However you can’t use static gravity to do things like place a window in a corner of the screen, because static gravity ignores the window manager decorations.

    Ideally, this function should return appropriate values if the window has client side decorations, assuming that the windowing system supports global coordinates.

    In practice, saving the window position should not be left to applications, as they lack enough knowledge of the windowing system and the window manager state to effectively do so. The appropriate way to implement saving the window position is to use a platform-specific protocol, wherever that is available.

    Declaration

    Swift

    @inlinable
    func getPosition(rootX: UnsafeMutablePointer<gint>! = nil, rootY: UnsafeMutablePointer<gint>! = nil)
  • getResizable() Extension method

    Gets the value set by gtk_window_set_resizable().

    Declaration

    Swift

    @inlinable
    func getResizable() -> Bool
  • getResizeGripArea(rect:) Extension method

    If a window has a resize grip, this will retrieve the grip position, width and height into the specified GdkRectangle.

    get_resize_grip_area is deprecated: Resize grips have been removed.

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func getResizeGripArea<RectangleT>(rect: RectangleT) -> Bool where RectangleT : RectangleProtocol
  • getRole() Extension method

    Returns the role of the window. See gtk_window_set_role() for further explanation.

    Declaration

    Swift

    @inlinable
    func getRole() -> String!
  • getScreen() Extension method

    Returns the GdkScreen associated with window.

    Declaration

    Swift

    @inlinable
    func getScreen() -> Gdk.ScreenRef!
  • getSize(width:height:) Extension method

    Obtains the current size of window.

    If window is not visible on screen, this function return the size GTK+ will suggest to the window manager for the initial window size (but this is not reliably the same as the size the window manager will actually select). See: gtk_window_set_default_size().

    Depending on the windowing system and the window manager constraints, the size returned by this function may not match the size set using gtk_window_resize(); additionally, since gtk_window_resize() may be implemented as an asynchronous operation, GTK+ cannot guarantee in any way that this code:

    (C Language Example):

      // width and height are set elsewhere
      gtk_window_resize (window, width, height);
    
      int new_width, new_height;
      gtk_window_get_size (window, &new_width, &new_height);
    

    will result in new_width and new_height matching width and height, respectively.

    This function will return the logical size of the GtkWindow, excluding the widgets used in client side decorations; there is, however, no guarantee that the result will be completely accurate because client side decoration may include widgets that depend on the user preferences and that may not be visibile at the time you call this function.

    The dimensions returned by this function are suitable for being stored across sessions; use gtk_window_set_default_size() to restore them when before showing the window.

    To avoid potential race conditions, you should only call this function in response to a size change notification, for instance inside a handler for the GtkWidget::size-allocate signal, or inside a handler for the GtkWidget::configure-event signal:

    (C Language Example):

    static void
    on_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
    {
      int new_width, new_height;
    
      gtk_window_get_size (GTK_WINDOW (widget), &new_width, &new_height);
    
      ...
    }
    

    Note that, if you connect to the GtkWidget::size-allocate signal, you should not use the dimensions of the GtkAllocation passed to the signal handler, as the allocation may contain client side decorations added by GTK+, depending on the windowing system in use.

    If you are getting a window size in order to position the window on the screen, you should, instead, simply set the window’s semantic type with gtk_window_set_type_hint(), which allows the window manager to e.g. center dialogs. Also, if you set the transient parent of dialogs with gtk_window_set_transient_for() window managers will often center the dialog over its parent window. It’s much preferred to let the window manager handle these cases rather than doing it yourself, because all apps will behave consistently and according to user or system preferences, if the window manager handles it. Also, the window manager can take into account the size of the window decorations and border that it may add, and of which GTK+ has no knowledge. Additionally, positioning windows in global screen coordinates may not be allowed by the windowing system. For more information, see: gtk_window_set_position().

    Declaration

    Swift

    @inlinable
    func getSize(width: UnsafeMutablePointer<gint>?, height: UnsafeMutablePointer<gint>?)
  • getSkipPagerHint() Extension method

    Gets the value set by gtk_window_set_skip_pager_hint().

    Declaration

    Swift

    @inlinable
    func getSkipPagerHint() -> Bool
  • getSkipTaskbarHint() Extension method

    Gets the value set by gtk_window_set_skip_taskbar_hint()

    Declaration

    Swift

    @inlinable
    func getSkipTaskbarHint() -> Bool
  • getTitle() Extension method

    Retrieves the title of the window. See gtk_window_set_title().

    Declaration

    Swift

    @inlinable
    func getTitle() -> String!
  • getTitlebar() Extension method

    Returns the custom titlebar that has been set with gtk_window_set_titlebar().

    Declaration

    Swift

    @inlinable
    func getTitlebar() -> WidgetRef!
  • getTransientFor() Extension method

    Fetches the transient parent for this window. See gtk_window_set_transient_for().

    Declaration

    Swift

    @inlinable
    func getTransientFor() -> WindowRef!
  • getTypeHint() Extension method

    Gets the type hint for this window. See gtk_window_set_type_hint().

    Declaration

    Swift

    @inlinable
    func getTypeHint() -> GdkWindowTypeHint
  • getUrgencyHint() Extension method

    Gets the value set by gtk_window_set_urgency_hint()

    Declaration

    Swift

    @inlinable
    func getUrgencyHint() -> Bool
  • getWindowType() Extension method

    Gets the type of the window. See GtkWindowType.

    Declaration

    Swift

    @inlinable
    func getWindowType() -> GtkWindowType
  • hasGroup() Extension method

    Returns whether window has an explicit window group.

    Declaration

    Swift

    @inlinable
    func hasGroup() -> Bool
  • hasToplevelFocus() Extension method

    Returns whether the input focus is within this GtkWindow. For real toplevel windows, this is identical to gtk_window_is_active(), but for embedded windows, like GtkPlug, the results will differ.

    Declaration

    Swift

    @inlinable
    func hasToplevelFocus() -> Bool
  • iconify() Extension method

    Asks to iconify (i.e. minimize) the specified window. Note that you shouldn’t assume the window is definitely iconified afterward, because other entities (e.g. the user or window manager) could deiconify it again, or there may not be a window manager in which case iconification isn’t possible, etc. But normally the window will end up iconified. Just don’t write code that crashes if not.

    It’s permitted to call this function before showing a window, in which case the window will be iconified before it ever appears onscreen.

    You can track iconification via the “window-state-event” signal on GtkWidget.

    Declaration

    Swift

    @inlinable
    func iconify()
  • maximize() Extension method

    Asks to maximize window, so that it becomes full-screen. Note that you shouldn’t assume the window is definitely maximized afterward, because other entities (e.g. the user or window manager) could unmaximize it again, and not all window managers support maximization. But normally the window will end up maximized. Just don’t write code that crashes if not.

    It’s permitted to call this function before showing a window, in which case the window will be maximized when it appears onscreen initially.

    You can track maximization via the “window-state-event” signal on GtkWidget, or by listening to notifications on the GtkWindow:is-maximized property.

    Declaration

    Swift

    @inlinable
    func maximize()
  • Activates the targets associated with the mnemonic.

    Declaration

    Swift

    @inlinable
    func mnemonicActivate(keyval: Int, modifier: Gdk.ModifierType) -> Bool
  • move(x:y:) Extension method

    Asks the window manager to move window to the given position. Window managers are free to ignore this; most window managers ignore requests for initial window positions (instead using a user-defined placement algorithm) and honor requests after the window has already been shown.

    Note: the position is the position of the gravity-determined reference point for the window. The gravity determines two things: first, the location of the reference point in root window coordinates; and second, which point on the window is positioned at the reference point.

    By default the gravity is GDK_GRAVITY_NORTH_WEST, so the reference point is simply the x, y supplied to gtk_window_move(). The top-left corner of the window decorations (aka window frame or border) will be placed at x, y. Therefore, to position a window at the top left of the screen, you want to use the default gravity (which is GDK_GRAVITY_NORTH_WEST) and move the window to 0,0.

    To position a window at the bottom right corner of the screen, you would set GDK_GRAVITY_SOUTH_EAST, which means that the reference point is at x + the window width and y + the window height, and the bottom-right corner of the window border will be placed at that reference point. So, to place a window in the bottom right corner you would first set gravity to south east, then write: gtk_window_move (window, gdk_screen_width () - window_width, gdk_screen_height () - window_height) (note that this example does not take multi-head scenarios into account).

    The Extended Window Manager Hints Specification has a nice table of gravities in the “implementation notes” section.

    The gtk_window_get_position() documentation may also be relevant.

    Declaration

    Swift

    @inlinable
    func move(x: Int, y: Int)
  • parse(geometry:) Extension method

    Parses a standard X Window System geometry string - see the manual page for X (type “man X”) for details on this. gtk_window_parse_geometry() does work on all GTK+ ports including Win32 but is primarily intended for an X environment.

    If either a size or a position can be extracted from the geometry string, gtk_window_parse_geometry() returns true and calls gtk_window_set_default_size() and/or gtk_window_move() to resize/move the window.

    If gtk_window_parse_geometry() returns true, it will also set the GDK_HINT_USER_POS and/or GDK_HINT_USER_SIZE hints indicating to the window manager that the size/position of the window was user-specified. This causes most window managers to honor the geometry.

    Note that for gtk_window_parse_geometry() to work as expected, it has to be called when the window has its “final” size, i.e. after calling gtk_widget_show_all() on the contents and gtk_window_set_geometry_hints() on the window. (C Language Example):

    #include <gtk/gtk.h>
    
    static void
    fill_with_content (GtkWidget *vbox)
    {
      // fill with content...
    }
    
    int
    main (int argc, char *argv[])
    {
      GtkWidget *window, *vbox;
      GdkGeometry size_hints = {
        100, 50, 0, 0, 100, 50, 10,
        10, 0.0, 0.0, GDK_GRAVITY_NORTH_WEST
      };
    
      gtk_init (&argc, &argv);
    
      window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
      vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
    
      gtk_container_add (GTK_CONTAINER (window), vbox);
      fill_with_content (vbox);
      gtk_widget_show_all (vbox);
    
      gtk_window_set_geometry_hints (GTK_WINDOW (window),
                        NULL,
                        &size_hints,
                        GDK_HINT_MIN_SIZE |
                        GDK_HINT_BASE_SIZE |
                        GDK_HINT_RESIZE_INC);
    
      if (argc > 1)
        {
          gboolean res;
          res = gtk_window_parse_geometry (GTK_WINDOW (window),
                                           argv[1]);
          if (! res)
            fprintf (stderr,
                     "Failed to parse “%s”\n",
                     argv[1]);
        }
    
      gtk_widget_show_all (window);
      gtk_main ();
    
      return 0;
    }
    

    parse_geometry is deprecated: Geometry handling in GTK is deprecated.

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func parse(geometry: UnsafePointer<gchar>!) -> Bool
  • present() Extension method

    Presents a window to the user. This function should not be used as when it is called, it is too late to gather a valid timestamp to allow focus stealing prevention to work correctly.

    Declaration

    Swift

    @inlinable
    func present()
  • presentWithTime(timestamp:) Extension method

    Presents a window to the user. This may mean raising the window in the stacking order, deiconifying it, moving it to the current desktop, and/or giving it the keyboard focus, possibly dependent on the user’s platform, window manager, and preferences.

    If window is hidden, this function calls gtk_widget_show() as well.

    This function should be used when the user tries to open a window that’s already open. Say for example the preferences dialog is currently open, and the user chooses Preferences from the menu a second time; use gtk_window_present() to move the already-open dialog where the user can see it.

    Presents a window to the user in response to a user interaction. The timestamp should be gathered when the window was requested to be shown (when clicking a link for example), rather than once the window is ready to be shown.

    Declaration

    Swift

    @inlinable
    func presentWithTime(timestamp: guint32)
  • propagateKey(event:) Extension method

    Propagate a key press or release event to the focus widget and up the focus container chain until a widget handles event. This is normally called by the default key_press_event and key_release_event handlers for toplevel windows, however in some cases it may be useful to call this directly when overriding the standard key handling for a toplevel window.

    Declaration

    Swift

    @inlinable
    func propagateKey<EventKeyT>(event: EventKeyT) -> Bool where EventKeyT : EventKeyProtocol
  • remove(accelGroup:) Extension method

    Reverses the effects of gtk_window_add_accel_group().

    Declaration

    Swift

    @inlinable
    func remove<AccelGroupT>(accelGroup: AccelGroupT) where AccelGroupT : AccelGroupProtocol
  • Removes a mnemonic from this window.

    Declaration

    Swift

    @inlinable
    func removeMnemonic<WidgetT>(keyval: Int, target: WidgetT) where WidgetT : WidgetProtocol
  • reshowWithInitialSize() Extension method

    Hides window, then reshows it, resetting the default size and position of the window. Used by GUI builders only.

    reshow_with_initial_size is deprecated: GUI builders can call gtk_widget_hide(), gtk_widget_unrealize() and then gtk_widget_show() on @window themselves, if they still need this functionality.

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func reshowWithInitialSize()
  • resize(width:height:) Extension method

    Resizes the window as if the user had done so, obeying geometry constraints. The default geometry constraint is that windows may not be smaller than their size request; to override this constraint, call gtk_widget_set_size_request() to set the window’s request to a smaller value.

    If gtk_window_resize() is called before showing a window for the first time, it overrides any default size set with gtk_window_set_default_size().

    Windows may not be resized smaller than 1 by 1 pixels.

    When using client side decorations, GTK+ will do its best to adjust the given size so that the resulting window size matches the requested size without the title bar, borders and shadows added for the client side decorations, but there is no guarantee that the result will be totally accurate because these widgets added for client side decorations depend on the theme and may not be realized or visible at the time gtk_window_resize() is issued.

    If the GtkWindow has a titlebar widget (see gtk_window_set_titlebar()), then typically, gtk_window_resize() will compensate for the height of the titlebar widget only if the height is known when the resulting GtkWindow configuration is issued. For example, if new widgets are added after the GtkWindow configuration and cause the titlebar widget to grow in height, this will result in a window content smaller that specified by gtk_window_resize() and not a larger window.

    Declaration

    Swift

    @inlinable
    func resize(width: Int, height: Int)
  • resizeGripIsVisible() Extension method

    Determines whether a resize grip is visible for the specified window.

    resize_grip_is_visible is deprecated: Resize grips have been removed.

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func resizeGripIsVisible() -> Bool
  • Like gtk_window_resize(), but width and height are interpreted in terms of the base size and increment set with gtk_window_set_geometry_hints.

    resize_to_geometry is deprecated: This function does nothing. Use gtk_window_resize() and compute the geometry yourself.

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func resizeToGeometry(width: Int, height: Int)
  • setAcceptFocus(setting:) Extension method

    Windows may set a hint asking the desktop environment not to receive the input focus. This function sets this hint.

    Declaration

    Swift

    @inlinable
    func setAcceptFocus(setting: Bool)
  • set(application:) Extension method

    Sets or unsets the GtkApplication associated with the window.

    The application will be kept alive for at least as long as it has any windows associated with it (see g_application_hold() for a way to keep it alive without windows).

    Normally, the connection between the application and the window will remain until the window is destroyed, but you can explicitly remove it by setting the application to nil.

    This is equivalent to calling gtk_application_remove_window() and/or gtk_application_add_window() on the old/new applications as relevant.

    Declaration

    Swift

    @inlinable
    func set(application: ApplicationRef? = nil)
  • set(application:) Extension method

    Sets or unsets the GtkApplication associated with the window.

    The application will be kept alive for at least as long as it has any windows associated with it (see g_application_hold() for a way to keep it alive without windows).

    Normally, the connection between the application and the window will remain until the window is destroyed, but you can explicitly remove it by setting the application to nil.

    This is equivalent to calling gtk_application_remove_window() and/or gtk_application_add_window() on the old/new applications as relevant.

    Declaration

    Swift

    @inlinable
    func set<ApplicationT>(application: ApplicationT?) where ApplicationT : ApplicationProtocol
  • setAttachedTo(attachWidget:) Extension method

    Marks window as attached to attach_widget. This creates a logical binding between the window and the widget it belongs to, which is used by GTK+ to propagate information such as styling or accessibility to window as if it was a children of attach_widget.

    Examples of places where specifying this relation is useful are for instance a GtkMenu created by a GtkComboBox, a completion popup window created by GtkEntry or a typeahead search entry created by GtkTreeView.

    Note that this function should not be confused with gtk_window_set_transient_for(), which specifies a window manager relation between two toplevels instead.

    Passing nil for attach_widget detaches the window.

    Declaration

    Swift

    @inlinable
    func setAttachedTo(attachWidget: WidgetRef? = nil)
  • setAttachedTo(attachWidget:) Extension method

    Marks window as attached to attach_widget. This creates a logical binding between the window and the widget it belongs to, which is used by GTK+ to propagate information such as styling or accessibility to window as if it was a children of attach_widget.

    Examples of places where specifying this relation is useful are for instance a GtkMenu created by a GtkComboBox, a completion popup window created by GtkEntry or a typeahead search entry created by GtkTreeView.

    Note that this function should not be confused with gtk_window_set_transient_for(), which specifies a window manager relation between two toplevels instead.

    Passing nil for attach_widget detaches the window.

    Declaration

    Swift

    @inlinable
    func setAttachedTo<WidgetT>(attachWidget: WidgetT?) where WidgetT : WidgetProtocol
  • setDecorated(setting:) Extension method

    By default, windows are decorated with a title bar, resize controls, etc. Some window managers allow GTK+ to disable these decorations, creating a borderless window. If you set the decorated property to false using this function, GTK+ will do its best to convince the window manager not to decorate the window. Depending on the system, this function may not have any effect when called on a window that is already visible, so you should call it before calling gtk_widget_show().

    On Windows, this function always works, since there’s no window manager policy involved.

    Declaration

    Swift

    @inlinable
    func setDecorated(setting: Bool)
  • setDefault(defaultWidget:) Extension method

    The default widget is the widget that’s activated when the user presses Enter in a dialog (for example). This function sets or unsets the default widget for a GtkWindow. When setting (rather than unsetting) the default widget it’s generally easier to call gtk_widget_grab_default() on the widget. Before making a widget the default widget, you must call gtk_widget_set_can_default() on the widget you’d like to make the default.

    Declaration

    Swift

    @inlinable
    func setDefault(defaultWidget: WidgetRef? = nil)
  • setDefault(defaultWidget:) Extension method

    The default widget is the widget that’s activated when the user presses Enter in a dialog (for example). This function sets or unsets the default widget for a GtkWindow. When setting (rather than unsetting) the default widget it’s generally easier to call gtk_widget_grab_default() on the widget. Before making a widget the default widget, you must call gtk_widget_set_can_default() on the widget you’d like to make the default.

    Declaration

    Swift

    @inlinable
    func setDefault<WidgetT>(defaultWidget: WidgetT?) where WidgetT : WidgetProtocol
  • Like gtk_window_set_default_size(), but width and height are interpreted in terms of the base size and increment set with gtk_window_set_geometry_hints.

    set_default_geometry is deprecated: This function does nothing. If you want to set a default size, use gtk_window_set_default_size() instead.

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func setDefaultGeometry(width: Int, height: Int)
  • Sets the default size of a window. If the window’s “natural” size (its size request) is larger than the default, the default will be ignored. More generally, if the default size does not obey the geometry hints for the window (gtk_window_set_geometry_hints() can be used to set these explicitly), the default size will be clamped to the nearest permitted size.

    Unlike gtk_widget_set_size_request(), which sets a size request for a widget and thus would keep users from shrinking the window, this function only sets the initial size, just as if the user had resized the window themselves. Users can still shrink the window again as they normally would. Setting a default size of -1 means to use the “natural” default size (the size request of the window).

    For more control over a window’s initial size and how resizing works, investigate gtk_window_set_geometry_hints().

    For some uses, gtk_window_resize() is a more appropriate function. gtk_window_resize() changes the current size of the window, rather than the size to be used on initial display. gtk_window_resize() always affects the window itself, not the geometry widget.

    The default size of a window only affects the first time a window is shown; if a window is hidden and re-shown, it will remember the size it had prior to hiding, rather than using the default size.

    Windows can’t actually be 0x0 in size, they must be at least 1x1, but passing 0 for width and height is OK, resulting in a 1x1 default size.

    If you use this function to reestablish a previously saved window size, note that the appropriate size to save is the one returned by gtk_window_get_size(). Using the window allocation directly will not work in all circumstances and can lead to growing or shrinking windows.

    Declaration

    Swift

    @inlinable
    func setDefaultSize(width: Int, height: Int)
  • setDeletable(setting:) Extension method

    By default, windows have a close button in the window frame. Some window managers allow GTK+ to disable this button. If you set the deletable property to false using this function, GTK+ will do its best to convince the window manager not to show a close button. Depending on the system, this function may not have any effect when called on a window that is already visible, so you should call it before calling gtk_widget_show().

    On Windows, this function always works, since there’s no window manager policy involved.

    Declaration

    Swift

    @inlinable
    func setDeletable(setting: Bool)
  • If setting is true, then destroying the transient parent of window will also destroy window itself. This is useful for dialogs that shouldn’t persist beyond the lifetime of the main window they’re associated with, for example.

    Declaration

    Swift

    @inlinable
    func setDestroyWithParent(setting: Bool)
  • set(focus:) Extension method

    If focus is not the current focus widget, and is focusable, sets it as the focus widget for the window. If focus is nil, unsets the focus widget for this window. To set the focus to a particular widget in the toplevel, it is usually more convenient to use gtk_widget_grab_focus() instead of this function.

    Declaration

    Swift

    @inlinable
    func set(focus: WidgetRef? = nil)
  • set(focus:) Extension method

    If focus is not the current focus widget, and is focusable, sets it as the focus widget for the window. If focus is nil, unsets the focus widget for this window. To set the focus to a particular widget in the toplevel, it is usually more convenient to use gtk_widget_grab_focus() instead of this function.

    Declaration

    Swift

    @inlinable
    func set<WidgetT>(focus: WidgetT?) where WidgetT : WidgetProtocol
  • setFocusOnMap(setting:) Extension method

    Windows may set a hint asking the desktop environment not to receive the input focus when the window is mapped. This function sets this hint.

    Declaration

    Swift

    @inlinable
    func setFocusOnMap(setting: Bool)
  • setFocusVisible(setting:) Extension method

    Sets the GtkWindow:focus-visible property.

    Declaration

    Swift

    @inlinable
    func setFocusVisible(setting: Bool)
  • This function sets up hints about how a window can be resized by the user. You can set a minimum and maximum size; allowed resize increments (e.g. for xterm, you can only resize by the size of a character); aspect ratios; and more. See the GdkGeometry struct.

    Declaration

    Swift

    @inlinable
    func setGeometryHints(geometryWidget: WidgetRef? = nil, geometry: Gdk.GeometryRef? = nil, geomMask: Gdk.WindowHints)
  • This function sets up hints about how a window can be resized by the user. You can set a minimum and maximum size; allowed resize increments (e.g. for xterm, you can only resize by the size of a character); aspect ratios; and more. See the GdkGeometry struct.

    Declaration

    Swift

    @inlinable
    func setGeometryHints<GeometryT, WidgetT>(geometryWidget: WidgetT?, geometry: GeometryT?, geomMask: Gdk.WindowHints) where GeometryT : GeometryProtocol, WidgetT : WidgetProtocol
  • set(gravity:) Extension method

    Window gravity defines the meaning of coordinates passed to gtk_window_move(). See gtk_window_move() and GdkGravity for more details.

    The default window gravity is GDK_GRAVITY_NORTH_WEST which will typically “do what you mean.”

    Declaration

    Swift

    @inlinable
    func set(gravity: GdkGravity)
  • setHasResizeGrip(value:) Extension method

    Sets whether window has a corner resize grip.

    Note that the resize grip is only shown if the window is actually resizable and not maximized. Use gtk_window_resize_grip_is_visible() to find out if the resize grip is currently shown.

    set_has_resize_grip is deprecated: Resize grips have been removed.

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func setHasResizeGrip(value: Bool)
  • setHasUserRefCount(setting:) Extension method

    Tells GTK+ whether to drop its extra reference to the window when gtk_widget_destroy() is called.

    This function is only exported for the benefit of language bindings which may need to keep the window alive until their wrapper object is garbage collected. There is no justification for ever calling this function in an application.

    Declaration

    Swift

    @inlinable
    func setHasUserRefCount(setting: Bool)
  • If setting is true, then window will request that it’s titlebar should be hidden when maximized. This is useful for windows that don’t convey any information other than the application name in the titlebar, to put the available screen space to better use. If the underlying window system does not support the request, the setting will not have any effect.

    Note that custom titlebars set with gtk_window_set_titlebar() are not affected by this. The application is in full control of their content and visibility anyway.

    Declaration

    Swift

    @inlinable
    func setHideTitlebarWhenMaximized(setting: Bool)
  • set(icon:) Extension method

    Sets up the icon representing a GtkWindow. This icon is used when the window is minimized (also known as iconified). Some window managers or desktop environments may also place it in the window frame, or display it in other contexts. On others, the icon is not used at all, so your mileage may vary.

    The icon should be provided in whatever size it was naturally drawn; that is, don’t scale the image before passing it to GTK+. Scaling is postponed until the last minute, when the desired final size is known, to allow best quality.

    If you have your icon hand-drawn in multiple sizes, use gtk_window_set_icon_list(). Then the best size will be used.

    This function is equivalent to calling gtk_window_set_icon_list() with a 1-element list.

    See also gtk_window_set_default_icon_list() to set the icon for all windows in your application in one go.

    Declaration

    Swift

    @inlinable
    func set(icon: PixbufRef? = nil)
  • set(icon:) Extension method

    Sets up the icon representing a GtkWindow. This icon is used when the window is minimized (also known as iconified). Some window managers or desktop environments may also place it in the window frame, or display it in other contexts. On others, the icon is not used at all, so your mileage may vary.

    The icon should be provided in whatever size it was naturally drawn; that is, don’t scale the image before passing it to GTK+. Scaling is postponed until the last minute, when the desired final size is known, to allow best quality.

    If you have your icon hand-drawn in multiple sizes, use gtk_window_set_icon_list(). Then the best size will be used.

    This function is equivalent to calling gtk_window_set_icon_list() with a 1-element list.

    See also gtk_window_set_default_icon_list() to set the icon for all windows in your application in one go.

    Declaration

    Swift

    @inlinable
    func set<PixbufT>(icon: PixbufT?) where PixbufT : PixbufProtocol
  • setIconFromFile(filename:) Extension method

    Sets the icon for window. Warns on failure if err is nil.

    This function is equivalent to calling gtk_window_set_icon() with a pixbuf created by loading the image from filename.

    Declaration

    Swift

    @inlinable
    func setIconFromFile(filename: UnsafePointer<gchar>!) throws -> Bool
  • setIcon(list:) Extension method

    Sets up the icon representing a GtkWindow. The icon is used when the window is minimized (also known as iconified). Some window managers or desktop environments may also place it in the window frame, or display it in other contexts. On others, the icon is not used at all, so your mileage may vary.

    gtk_window_set_icon_list() allows you to pass in the same icon in several hand-drawn sizes. The list should contain the natural sizes your icon is available in; that is, don’t scale the image before passing it to GTK+. Scaling is postponed until the last minute, when the desired final size is known, to allow best quality.

    By passing several sizes, you may improve the final image quality of the icon, by reducing or eliminating automatic image scaling.

    Recommended sizes to provide: 16x16, 32x32, 48x48 at minimum, and larger images (64x64, 128x128) if you have them.

    See also gtk_window_set_default_icon_list() to set the icon for all windows in your application in one go.

    Note that transient windows (those who have been set transient for another window using gtk_window_set_transient_for()) will inherit their icon from their transient parent. So there’s no need to explicitly set the icon on transient windows.

    Declaration

    Swift

    @inlinable
    func setIcon<ListT>(list: ListT) where ListT : ListProtocol
  • setIcon(name:) Extension method

    Sets the icon for the window from a named themed icon. See the docs for GtkIconTheme for more details. On some platforms, the window icon is not used at all.

    Note that this has nothing to do with the WM_ICON_NAME property which is mentioned in the ICCCM.

    Declaration

    Swift

    @inlinable
    func setIcon(name: UnsafePointer<gchar>? = nil)
  • setKeepAbove(setting:) Extension method

    Asks to keep window above, so that it stays on top. Note that you shouldn’t assume the window is definitely above afterward, because other entities (e.g. the user or window manager) could not keep it above, and not all window managers support keeping windows above. But normally the window will end kept above. Just don’t write code that crashes if not.

    It’s permitted to call this function before showing a window, in which case the window will be kept above when it appears onscreen initially.

    You can track the above state via the “window-state-event” signal on GtkWidget.

    Note that, according to the Extended Window Manager Hints Specification, the above state is mainly meant for user preferences and should not be used by applications e.g. for drawing attention to their dialogs.

    Declaration

    Swift

    @inlinable
    func setKeepAbove(setting: Bool)
  • setKeepBelow(setting:) Extension method

    Asks to keep window below, so that it stays in bottom. Note that you shouldn’t assume the window is definitely below afterward, because other entities (e.g. the user or window manager) could not keep it below, and not all window managers support putting windows below. But normally the window will be kept below. Just don’t write code that crashes if not.

    It’s permitted to call this function before showing a window, in which case the window will be kept below when it appears onscreen initially.

    You can track the below state via the “window-state-event” signal on GtkWidget.

    Note that, according to the Extended Window Manager Hints Specification, the above state is mainly meant for user preferences and should not be used by applications e.g. for drawing attention to their dialogs.

    Declaration

    Swift

    @inlinable
    func setKeepBelow(setting: Bool)
  • setMnemonic(modifier:) Extension method

    Sets the mnemonic modifier for this window.

    Declaration

    Swift

    @inlinable
    func setMnemonic(modifier: Gdk.ModifierType)
  • Sets the GtkWindow:mnemonics-visible property.

    Declaration

    Swift

    @inlinable
    func setMnemonicsVisible(setting: Bool)
  • set(modal:) Extension method

    Sets a window modal or non-modal. Modal windows prevent interaction with other windows in the same application. To keep modal dialogs on top of main application windows, use gtk_window_set_transient_for() to make the dialog transient for the parent; most window managers will then disallow lowering the dialog below the parent.

    Declaration

    Swift

    @inlinable
    func set(modal: Bool)
  • set(opacity:) Extension method

    Request the windowing system to make window partially transparent, with opacity 0 being fully transparent and 1 fully opaque. (Values of the opacity parameter are clamped to the [0,1] range.) On X11 this has any effect only on X screens with a compositing manager running. See gtk_widget_is_composited(). On Windows it should work always.

    Note that setting a window’s opacity after the window has been shown causes it to flicker once on Windows.

    set_opacity is deprecated: Use gtk_widget_set_opacity instead.

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func set(opacity: Double)
  • set(position:) Extension method

    Sets a position constraint for this window. If the old or new constraint is GTK_WIN_POS_CENTER_ALWAYS, this will also cause the window to be repositioned to satisfy the new constraint.

    Declaration

    Swift

    @inlinable
    func set(position: GtkWindowPosition)
  • set(resizable:) Extension method

    Sets whether the user can resize a window. Windows are user resizable by default.

    Declaration

    Swift

    @inlinable
    func set(resizable: Bool)
  • set(role:) Extension method

    This function is only useful on X11, not with other GTK+ targets.

    In combination with the window title, the window role allows a window manager to identify “the same” window when an application is restarted. So for example you might set the “toolbox” role on your app’s toolbox window, so that when the user restarts their session, the window manager can put the toolbox back in the same place.

    If a window already has a unique title, you don’t need to set the role, since the WM can use the title to identify the window when restoring the session.

    Declaration

    Swift

    @inlinable
    func set(role: UnsafePointer<gchar>!)
  • set(screen:) Extension method

    Sets the GdkScreen where the window is displayed; if the window is already mapped, it will be unmapped, and then remapped on the new screen.

    Declaration

    Swift

    @inlinable
    func set<ScreenT>(screen: ScreenT) where ScreenT : ScreenProtocol
  • setSkipPagerHint(setting:) Extension method

    Windows may set a hint asking the desktop environment not to display the window in the pager. This function sets this hint. (A “pager” is any desktop navigation tool such as a workspace switcher that displays a thumbnail representation of the windows on the screen.)

    Declaration

    Swift

    @inlinable
    func setSkipPagerHint(setting: Bool)
  • setSkipTaskbarHint(setting:) Extension method

    Windows may set a hint asking the desktop environment not to display the window in the task bar. This function sets this hint.

    Declaration

    Swift

    @inlinable
    func setSkipTaskbarHint(setting: Bool)
  • set(startupID:) Extension method

    Startup notification identifiers are used by desktop environment to track application startup, to provide user feedback and other features. This function changes the corresponding property on the underlying GdkWindow. Normally, startup identifier is managed automatically and you should only use this function in special cases like transferring focus from other processes. You should use this function before calling gtk_window_present() or any equivalent function generating a window map event.

    This function is only useful on X11, not with other GTK+ targets.

    Declaration

    Swift

    @inlinable
    func set(startupID: UnsafePointer<gchar>!)
  • set(title:) Extension method

    Sets the title of the GtkWindow. The title of a window will be displayed in its title bar; on the X Window System, the title bar is rendered by the window manager, so exactly how the title appears to users may vary according to a user’s exact configuration. The title should help a user distinguish this window from other windows they may have open. A good title might include the application name and current document filename, for example.

    Declaration

    Swift

    @inlinable
    func set(title: UnsafePointer<gchar>!)
  • set(titlebar:) Extension method

    Sets a custom titlebar for window.

    A typical widget used here is GtkHeaderBar, as it provides various features expected of a titlebar while allowing the addition of child widgets to it.

    If you set a custom titlebar, GTK+ will do its best to convince the window manager not to put its own titlebar on the window. Depending on the system, this function may not work for a window that is already visible, so you set the titlebar before calling gtk_widget_show().

    Declaration

    Swift

    @inlinable
    func set(titlebar: WidgetRef? = nil)
  • set(titlebar:) Extension method

    Sets a custom titlebar for window.

    A typical widget used here is GtkHeaderBar, as it provides various features expected of a titlebar while allowing the addition of child widgets to it.

    If you set a custom titlebar, GTK+ will do its best to convince the window manager not to put its own titlebar on the window. Depending on the system, this function may not work for a window that is already visible, so you set the titlebar before calling gtk_widget_show().

    Declaration

    Swift

    @inlinable
    func set<WidgetT>(titlebar: WidgetT?) where WidgetT : WidgetProtocol
  • setTransientFor(parent:) Extension method

    Dialog windows should be set transient for the main application window they were spawned from. This allows window managers to e.g. keep the dialog on top of the main window, or center the dialog over the main window. gtk_dialog_new_with_buttons() and other convenience functions in GTK+ will sometimes call gtk_window_set_transient_for() on your behalf.

    Passing nil for parent unsets the current transient window.

    On Wayland, this function can also be used to attach a new GTK_WINDOW_POPUP to a GTK_WINDOW_TOPLEVEL parent already mapped on screen so that the GTK_WINDOW_POPUP will be created as a subsurface-based window GDK_WINDOW_SUBSURFACE which can be positioned at will relatively to the GTK_WINDOW_TOPLEVEL surface.

    On Windows, this function puts the child window on top of the parent, much as the window manager would have done on X.

    Declaration

    Swift

    @inlinable
    func setTransientFor(parent: WindowRef? = nil)
  • setTransientFor(parent:) Extension method

    Dialog windows should be set transient for the main application window they were spawned from. This allows window managers to e.g. keep the dialog on top of the main window, or center the dialog over the main window. gtk_dialog_new_with_buttons() and other convenience functions in GTK+ will sometimes call gtk_window_set_transient_for() on your behalf.

    Passing nil for parent unsets the current transient window.

    On Wayland, this function can also be used to attach a new GTK_WINDOW_POPUP to a GTK_WINDOW_TOPLEVEL parent already mapped on screen so that the GTK_WINDOW_POPUP will be created as a subsurface-based window GDK_WINDOW_SUBSURFACE which can be positioned at will relatively to the GTK_WINDOW_TOPLEVEL surface.

    On Windows, this function puts the child window on top of the parent, much as the window manager would have done on X.

    Declaration

    Swift

    @inlinable
    func setTransientFor<WindowT>(parent: WindowT?) where WindowT : WindowProtocol
  • setType(hint:) Extension method

    By setting the type hint for the window, you allow the window manager to decorate and handle the window in a way which is suitable to the function of the window in your application.

    This function should be called before the window becomes visible.

    gtk_dialog_new_with_buttons() and other convenience functions in GTK+ will sometimes call gtk_window_set_type_hint() on your behalf.

    Declaration

    Swift

    @inlinable
    func setType(hint: GdkWindowTypeHint)
  • setUrgencyHint(setting:) Extension method

    Windows may set a hint asking the desktop environment to draw the users attention to the window. This function sets this hint.

    Declaration

    Swift

    @inlinable
    func setUrgencyHint(setting: Bool)
  • Don’t use this function. It sets the X Window System “class” and “name” hints for a window. According to the ICCCM, you should always set these to the same value for all windows in an application, and GTK+ sets them to that value by default, so calling this function is sort of pointless. However, you may want to call gtk_window_set_role() on each window in your application, for the benefit of the session manager. Setting the role allows the window manager to restore window positions when loading a saved session.

    set_wmclass is deprecated: This method is deprecated.

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func setWmclass(wmclassName: UnsafePointer<gchar>!, wmclassClass: UnsafePointer<gchar>!)
  • stick() Extension method

    Asks to stick window, which means that it will appear on all user desktops. Note that you shouldn’t assume the window is definitely stuck afterward, because other entities (e.g. the user or window manager could unstick it again, and some window managers do not support sticking windows. But normally the window will end up stuck. Just don’t write code that crashes if not.

    It’s permitted to call this function before showing a window.

    You can track stickiness via the “window-state-event” signal on GtkWidget.

    Declaration

    Swift

    @inlinable
    func stick()
  • unfullscreen() Extension method

    Asks to toggle off the fullscreen state for window. Note that you shouldn’t assume the window is definitely not full screen afterward, because other entities (e.g. the user or window manager) could fullscreen it again, and not all window managers honor requests to unfullscreen windows. But normally the window will end up restored to its normal state. Just don’t write code that crashes if not.

    You can track the fullscreen state via the “window-state-event” signal on GtkWidget.

    Declaration

    Swift

    @inlinable
    func unfullscreen()
  • unmaximize() Extension method

    Asks to unmaximize window. Note that you shouldn’t assume the window is definitely unmaximized afterward, because other entities (e.g. the user or window manager) could maximize it again, and not all window managers honor requests to unmaximize. But normally the window will end up unmaximized. Just don’t write code that crashes if not.

    You can track maximization via the “window-state-event” signal on GtkWidget.

    Declaration

    Swift

    @inlinable
    func unmaximize()
  • unstick() Extension method

    Asks to unstick window, which means that it will appear on only one of the user’s desktops. Note that you shouldn’t assume the window is definitely unstuck afterward, because other entities (e.g. the user or window manager) could stick it again. But normally the window will end up stuck. Just don’t write code that crashes if not.

    You can track stickiness via the “window-state-event” signal on GtkWidget.

    Declaration

    Swift

    @inlinable
    func unstick()
  • Runs a page setup dialog, letting the user modify the values from page_setup. If the user cancels the dialog, the returned GtkPageSetup is identical to the passed in page_setup, otherwise it contains the modifications done in the dialog.

    Note that this function may use a recursive mainloop to show the page setup dialog. See gtk_print_run_page_setup_dialog_async() if this is a problem.

    Declaration

    Swift

    @inlinable
    func printRunPageSetupDialog<PrintSettingsT>(pageSetup: PageSetupRef? = nil, settings: PrintSettingsT) -> PageSetupRef! where PrintSettingsT : PrintSettingsProtocol
  • Runs a page setup dialog, letting the user modify the values from page_setup. If the user cancels the dialog, the returned GtkPageSetup is identical to the passed in page_setup, otherwise it contains the modifications done in the dialog.

    Note that this function may use a recursive mainloop to show the page setup dialog. See gtk_print_run_page_setup_dialog_async() if this is a problem.

    Declaration

    Swift

    @inlinable
    func printRunPageSetupDialog<PageSetupT, PrintSettingsT>(pageSetup: PageSetupT?, settings: PrintSettingsT) -> PageSetupRef! where PageSetupT : PageSetupProtocol, PrintSettingsT : PrintSettingsProtocol
  • Runs a page setup dialog, letting the user modify the values from page_setup.

    In contrast to gtk_print_run_page_setup_dialog(), this function returns after showing the page setup dialog on platforms that support this, and calls done_cb from a signal handler for the response signal of the dialog.

    Declaration

    Swift

    @inlinable
    func printRunPageSetupDialogAsync<PrintSettingsT>(pageSetup: PageSetupRef? = nil, settings: PrintSettingsT, doneCb: GtkPageSetupDoneFunc?, data: gpointer! = nil) where PrintSettingsT : PrintSettingsProtocol
  • Runs a page setup dialog, letting the user modify the values from page_setup.

    In contrast to gtk_print_run_page_setup_dialog(), this function returns after showing the page setup dialog on platforms that support this, and calls done_cb from a signal handler for the response signal of the dialog.

    Declaration

    Swift

    @inlinable
    func printRunPageSetupDialogAsync<PageSetupT, PrintSettingsT>(pageSetup: PageSetupT?, settings: PrintSettingsT, doneCb: GtkPageSetupDoneFunc?, data: gpointer! = nil) where PageSetupT : PageSetupProtocol, PrintSettingsT : PrintSettingsProtocol
  • This is a convenience function for launching the default application to show the uri. The uri must be of a form understood by GIO (i.e. you need to install gvfs to get support for uri schemes such as http:// or ftp://, as only local files are handled by GIO itself). Typical examples are

    • file:///home/gnome/pict.jpg
    • http://www.gnome.org
    • mailto:megnome.org``

    Ideally the timestamp is taken from the event triggering the gtk_show_uri() call. If timestamp is not known you can take GDK_CURRENT_TIME.

    This is the recommended call to be used as it passes information necessary for sandbox helpers to parent their dialogs properly.

    Declaration

    Swift

    @inlinable
    func showURIOnWindow(uri: UnsafePointer<CChar>!, timestamp: guint32) throws -> Bool
  • acceptFocus Extension method

    Gets the value set by gtk_window_set_accept_focus().

    Declaration

    Swift

    @inlinable
    var acceptFocus: Bool { get nonmutating set }
  • application Extension method

    The GtkApplication associated with the window.

    The application will be kept alive for at least as long as it has any windows associated with it (see g_application_hold() for a way to keep it alive without windows).

    Normally, the connection between the application and the window will remain until the window is destroyed, but you can explicitly remove it by setting the :application property to nil.

    Declaration

    Swift

    @inlinable
    var application: ApplicationRef! { get nonmutating set }
  • attachedTo Extension method

    Fetches the attach widget for this window. See gtk_window_set_attached_to().

    Declaration

    Swift

    @inlinable
    var attachedTo: WidgetRef! { get nonmutating set }
  • decorated Extension method

    Whether the window should be decorated by the window manager.

    Declaration

    Swift

    @inlinable
    var decorated: Bool { get nonmutating set }
  • defaultWidget Extension method

    Returns the default widget for window. See gtk_window_set_default() for more details.

    Declaration

    Swift

    @inlinable
    var defaultWidget: WidgetRef! { get }
  • deletable Extension method

    Whether the window frame should have a close button.

    Declaration

    Swift

    @inlinable
    var deletable: Bool { get nonmutating set }
  • destroyWithParent Extension method

    Returns whether the window will be destroyed with its transient parent. See gtk_window_set_destroy_with_parent ().

    Declaration

    Swift

    @inlinable
    var destroyWithParent: Bool { get nonmutating set }
  • focus Extension method

    Retrieves the current focused widget within the window. Note that this is the widget that would have the focus if the toplevel window focused; if the toplevel window is not focused then gtk_widget_has_focus (widget) will not be true for the widget.

    Declaration

    Swift

    @inlinable
    var focus: WidgetRef! { get nonmutating set }
  • focusOnMap Extension method

    Gets the value set by gtk_window_set_focus_on_map().

    Declaration

    Swift

    @inlinable
    var focusOnMap: Bool { get nonmutating set }
  • focusVisible Extension method

    Gets the value of the GtkWindow:focus-visible property.

    Declaration

    Swift

    @inlinable
    var focusVisible: Bool { get nonmutating set }
  • gravity Extension method

    The window gravity of the window. See gtk_window_move() and GdkGravity for more details about window gravity.

    Declaration

    Swift

    @inlinable
    var gravity: GdkGravity { get nonmutating set }
  • group Extension method

    Returns the group for window or the default group, if window is nil or if window does not have an explicit window group.

    Declaration

    Swift

    @inlinable
    var group: WindowGroupRef! { get }
  • hasResizeGrip Extension method

    Determines whether the window may have a resize grip.

    get_has_resize_grip is deprecated: Resize grips have been removed.

    Declaration

    Swift

    @inlinable
    var hasResizeGrip: Bool { get nonmutating set }
  • hideTitlebarWhenMaximized Extension method

    Returns whether the window has requested to have its titlebar hidden when maximized. See gtk_window_set_hide_titlebar_when_maximized ().

    Declaration

    Swift

    @inlinable
    var hideTitlebarWhenMaximized: Bool { get nonmutating set }
  • icon Extension method

    Undocumented

    Declaration

    Swift

    @inlinable
    var icon: PixbufRef! { get nonmutating set }
  • iconList Extension method

    Retrieves the list of icons set by gtk_window_set_icon_list(). The list is copied, but the reference count on each member won’t be incremented.

    Declaration

    Swift

    @inlinable
    var iconList: GLib.ListRef! { get nonmutating set }
  • iconName Extension method

    Returns the name of the themed icon for the window, see gtk_window_set_icon_name().

    Declaration

    Swift

    @inlinable
    var iconName: String! { get nonmutating set }
  • isActive Extension method

    Returns whether the window is part of the current active toplevel. (That is, the toplevel window receiving keystrokes.) The return value is true if the window is active toplevel itself, but also if it is, say, a GtkPlug embedded in the active toplevel. You might use this function if you wanted to draw a widget differently in an active window from a widget in an inactive window. See gtk_window_has_toplevel_focus()

    Declaration

    Swift

    @inlinable
    var isActive: Bool { get }
  • isMaximized Extension method

    Retrieves the current maximized state of window.

    Note that since maximization is ultimately handled by the window manager and happens asynchronously to an application request, you shouldn’t assume the return value of this function changing immediately (or at all), as an effect of calling gtk_window_maximize() or gtk_window_unmaximize().

    Declaration

    Swift

    @inlinable
    var isMaximized: Bool { get }
  • mnemonicModifier Extension method

    Returns the mnemonic modifier for this window. See gtk_window_set_mnemonic_modifier().

    Declaration

    Swift

    @inlinable
    var mnemonicModifier: Gdk.ModifierType { get nonmutating set }
  • mnemonicsVisible Extension method

    Gets the value of the GtkWindow:mnemonics-visible property.

    Declaration

    Swift

    @inlinable
    var mnemonicsVisible: Bool { get nonmutating set }
  • modal Extension method

    Undocumented

    Declaration

    Swift

    @inlinable
    var modal: Bool { get nonmutating set }
  • opacity Extension method

    Fetches the requested opacity for this window. See gtk_window_set_opacity().

    get_opacity is deprecated: Use gtk_widget_get_opacity instead.

    Declaration

    Swift

    @inlinable
    var opacity: Double { get nonmutating set }
  • resizable Extension method

    Undocumented

    Declaration

    Swift

    @inlinable
    var resizable: Bool { get nonmutating set }
  • role Extension method

    Undocumented

    Declaration

    Swift

    @inlinable
    var role: String! { get nonmutating set }
  • screen Extension method

    Undocumented

    Declaration

    Swift

    @inlinable
    var screen: Gdk.ScreenRef! { get nonmutating set }
  • skipPagerHint Extension method

    Gets the value set by gtk_window_set_skip_pager_hint().

    Declaration

    Swift

    @inlinable
    var skipPagerHint: Bool { get nonmutating set }
  • skipTaskbarHint Extension method

    Gets the value set by gtk_window_set_skip_taskbar_hint()

    Declaration

    Swift

    @inlinable
    var skipTaskbarHint: Bool { get nonmutating set }
  • title Extension method

    Undocumented

    Declaration

    Swift

    @inlinable
    var title: String! { get nonmutating set }
  • titlebar Extension method

    Returns the custom titlebar that has been set with gtk_window_set_titlebar().

    Declaration

    Swift

    @inlinable
    var titlebar: WidgetRef! { get nonmutating set }
  • transientFor Extension method

    Fetches the transient parent for this window. See gtk_window_set_transient_for().

    Declaration

    Swift

    @inlinable
    var transientFor: WindowRef! { get nonmutating set }
  • typeHint Extension method

    Gets the type hint for this window. See gtk_window_set_type_hint().

    Declaration

    Swift

    @inlinable
    var typeHint: GdkWindowTypeHint { get nonmutating set }
  • urgencyHint Extension method

    Gets the value set by gtk_window_set_urgency_hint()

    Declaration

    Swift

    @inlinable
    var urgencyHint: Bool { get nonmutating set }
  • windowType Extension method

    Gets the type of the window. See GtkWindowType.

    Declaration

    Swift

    @inlinable
    var windowType: GtkWindowType { get }
  • bin Extension method

    Undocumented

    Declaration

    Swift

    @inlinable
    var bin: GtkBin { get }
  • size Extension method

    size of the window

    Declaration

    Swift

    @inlinable
    var size: (width: Int, height: Int) { get }