Class EventControllerFocus.Builder<B extends EventControllerFocus.Builder<B>>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
EventControllerFocus
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theEventControllerFocusobject.Emitted whenever the focus enters into the widget or one of its descendents.Emitted whenever the focus leaves the widget hierarchy that is rooted at the widget that the controller is attached to.Methods inherited from class EventController.Builder
setName, setPropagationLimit, setPropagationPhaseMethods inherited from class GObject.Builder
onNotifyMethods inherited from class Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theEventControllerFocusobject. This will callGObject.withProperties(Type, String[], Value[])to create a new GObject instance, which is then cast toEventControllerFocus.- Overrides:
buildin classEventController.Builder<B extends EventControllerFocus.Builder<B>>- Returns:
- a new instance of
EventControllerFocuswith the properties that were set in the Builder object.
-
onEnter
Emitted whenever the focus enters into the widget or one of its descendents.
Note that this means you may not get an ::enter signal even though the widget becomes the focus location, in certain cases (such as when the focus moves from a descendent of the widget to the widget itself). If you are interested in these cases, you can monitor the
Gtk.EventControllerFocus:is-focusproperty for changes.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onLeave
Emitted whenever the focus leaves the widget hierarchy that is rooted at the widget that the controller is attached to.
Note that this means you may not get a ::leave signal even though the focus moves away from the widget, in certain cases (such as when the focus moves from the widget to a descendent). If you are interested in these cases, you can monitor the
Gtk.EventControllerFocus:is-focusproperty for changes.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-