gtk.event_controller_focus

Module for [EventControllerFocus] class

Types 3

[gtk.event_controller_focus.EventControllerFocus] is an event controller to keep track of keyboard focus.

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

Methods
GType _gType() @property
EventControllerFocus self()Returns `this`, for use in `with` statements.
EventControllerFocusGidBuilder builder()Get builder for [gtk.eventcontrollerfocus.EventControllerFocus] Returns: New builder object
bool containsFocus()Returns true if focus is within self or one of its children. Returns: true if focus is within self or one of its children
bool isFocus()Returns true if focus is within self, but not one of its children. Returns: true if focus is within self, but not one of its children
gulong connectEnter(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtk.event_controller_focus.EventControllerFocus))) && Parameters!T.length < 2)Connect to `Enter` signal.
gulong connectLeave(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtk.event_controller_focus.EventControllerFocus))) && Parameters!T.length < 2)Connect to `Leave` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new event controller that will handle focus events. Returns: a new [gtk.eventcontrollerfocus.EventControllerFocus]

Fluent builder for [gtk.event_controller_focus.EventControllerFocus]