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
GdkEventExpose
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
_ptr
Default implementationTyped pointer to the underlying
GdkEventExpose
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GdkEventExpose
instance.Declaration
Swift
var _ptr: UnsafeMutablePointer<GdkEventExpose>! { get }
-
Required Initialiser for types conforming to
EventExposeProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
type
Extension methodthe type of the event (
GDK_EXPOSE
orGDK_DAMAGE
).Declaration
Swift
@inlinable var type: GdkEventType { get set }
-
window
Extension methodthe window which received the event.
Declaration
Swift
@inlinable var window: WindowRef! { get set }
-
sendEvent
Extension methodtrue
if the event was sent explicitly.Declaration
Swift
@inlinable var sendEvent: gint8 { get set }
-
area
Extension methodbounding box of
region
.Declaration
Swift
@inlinable var area: GdkRectangle { get set }
-
region
Extension methodthe region that needs to be redrawn.
Declaration
Swift
@inlinable var region: RegionRef! { get set }
-
count
Extension methodthe number of contiguous
GDK_EXPOSE
events following this one. The only use for this is “exposure compression”, i.e. handling all contiguousGDK_EXPOSE
events in one go, though GDK performs some exposure compression so this is not normally needed.Declaration
Swift
@inlinable var count: gint { get set }