leocad/common/view.h

37 lines
942 B
C
Raw Normal View History

2011-09-07 23:06:51 +02:00
#ifndef _VIEW_H_
#define _VIEW_H_
#include "glwindow.h"
2012-02-05 03:50:57 +01:00
class Camera;
2011-09-07 23:06:51 +02:00
class Project;
class View : public GLWindow
{
public:
2012-02-05 03:50:57 +01:00
View(Project *pProject, GLWindow *share);
virtual ~View();
void OnDraw();
void OnInitialUpdate();
void OnLeftButtonDown(int x, int y, bool bControl, bool bShift);
void OnLeftButtonUp(int x, int y, bool bControl, bool bShift);
void OnLeftButtonDoubleClick(int x, int y, bool bControl, bool bShift);
void OnMiddleButtonDown(int x, int y, bool bControl, bool bShift);
void OnMiddleButtonUp(int x, int y, bool bControl, bool bShift);
2012-02-05 03:50:57 +01:00
void OnRightButtonDown(int x, int y, bool bControl, bool bShift);
void OnRightButtonUp(int x, int y, bool bControl, bool bShift);
void OnMouseMove(int x, int y, bool bControl, bool bShift);
2011-09-07 23:06:51 +02:00
2012-08-20 06:05:56 +02:00
void SetCamera(Camera* camera);
void SetDefaultCamera();
LC_CURSOR_TYPE GetCursor() const;
2011-09-07 23:06:51 +02:00
Project* m_Project;
2012-08-20 06:05:56 +02:00
Camera* mCamera;
2012-02-05 03:50:57 +01:00
float m_OverlayScale;
2011-09-07 23:06:51 +02:00
};
#endif // _VIEW_H_