Blame toonz/sources/include/tw/event.h
|
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 |
|
|
Toshihiro Shimizu |
890ddd |
class DVAPI TMouseEvent
|
|
Toshihiro Shimizu |
890ddd |
{
|
|
Toshihiro Shimizu |
890ddd |
public:
|
|
Toshihiro Shimizu |
890ddd |
TPoint m_pos;
|
|
Toshihiro Shimizu |
890ddd |
int m_pressure;
|
|
Toshihiro Shimizu |
890ddd |
int m_status;
|
|
Toshihiro Shimizu |
890ddd |
bool isCtrlPressed() const;
|
|
Toshihiro Shimizu |
890ddd |
bool isShiftPressed() const;
|
|
Toshihiro Shimizu |
890ddd |
bool isAltPressed() const;
|
|
Toshihiro Shimizu |
890ddd |
#ifdef MACOSX
|
|
Toshihiro Shimizu |
890ddd |
bool isLockPressed() const;
|
|
Toshihiro Shimizu |
890ddd |
#endif
|
|
Toshihiro Shimizu |
890ddd |
TMouseEvent() : m_pos(), m_pressure(0), m_status(0)
|
|
Toshihiro Shimizu |
890ddd |
{
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
TMouseEvent(int x, int y) : m_pos(x, y), m_pressure(0), m_status(0) {}
|
|
Toshihiro Shimizu |
890ddd |
TMouseEvent(const TPoint &p) : m_pos(p), m_pressure(0), m_status(0) {}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
TMouseEvent(const TPoint &p, int pressure, int status) : m_pos(p), m_pressure(pressure), m_status(status) {}
|
|
Toshihiro Shimizu |
890ddd |
};
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#endif
|