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.
-
Untyped pointer to the underlying
GdkWindowAttrinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
_ptrDefault implementationTyped pointer to the underlying
GdkWindowAttrinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GdkWindowAttrinstance.Declaration
Swift
var _ptr: UnsafeMutablePointer<GdkWindowAttr>! { get } -
Required Initialiser for types conforming to
WindowAttrProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
titleExtension methodtitle of the window (for toplevel windows)
Declaration
Swift
@inlinable var title: UnsafeMutablePointer<gchar>! { get set } -
eventMaskExtension methodevent mask (see
gdk_window_set_events())Declaration
Swift
@inlinable var eventMask: gint { get set } -
xExtension methodX coordinate relative to parent window (see
gdk_window_move())Declaration
Swift
@inlinable var x: gint { get set } -
yExtension methodY coordinate relative to parent window (see
gdk_window_move())Declaration
Swift
@inlinable var y: gint { get set } -
widthExtension methodwidth of window
Declaration
Swift
@inlinable var width: gint { get set } -
heightExtension methodheight of window
Declaration
Swift
@inlinable var height: gint { get set } -
wclassExtension methodGDK_INPUT_OUTPUT(normal window) orGDK_INPUT_ONLY(invisible window that receives events)Declaration
Swift
@inlinable var wclass: GdkWindowWindowClass { get set } -
visualExtension methodGdkVisualfor windowDeclaration
Swift
@inlinable var visual: VisualRef! { get set } -
windowTypeExtension methodtype of window
Declaration
Swift
@inlinable var windowType: GdkWindowType { get set } -
cursorExtension methodcursor for the window (see
gdk_window_set_cursor())Declaration
Swift
@inlinable var cursor: CursorRef! { get set } -
wmclassNameExtension methoddon’t use (see
gtk_window_set_wmclass())Declaration
Swift
@inlinable var wmclassName: UnsafeMutablePointer<gchar>! { get set } -
wmclassClassExtension methoddon’t use (see
gtk_window_set_wmclass())Declaration
Swift
@inlinable var wmclassClass: UnsafeMutablePointer<gchar>! { get set } -
overrideRedirectExtension methodtrueto bypass the window managerDeclaration
Swift
@inlinable var overrideRedirect: gboolean { get set } -
typeHintExtension methoda hint of the function of the window
Declaration
Swift
@inlinable var typeHint: GdkWindowTypeHint { get set }
View on GitHub
Install in Dash
WindowAttrProtocol Protocol Reference