Class: Gtk::EventController

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

Instance Method Summary collapse

Instance Method Details

#current_eventGdk::Event

Returns the event that is currently being handled by the controller.

At other times, nil is returned.

Returns:

  • (Gdk::Event)

    the event that is currently handled by controller

#current_event_deviceGdk::Device

Returns the device of the event that is currently being handled by the controller.

At other times, nil is returned.

Returns:

  • (Gdk::Device)

    device of the event is currently handled by controller

#current_event_stateGdk::ModifierType

Returns the modifier state of the event that is currently being handled by the controller.

At other times, 0 is returned.

Returns:

  • (Gdk::ModifierType)

    modifier state of the event is currently handled by controller

#current_event_timeInteger

Returns the timestamp of the event that is currently being handled by the controller.

At other times, 0 is returned.

Returns:

  • (Integer)

    timestamp of the event is currently handled by controller

#nameString

The name for this controller, typically used for debugging purposes.

Returns:

  • (String)

    name

#name=(name) ⇒ String

The name for this controller, typically used for debugging purposes.

Parameters:

  • name (String)

Returns:

  • (String)

    name

  • (String)

    name

#propagation_limitGtk::PropagationLimit

The limit for which events this controller will handle.

Returns:

#propagation_limit=(propagation_limit) ⇒ Gtk::PropagationLimit

The limit for which events this controller will handle.

Parameters:

Returns:

#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.

Returns:

  • (nil)

#static_name=(name) ⇒ nil

Sets a name on the controller that can be used for debugging.

Parameters:

  • name (String)

    a name for controller, must be a static string

Returns:

  • (nil)

#widgetGtk::Widget

The widget receiving the GdkEvents that the controller will handle.

Returns:

#widget=(widget) ⇒ Gtk::Widget

The widget receiving the GdkEvents that the controller will handle.

Parameters:

Returns: