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 gtk.event_controller_focus.EventControllerFocus.isFocus and gtk.event_controller_focus.EventControllerFocus.containsFocus properties which are updated to reflect focus changes inside the widget hierarchy that is rooted at the controllers widget.
Methods
EventControllerFocusGidBuilder builder() static nothrowGet builder for [gtk.event_controller_focus.EventControllerFocus] Returns: New builder objectbool containsFocus() nothrowReturns true if focus is within self or one of its children. Returns: true if focus is within self or one of its childrenbool isFocus() nothrowReturns true if focus is within self, but not one of its children. Returns: true if focus is within self, but not one of its childrengulong 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) nothrowConnect 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) nothrowConnect to `Leave` signal.Fluent builder implementation template for gtk.event_controller_focus.EventControllerFocus