WindowAttrProtocol

public protocol WindowAttrProtocol

The WindowAttrProtocol protocol exposes the methods and properties of an underlying GdkWindowAttr 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 WindowAttr. Alternatively, use WindowAttrRef as a lighweight, unowned reference if you already have an instance you just want to use.

Attributes to use for a newly-created window.

  • ptr

    Untyped pointer to the underlying GdkWindowAttr instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GdkWindowAttr instance.

    Default Implementation

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

    Declaration

    Swift

    var _ptr: UnsafeMutablePointer<GdkWindowAttr>! { get }
  • Required Initialiser for types conforming to WindowAttrProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

WindowAttr Record: WindowAttrProtocol extension (methods and fields)

  • title Extension method

    title of the window (for toplevel windows)

    Declaration

    Swift

    @inlinable
    var title: UnsafeMutablePointer<gchar>! { get set }
  • eventMask Extension method

    event mask (see gdk_window_set_events())

    Declaration

    Swift

    @inlinable
    var eventMask: gint { get set }
  • x Extension method

    X coordinate relative to parent window (see gdk_window_move())

    Declaration

    Swift

    @inlinable
    var x: gint { get set }
  • y Extension method

    Y coordinate relative to parent window (see gdk_window_move())

    Declaration

    Swift

    @inlinable
    var y: gint { get set }
  • width Extension method

    width of window

    Declaration

    Swift

    @inlinable
    var width: gint { get set }
  • height Extension method

    height of window

    Declaration

    Swift

    @inlinable
    var height: gint { get set }
  • wclass Extension method

    GDK_INPUT_OUTPUT (normal window) or GDK_INPUT_ONLY (invisible window that receives events)

    Declaration

    Swift

    @inlinable
    var wclass: GdkWindowWindowClass { get set }
  • visual Extension method

    GdkVisual for window

    Declaration

    Swift

    @inlinable
    var visual: VisualRef! { get set }
  • windowType Extension method

    type of window

    Declaration

    Swift

    @inlinable
    var windowType: GdkWindowType { get set }
  • cursor Extension method

    cursor for the window (see gdk_window_set_cursor())

    Declaration

    Swift

    @inlinable
    var cursor: CursorRef! { get set }
  • wmclassName Extension method

    don’t use (see gtk_window_set_wmclass())

    Declaration

    Swift

    @inlinable
    var wmclassName: UnsafeMutablePointer<gchar>! { get set }
  • wmclassClass Extension method

    don’t use (see gtk_window_set_wmclass())

    Declaration

    Swift

    @inlinable
    var wmclassClass: UnsafeMutablePointer<gchar>! { get set }
  • overrideRedirect Extension method

    true to bypass the window manager

    Declaration

    Swift

    @inlinable
    var overrideRedirect: gboolean { get set }
  • typeHint Extension method

    a hint of the function of the window

    Declaration

    Swift

    @inlinable
    var typeHint: GdkWindowTypeHint { get set }