Clutter.ButtonEvent

Fields

Name

Type

Access

Description

axes

float

r/w

reserved for future use

button

int

r/w

event button

click_count

int

r/w

number of button presses within the default time and radius

device

Clutter.InputDevice

r/w

the device that originated the event. If you want the physical device the event originated from, use Clutter.Event.get_source_device()

flags

Clutter.EventFlags

r/w

event flags

modifier_state

Clutter.ModifierType

r/w

button modifiers

source

Clutter.Actor

r/w

event source actor

stage

Clutter.Stage

r/w

event source stage

time

int

r/w

event time

type

Clutter.EventType

r/w

event type

x

float

r/w

event X coordinate, relative to the stage

y

float

r/w

event Y coordinate, relative to the stage

Methods

None

Details

class Clutter.ButtonEvent

Button event.

The event coordinates are relative to the stage that received the event, and can be transformed into actor-relative coordinates by using Clutter.Actor.transform_stage_point().

New in version 0.2.