File tag/Event


class tag.Event

Inherits

State supers
tom.State, tom.Copying, tag

instance tag.Event

variables

public int type;
The event type.
public Window window;
The Window on which this event occured.

methods

id (self)
    init int t
  window Window w;
Designated (re-)initializer.


class tag.UserEvent

A UserEvent is an event originating from the user, with modifiers and all that information.

Inherits

State supers
Event

instance tag.UserEvent

variables

public int modifiers;
Any modifier information.

methods

id
       init int t
     window Window w
  modifiers int mods;
Designated (re-)initializer.

int
  keyModifiers;
Return the modifiers actually related to an extra key being pressed.


class tag.MouseEvent

Inherits

State supers
UserEvent

instance tag.MouseEvent

variables

public float x;
The location, in window coordinates, of the event.
public float y;
public int buttons;
Status of the buttons.

methods

id
       init int t
     window Window w
  modifiers int mod
    buttons int b
   location (float, float) (loc_x, loc_y);
Designated (re-)initializer.

(float, float)
  location;
Return the location of the event, in window coordinates.

void
  set_location (float, float) (loc_x, loc_y);
Set the location. This can be used by a Window to convert the coordinates from the underlying system to TAG coordinates.


Generated by tm 1.01.