FocusEventProtocol

public protocol FocusEventProtocol : EventProtocol

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

An event related to a keyboard focus change.

  • ptr

    Untyped pointer to the underlying GdkFocusEvent instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GdkFocusEvent instance.

    Default Implementation

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

    Declaration

    Swift

    var focus_event_ptr: UnsafeMutablePointer<GdkFocusEvent>! { get }
  • Required Initialiser for types conforming to FocusEventProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

FocusEvent Class: FocusEventProtocol extension (methods and fields)

  • getIn() Extension method

    Extracts whether this event is about focus entering or leaving the surface.

    Declaration

    Swift

    @inlinable
    func getIn() -> Bool
  • in Extension method

    Extracts whether this event is about focus entering or leaving the surface.

    Declaration

    Swift

    @inlinable
    var `in`: Bool { get }