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
GdkWindowAttr
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
_ptr
Default implementationTyped 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)
-
title
Extension methodtitle of the window (for toplevel windows)
Declaration
Swift
@inlinable var title: UnsafeMutablePointer<gchar>! { get set }
-
eventMask
Extension methodevent mask (see
gdk_window_set_events()
)Declaration
Swift
@inlinable var eventMask: gint { get set }
-
x
Extension methodX coordinate relative to parent window (see
gdk_window_move()
)Declaration
Swift
@inlinable var x: gint { get set }
-
y
Extension methodY coordinate relative to parent window (see
gdk_window_move()
)Declaration
Swift
@inlinable var y: gint { get set }
-
width
Extension methodwidth of window
Declaration
Swift
@inlinable var width: gint { get set }
-
height
Extension methodheight of window
Declaration
Swift
@inlinable var height: gint { get set }
-
wclass
Extension methodGDK_INPUT_OUTPUT
(normal window) orGDK_INPUT_ONLY
(invisible window that receives events)Declaration
Swift
@inlinable var wclass: GdkWindowWindowClass { get set }
-
visual
Extension methodGdkVisual
for windowDeclaration
Swift
@inlinable var visual: VisualRef! { get set }
-
windowType
Extension methodtype of window
Declaration
Swift
@inlinable var windowType: GdkWindowType { get set }
-
cursor
Extension methodcursor for the window (see
gdk_window_set_cursor()
)Declaration
Swift
@inlinable var cursor: CursorRef! { get set }
-
wmclassName
Extension methoddon’t use (see
gtk_window_set_wmclass()
)Declaration
Swift
@inlinable var wmclassName: UnsafeMutablePointer<gchar>! { get set }
-
wmclassClass
Extension methoddon’t use (see
gtk_window_set_wmclass()
)Declaration
Swift
@inlinable var wmclassClass: UnsafeMutablePointer<gchar>! { get set }
-
overrideRedirect
Extension methodtrue
to bypass the window managerDeclaration
Swift
@inlinable var overrideRedirect: gboolean { get set }
-
typeHint
Extension methoda hint of the function of the window
Declaration
Swift
@inlinable var typeHint: GdkWindowTypeHint { get set }