Class: Gtk::EventControllerMotion
- Inherits:
-
EventController
- Object
- EventController
- Gtk::EventControllerMotion
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#contains_pointer ⇒ Boolean
Returns if a pointer is within self or one of its children.
-
#contains_pointer=(contains_pointer) ⇒ Boolean
Whether the pointer is in the controllers widget or a descendant.
-
#contains_pointer? ⇒ Boolean
Whether the pointer is in the controllers widget or a descendant.
-
#initialize ⇒ Gtk::EventController
constructor
Creates a new event controller that will handle motion events.
-
#is_pointer ⇒ Boolean
Returns if a pointer is within self, but not one of its children.
-
#is_pointer=(is_pointer) ⇒ Boolean
Whether the pointer is in the controllers widget itself, as opposed to in a descendent widget.
-
#is_pointer? ⇒ Boolean
Whether the pointer 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 motion events.
Instance Method Details
#contains_pointer ⇒ Boolean
Returns if a pointer is within self or one of its children.
#contains_pointer=(contains_pointer) ⇒ Boolean
Whether the pointer is in the controllers widget or a descendant.
See also [propertyGtk.EventControllerMotion:is-pointer].
When handling crossing events, this property is updated before [signalGtk.EventControllerMotion::enter], but after [signalGtk.EventControllerMotion::leave] is emitted.
#contains_pointer? ⇒ Boolean
Whether the pointer is in the controllers widget or a descendant.
See also [propertyGtk.EventControllerMotion:is-pointer].
When handling crossing events, this property is updated before [signalGtk.EventControllerMotion::enter], but after [signalGtk.EventControllerMotion::leave] is emitted.
#is_pointer ⇒ Boolean
Returns if a pointer is within self, but not one of its children.
#is_pointer=(is_pointer) ⇒ Boolean
Whether the pointer is in the controllers widget itself, as opposed to in a descendent widget.
See also [propertyGtk.EventControllerMotion:contains-pointer].
When handling crossing events, this property is updated before [signalGtk.EventControllerMotion::enter], but after [signalGtk.EventControllerMotion::leave] is emitted.
#is_pointer? ⇒ Boolean
Whether the pointer is in the controllers widget itself, as opposed to in a descendent widget.
See also [propertyGtk.EventControllerMotion:contains-pointer].
When handling crossing events, this property is updated before [signalGtk.EventControllerMotion::enter], but after [signalGtk.EventControllerMotion::leave] is emitted.