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.

  • ptr

    Untyped pointer to the underlying GdkEventExpose instance.

    Declaration

    Swift

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

    Typed 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)

EventExpose Record: EventExposeProtocol extension (methods and fields)

  • type Extension method

    the type of the event (GDK_EXPOSE or GDK_DAMAGE).

    Declaration

    Swift

    @inlinable
    var type: GdkEventType { get set }
  • window Extension method

    the window which received the event.

    Declaration

    Swift

    @inlinable
    var window: WindowRef! { get set }
  • sendEvent Extension method

    true if the event was sent explicitly.

    Declaration

    Swift

    @inlinable
    var sendEvent: gint8 { get set }
  • area Extension method

    bounding box of region.

    Declaration

    Swift

    @inlinable
    var area: GdkRectangle { get set }
  • region Extension method

    the region that needs to be redrawn.

    Declaration

    Swift

    @inlinable
    var region: RegionRef! { get set }
  • count Extension method

    the number of contiguous GDK_EXPOSE events following this one. The only use for this is “exposure compression”, i.e. handling all contiguous GDK_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 }