EventExposeProtocol
public protocol EventExposeProtocol
The EventExposeProtocol protocol exposes the methods and properties of an underlying GdkEventExpose 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 EventExpose.
Alternatively, use EventExposeRef as a lighweight, unowned reference if you already have an instance you just want to use.
Generated when all or part of a window becomes visible and needs to be redrawn.
-
Untyped pointer to the underlying
GdkEventExposeinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
_ptrDefault implementationTyped pointer to the underlying
GdkEventExposeinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GdkEventExposeinstance.Declaration
Swift
var _ptr: UnsafeMutablePointer<GdkEventExpose>! { get } -
Required Initialiser for types conforming to
EventExposeProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
typeExtension methodthe type of the event (
GDK_EXPOSEorGDK_DAMAGE).Declaration
Swift
@inlinable var type: GdkEventType { get set } -
windowExtension methodthe window which received the event.
Declaration
Swift
@inlinable var window: WindowRef! { get set } -
sendEventExtension methodtrueif the event was sent explicitly.Declaration
Swift
@inlinable var sendEvent: gint8 { get set } -
areaExtension methodbounding box of
region.Declaration
Swift
@inlinable var area: GdkRectangle { get set } -
regionExtension methodthe region that needs to be redrawn.
Declaration
Swift
@inlinable var region: RegionRef! { get set } -
countExtension methodthe number of contiguous
GDK_EXPOSEevents following this one. The only use for this is “exposure compression”, i.e. handling all contiguousGDK_EXPOSEevents in one go, though GDK performs some exposure compression so this is not normally needed.Declaration
Swift
@inlinable var count: gint { get set }
View on GitHub
Install in Dash
EventExposeProtocol Protocol Reference