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
EventControllerFocus self()Returns `this`, for use in `with` statements.EventControllerFocusGidBuilder builder()Get builder for [gtk.eventcontrollerfocus.EventControllerFocus] Returns: New builder objectbool containsFocus()Returns true if focus is within self or one of its children. Returns: true if focus is within self or one of its childrenbool 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 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)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.classEventControllerFocusGidBuilder : EventControllerFocusGidBuilderImpl!EventControllerFocusGidBuilder
Fluent builder for [gtk.event_controller_focus.EventControllerFocus]
Methods