EventVisibilityProtocol

public protocol EventVisibilityProtocol

The EventVisibilityProtocol protocol exposes the methods and properties of an underlying GdkEventVisibility 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 EventVisibility. Alternatively, use EventVisibilityRef as a lighweight, unowned reference if you already have an instance you just want to use.

Generated when the window visibility status has changed.

  • ptr

    Untyped pointer to the underlying GdkEventVisibility instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GdkEventVisibility instance.

    Default Implementation

    Return the stored, untyped pointer as a typed pointer to the GdkEventVisibility instance.

    Declaration

    Swift

    var _ptr: UnsafeMutablePointer<GdkEventVisibility>! { get }
  • Required Initialiser for types conforming to EventVisibilityProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

EventVisibility Record: EventVisibilityProtocol extension (methods and fields)

  • type Extension method

    the type of the event (GDK_VISIBILITY_NOTIFY).

    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 }
  • state Extension method

    the new visibility state (GDK_VISIBILITY_FULLY_OBSCURED, GDK_VISIBILITY_PARTIAL or GDK_VISIBILITY_UNOBSCURED).

    Declaration

    Swift

    @inlinable
    var state: GdkVisibilityState { get set }