MouseRelatedEvent.h [plain text]
#ifndef MouseRelatedEvent_h
#define MouseRelatedEvent_h
#include "UIEventWithKeyState.h"
namespace WebCore {
class MouseRelatedEvent : public UIEventWithKeyState {
public:
MouseRelatedEvent();
MouseRelatedEvent(const AtomicString& type, bool canBubble, bool cancelable, AbstractView* view,
int detail, int screenX, int screenY, int pageX, int pageY,
bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool isSimulated = false);
int screenX() const { return m_screenX; }
int screenY() const { return m_screenY; }
int clientX() const { return m_clientX; }
int clientY() const { return m_clientY; }
int layerX() const { return m_layerX; }
int layerY() const { return m_layerY; }
int offsetX() const { return m_offsetX; }
int offsetY() const { return m_offsetY; }
bool isSimulated() const { return m_isSimulated; }
virtual int pageX() const;
virtual int pageY() const;
int x() const;
int y() const;
protected:
void initCoordinates();
void initCoordinates(int clientX, int clientY);
virtual void receivedTarget();
int m_screenX;
int m_screenY;
int m_clientX;
int m_clientY;
private:
int m_pageX;
int m_pageY;
int m_layerX;
int m_layerY;
int m_offsetX;
int m_offsetY;
bool m_isSimulated;
};
}
#endif // MouseRelatedEvent_h