Shinya Kitaoka 810553
#pragma once
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifndef T_EVENT_INCLUDED
Toshihiro Shimizu 890ddd
#define T_EVENT_INCLUDED
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "tgeometry.h"
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#undef DVAPI
Toshihiro Shimizu 890ddd
#undef DVVAR
Toshihiro Shimizu 890ddd
#ifdef TWIN_EXPORTS
Toshihiro Shimizu 890ddd
#define DVAPI DV_EXPORT_API
Toshihiro Shimizu 890ddd
#define DVVAR DV_EXPORT_VAR
Toshihiro Shimizu 890ddd
#else
Toshihiro Shimizu 890ddd
#define DVAPI DV_IMPORT_API
Toshihiro Shimizu 890ddd
#define DVVAR DV_IMPORT_VAR
Toshihiro Shimizu 890ddd
#endif
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
class DVAPI TMouseEvent {
Toshihiro Shimizu 890ddd
public:
Shinya Kitaoka 120a6e
  TPoint m_pos;
Shinya Kitaoka 120a6e
  int m_pressure;
Shinya Kitaoka 120a6e
  int m_status;
Shinya Kitaoka 120a6e
  bool isCtrlPressed() const;
Shinya Kitaoka 120a6e
  bool isShiftPressed() const;
Shinya Kitaoka 120a6e
  bool isAltPressed() const;
Toshihiro Shimizu 890ddd
#ifdef MACOSX
Shinya Kitaoka 120a6e
  bool isLockPressed() const;
Toshihiro Shimizu 890ddd
#endif
Shinya Kitaoka 120a6e
  TMouseEvent() : m_pos(), m_pressure(0), m_status(0) {}
Shinya Kitaoka 120a6e
  TMouseEvent(int x, int y) : m_pos(x, y), m_pressure(0), m_status(0) {}
Shinya Kitaoka 120a6e
  TMouseEvent(const TPoint &p) : m_pos(p), m_pressure(0), m_status(0) {}
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  TMouseEvent(const TPoint &p, int pressure, int status)
Shinya Kitaoka 120a6e
      : m_pos(p), m_pressure(pressure), m_status(status) {}
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#endif