EventFocusProtocol

public protocol EventFocusProtocol

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

Describes a change of keyboard focus.

  • ptr

    Untyped pointer to the underlying GdkEventFocus instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GdkEventFocus instance.

    Default Implementation

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

    Declaration

    Swift

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

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

EventFocus Record: EventFocusProtocol extension (methods and fields)

  • type Extension method

    the type of the event (GDK_FOCUS_CHANGE).

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

    true if the window has gained the keyboard focus, false if it has lost the focus.

    Declaration

    Swift

    @inlinable
    var `in`: gint16 { get set }