Class: Gtk::EventController

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#handle_event(event) ⇒ TrueClass

Feeds an events into controller, so it can be interpreted and the controller actions triggered.

Parameters:

  • event (Gdk::Event)

    a Gdk::Event

Returns:

  • (TrueClass)

    true if the event was potentially useful to trigger the controller action

#propagation_phaseGtk::PropagationPhase

The propagation phase at which this controller will handle events.

Returns:

#propagation_phase=(propagation_phase) ⇒ Gtk::PropagationPhase

The propagation phase at which this controller will handle events.

Parameters:

Returns:

#resetnil

Resets the controller to a clean state. Every interaction the controller did through Gtk::EventController::handle-event will be dropped at this point.

Returns:

  • (nil)

#widgetGtk::Widget

The widget receiving the Gdk::Events that the controller will handle.

Returns:

#widget=(widget) ⇒ Gtk::Widget

The widget receiving the Gdk::Events that the controller will handle.

Parameters:

Returns: