EventControllerFocusRef

public struct EventControllerFocusRef : EventControllerFocusProtocol, GWeakCapturing

GtkEventControllerFocus is an event controller to keep track of keyboard focus.

The event controller offers [signalGtk.EventControllerFocus::enter] and [signalGtk.EventControllerFocus::leave] signals, as well as [propertyGtk.EventControllerFocus:is-focus] and [propertyGtk.EventControllerFocus:contains-focus] properties which are updated to reflect focus changes inside the widget hierarchy that is rooted at the controllers widget.

The EventControllerFocusRef type acts as a lightweight Swift reference to an underlying GtkEventControllerFocus instance. It exposes methods that can operate on this data type through EventControllerFocusProtocol conformance. Use EventControllerFocusRef only as an unowned reference to an existing GtkEventControllerFocus instance.

  • ptr
    Untyped pointer to the underlying `GtkEventControllerFocus` instance.
    

    For type-safe access, use the generated, typed pointer event_controller_focus_ptr property instead.

    Declaration

    Swift

    public let ptr: UnsafeMutableRawPointer!

EventControllerFocus Class