Class: Gtk::EventControllerFocus
- Inherits:
-
EventController
- Object
- EventController
- Gtk::EventControllerFocus
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#contains_focus ⇒ Boolean
Returns true if focus is within self or one of its children.
-
#contains_focus=(contains_focus) ⇒ Boolean
true if focus is contained in the controllers widget.
-
#contains_focus? ⇒ Boolean
true if focus is contained in the controllers widget.
-
#initialize ⇒ Gtk::EventController
constructor
Creates a new event controller that will handle focus events.
-
#is_focus ⇒ Boolean
Returns true if focus is within self, but not one of its children.
-
#is_focus=(is_focus) ⇒ Boolean
true if focus is in the controllers widget itself, as opposed to in a descendent widget.
-
#is_focus? ⇒ Boolean
true if focus is in the controllers widget itself, as opposed to in a descendent widget.
Methods inherited from EventController
#current_event, #current_event_device, #current_event_state, #current_event_time, #name, #name=, #propagation_limit, #propagation_limit=, #propagation_phase, #propagation_phase=, #reset, #static_name=, #widget, #widget=
Constructor Details
#initialize ⇒ Gtk::EventController
Creates a new event controller that will handle focus events.
Instance Method Details
#contains_focus ⇒ Boolean
Returns true if focus is within self or one of its children.
#contains_focus=(contains_focus) ⇒ Boolean
true if focus is contained in the controllers widget.
See [propertyGtk.EventControllerFocus:is-focus] for whether the focus is in the widget itself or inside a descendent.
When handling focus events, this property is updated before [signalGtk.EventControllerFocus::enter] or [signalGtk.EventControllerFocus::leave] are emitted.
#contains_focus? ⇒ Boolean
true if focus is contained in the controllers widget.
See [propertyGtk.EventControllerFocus:is-focus] for whether the focus is in the widget itself or inside a descendent.
When handling focus events, this property is updated before [signalGtk.EventControllerFocus::enter] or [signalGtk.EventControllerFocus::leave] are emitted.
#is_focus ⇒ Boolean
Returns true if focus is within self, but not one of its children.
#is_focus=(is_focus) ⇒ Boolean
true if focus is in the controllers widget itself, as opposed to in a descendent widget.
See also [propertyGtk.EventControllerFocus:contains-focus].
When handling focus events, this property is updated before [signalGtk.EventControllerFocus::enter] or [signalGtk.EventControllerFocus::leave] are emitted.
#is_focus? ⇒ Boolean
true if focus is in the controllers widget itself, as opposed to in a descendent widget.
See also [propertyGtk.EventControllerFocus:contains-focus].
When handling focus events, this property is updated before [signalGtk.EventControllerFocus::enter] or [signalGtk.EventControllerFocus::leave] are emitted.