Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
49
Src/Wasabi/api/wndmgr/snappnt.h
Normal file
49
Src/Wasabi/api/wndmgr/snappnt.h
Normal file
|
@ -0,0 +1,49 @@
|
|||
#ifndef __SNAPPOINT_H
|
||||
#define __SNAPPOINT_H
|
||||
|
||||
#include <bfc/ptrlist.h>
|
||||
#include <bfc/string/StringW.h>
|
||||
#include <api/skin/xmlobject.h>
|
||||
|
||||
#define SNAPPOINT_XMLPARENT XmlObjectI
|
||||
|
||||
class Container;
|
||||
class Layout;
|
||||
class SnapPoint;
|
||||
class ifc_window;
|
||||
|
||||
class SnapPoint : public SNAPPOINT_XMLPARENT {
|
||||
|
||||
public:
|
||||
SnapPoint(Layout *l, Container *c);
|
||||
virtual ~SnapPoint();
|
||||
|
||||
virtual int setXmlParam(const wchar_t *name, const wchar_t *strvalue);
|
||||
|
||||
virtual void setParentContainer(Container *c);
|
||||
virtual void setParentLayout(Layout *l);
|
||||
virtual Container *getParentContainer();
|
||||
virtual Layout *getParentLayout();
|
||||
virtual const wchar_t *getId();
|
||||
|
||||
virtual int getX();
|
||||
virtual int getY();
|
||||
|
||||
static int match(ifc_window *master, RECT *z, ifc_window *slave, int flag, int *donex, int *doney, int w, int h);
|
||||
static void removeAll();
|
||||
|
||||
private:
|
||||
int x;
|
||||
int y;
|
||||
int relatx;
|
||||
int relaty;
|
||||
StringW id;
|
||||
|
||||
Container *pcontainer;
|
||||
Layout *playout;
|
||||
|
||||
static PtrList<SnapPoint> points;
|
||||
static int do_match(SnapPoint *pmast, SnapPoint *pslav, RECT *z, int mask, int *donex, int *doney, int w, int h);
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue