Back to index

texmacs  1.0.7.15
Public Member Functions | Public Attributes
mouse_event_rep Struct Reference

#include <basic_event.hpp>

Inheritance diagram for mouse_event_rep:
Inheritance graph
[legend]
Collaboration diagram for mouse_event_rep:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 mouse_event_rep (string type, SI x, SI y, int mods, time_t t)
bool pressed (string which)
 operator tree ()

Public Attributes

string type
SI x
SI y
int mods
time_t t
int ref_count

Detailed Description

Definition at line 100 of file basic_event.hpp.


Constructor & Destructor Documentation

mouse_event_rep::mouse_event_rep ( string  type,
SI  x,
SI  y,
int  mods,
time_t  t 
)

Member Function Documentation

mouse_event_rep::operator tree ( ) [virtual]

Implements event_rep.

Definition at line 109 of file basic_event.cpp.

                                {
  return tree (TUPLE, "mouse_event", type,
              tree (TUPLE, as_string (x/PIXEL), as_string (y/PIXEL))); }

Here is the call graph for this function:

Definition at line 113 of file basic_event.cpp.

                                  {
  if (s == "left") return (mods&1) != 0;
  if (s == "middle") return (mods&2) != 0;
  if (s == "right") return (mods&4) != 0;
  if (s == "extra1") return (mods&8) != 0;
  if (s == "extra2") return (mods&16) != 0;
  return false; }

Member Data Documentation

Definition at line 101 of file basic_event.hpp.

int abstract_struct::ref_count [inherited]

Definition at line 142 of file basic.hpp.

Definition at line 101 of file basic_event.hpp.

Reimplemented from event_rep.

Definition at line 101 of file basic_event.hpp.

Definition at line 101 of file basic_event.hpp.

Definition at line 101 of file basic_event.hpp.


The documentation for this struct was generated from the following files: