This commit is contained in:
parent
86e55aae82
commit
803f94e415
24 changed files with 492 additions and 254 deletions
34
Utils/MapEdit/Select.h
Normal file
34
Utils/MapEdit/Select.h
Normal file
|
@ -0,0 +1,34 @@
|
|||
/***********************/
|
||||
/*** Selection Class ***/
|
||||
/***********************/
|
||||
|
||||
#ifndef __SELECTION_CLASS_HEADER__
|
||||
#define __SELECTION_CLASS_HEADER__
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
class CSelect
|
||||
{
|
||||
public:
|
||||
CSelect();
|
||||
virtual ~CSelect(){};
|
||||
|
||||
void Invalidate();
|
||||
bool Handle(CPoint &Pnt,UINT Flags);
|
||||
bool IsValid();
|
||||
bool HasSelection();
|
||||
|
||||
CRect &GetRect() {return(Sel);}
|
||||
|
||||
private:
|
||||
void Start(CPoint &Pnt, UINT Flags);
|
||||
void End(CPoint &Pnt, UINT Flags);
|
||||
|
||||
CPoint Pos,Pos0;
|
||||
CRect Sel;
|
||||
UINT Mode;
|
||||
|
||||
};
|
||||
|
||||
/*****************************************************************************/
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue