mirror of
https://github.com/leozide/leocad
synced 2025-01-18 22:26:44 +01:00
34 lines
856 B
C
34 lines
856 B
C
|
#ifndef _VIEW_H_
|
||
|
#define _VIEW_H_
|
||
|
|
||
|
#include "glwindow.h"
|
||
|
|
||
|
class Project;
|
||
|
|
||
|
class View : public GLWindow
|
||
|
{
|
||
|
public:
|
||
|
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 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);
|
||
|
|
||
|
LC_CURSOR_TYPE GetCursor(int x, int y) const;
|
||
|
Project* GetProject () const
|
||
|
{ return m_Project; }
|
||
|
|
||
|
protected:
|
||
|
Project* m_Project;
|
||
|
|
||
|
// virtual void OnInitialUpdate (); // called first time after construct
|
||
|
};
|
||
|
|
||
|
#endif // _VIEW_H_
|