Class: Gtk::EventController

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

Instance Method Summary collapse

Instance Method Details

#current_event ⇒ Gdk::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_device ⇒ Gdk::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_state ⇒ Gdk::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_time ⇒ Integer

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

#name ⇒ String

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_limit ⇒ Gtk::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_phase ⇒ Gtk::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:

#reset ⇒ nil

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)

#widget ⇒ Gtk::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: