1999-09-10 02:25:47 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: oglbasic.i
|
|
|
|
// Purpose: SWIG definitions for the wxWindows Object Graphics Library
|
|
|
|
//
|
|
|
|
// Author: Robin Dunn
|
|
|
|
//
|
|
|
|
// Created: 3-Sept-1999
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) 1998 by Total Control Software
|
|
|
|
// Licence: wxWindows license
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
2003-11-12 16:34:20 -05:00
|
|
|
// Not a %module
|
1999-09-10 02:25:47 -04:00
|
|
|
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------
|
2003-11-12 16:34:20 -05:00
|
|
|
%newgroup;
|
1999-09-10 02:25:47 -04:00
|
|
|
|
|
|
|
|
2001-05-17 18:47:09 -04:00
|
|
|
class wxShapeRegion : public wxObject {
|
1999-09-10 02:25:47 -04:00
|
|
|
public:
|
|
|
|
wxShapeRegion();
|
|
|
|
//~wxShapeRegion();
|
|
|
|
|
|
|
|
void SetText(const wxString& s);
|
|
|
|
void SetFont(wxFont *f);
|
|
|
|
void SetMinSize(double w, double h);
|
|
|
|
void SetSize(double w, double h);
|
|
|
|
void SetPosition(double x, double y);
|
|
|
|
void SetProportions(double x, double y);
|
|
|
|
void SetFormatMode(int mode);
|
|
|
|
void SetName(const wxString& s);
|
|
|
|
void SetColour(const wxString& col);
|
|
|
|
|
|
|
|
wxString GetText();
|
|
|
|
wxFont *GetFont();
|
2000-07-15 15:51:35 -04:00
|
|
|
void GetMinSize(double *OUTPUT, double *OUTPUT);
|
|
|
|
void GetProportion(double *OUTPUT, double *OUTPUT);
|
|
|
|
void GetSize(double *OUTPUT, double *OUTPUT);
|
|
|
|
void GetPosition(double *OUTPUT, double *OUTPUT);
|
1999-09-10 02:25:47 -04:00
|
|
|
int GetFormatMode();
|
|
|
|
wxString GetName();
|
|
|
|
wxString GetColour();
|
2004-01-08 21:10:39 -05:00
|
|
|
wxColour GetActualColourObject();
|
1999-09-10 02:25:47 -04:00
|
|
|
wxList& GetFormattedText();
|
|
|
|
wxString GetPenColour();
|
|
|
|
int GetPenStyle();
|
|
|
|
void SetPenStyle(int style);
|
|
|
|
void SetPenColour(const wxString& col);
|
|
|
|
wxPen *GetActualPen();
|
|
|
|
double GetWidth();
|
|
|
|
double GetHeight();
|
|
|
|
|
|
|
|
void ClearText();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2004-01-02 15:37:37 -05:00
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
/*
|
|
|
|
* User-defined attachment point
|
|
|
|
*/
|
|
|
|
|
|
|
|
class wxAttachmentPoint: public wxObject
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxAttachmentPoint(int id=0, double x=0.0, double y=0.0);
|
|
|
|
int m_id; // Identifier
|
|
|
|
double m_x; // x offset from centre of object
|
|
|
|
double m_y; // y offset from centre of object
|
|
|
|
};
|
|
|
|
|
|
|
|
|
1999-09-10 02:25:47 -04:00
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
%{
|
|
|
|
WXSHAPE_IMP_CALLBACKS(wxPyShapeEvtHandler,wxShapeEvtHandler);
|
|
|
|
%}
|
|
|
|
|
|
|
|
|
2001-05-17 18:47:09 -04:00
|
|
|
class wxPyShapeEvtHandler : public wxObject {
|
1999-09-10 02:25:47 -04:00
|
|
|
public:
|
2004-01-30 20:18:37 -05:00
|
|
|
%pythonAppend wxPyShapeEvtHandler "self._setOORandCallbackInfo(PyShapeEvtHandler)"
|
2004-07-17 18:51:01 -04:00
|
|
|
%typemap(out) wxPyShapeEvtHandler*; // turn off this typemap
|
|
|
|
|
1999-09-10 02:25:47 -04:00
|
|
|
wxPyShapeEvtHandler(wxPyShapeEvtHandler *prev = NULL,
|
|
|
|
wxPyShape *shape = NULL);
|
|
|
|
|
2004-07-17 18:51:01 -04:00
|
|
|
%typemap(out) wxPyShapeEvtHandler* { $result = wxPyMake_wxShapeEvtHandler($1, $owner); }
|
|
|
|
|
|
|
|
|
2001-10-12 19:26:38 -04:00
|
|
|
void _setCallbackInfo(PyObject* self, PyObject* _class);
|
2003-11-12 16:34:20 -05:00
|
|
|
%extend {
|
2001-11-26 21:56:59 -05:00
|
|
|
void _setOORInfo(PyObject* _self) {
|
2004-07-17 18:51:01 -04:00
|
|
|
self->SetClientObject(new wxPyOORClientData(_self));
|
2001-11-26 21:56:59 -05:00
|
|
|
}
|
|
|
|
}
|
2003-11-12 16:34:20 -05:00
|
|
|
%pythoncode {
|
|
|
|
def _setOORandCallbackInfo(self, _class):
|
|
|
|
self._setOORInfo(self)
|
|
|
|
self._setCallbackInfo(self, _class)
|
|
|
|
}
|
2001-11-26 21:56:59 -05:00
|
|
|
|
2003-11-12 16:34:20 -05:00
|
|
|
|
1999-09-10 02:25:47 -04:00
|
|
|
void SetShape(wxPyShape *sh);
|
|
|
|
wxPyShape *GetShape();
|
|
|
|
void SetPreviousHandler(wxPyShapeEvtHandler* handler);
|
|
|
|
wxPyShapeEvtHandler* GetPreviousHandler();
|
|
|
|
wxPyShapeEvtHandler* CreateNewCopy();
|
|
|
|
|
|
|
|
void base_OnDelete();
|
|
|
|
void base_OnDraw(wxDC& dc);
|
|
|
|
void base_OnDrawContents(wxDC& dc);
|
2004-09-23 16:23:54 -04:00
|
|
|
void base_OnDrawBranches(wxDC& dc, bool erase = false);
|
1999-09-10 02:25:47 -04:00
|
|
|
void base_OnMoveLinks(wxDC& dc);
|
|
|
|
void base_OnErase(wxDC& dc);
|
|
|
|
void base_OnEraseContents(wxDC& dc);
|
|
|
|
void base_OnHighlight(wxDC& dc);
|
|
|
|
void base_OnLeftClick(double x, double y, int keys = 0, int attachment = 0);
|
|
|
|
void base_OnLeftDoubleClick(double x, double y, int keys = 0, int attachment = 0);
|
|
|
|
void base_OnRightClick(double x, double y, int keys = 0, int attachment = 0);
|
|
|
|
void base_OnSize(double x, double y);
|
2004-09-23 16:23:54 -04:00
|
|
|
bool base_OnMovePre(wxDC& dc, double x, double y, double old_x, double old_y, bool display = true);
|
|
|
|
void base_OnMovePost(wxDC& dc, double x, double y, double old_x, double old_y, bool display = true);
|
1999-09-10 02:25:47 -04:00
|
|
|
void base_OnDragLeft(bool draw, double x, double y, int keys=0, int attachment = 0);
|
|
|
|
void base_OnBeginDragLeft(double x, double y, int keys=0, int attachment = 0);
|
|
|
|
void base_OnEndDragLeft(double x, double y, int keys=0, int attachment = 0);
|
|
|
|
void base_OnDragRight(bool draw, double x, double y, int keys=0, int attachment = 0);
|
|
|
|
void base_OnBeginDragRight(double x, double y, int keys=0, int attachment = 0);
|
|
|
|
void base_OnEndDragRight(double x, double y, int keys=0, int attachment = 0);
|
|
|
|
void base_OnDrawOutline(wxDC& dc, double x, double y, double w, double h);
|
|
|
|
void base_OnDrawControlPoints(wxDC& dc);
|
|
|
|
void base_OnEraseControlPoints(wxDC& dc);
|
2004-09-23 16:23:54 -04:00
|
|
|
void base_OnMoveLink(wxDC& dc, bool moveControlPoints = true);
|
1999-09-30 02:58:38 -04:00
|
|
|
void base_OnSizingDragLeft(wxPyControlPoint* pt, bool draw, double x, double y, int keys=0, int attachment = 0);
|
|
|
|
void base_OnSizingBeginDragLeft(wxPyControlPoint* pt, double x, double y, int keys=0, int attachment = 0);
|
|
|
|
void base_OnSizingEndDragLeft(wxPyControlPoint* pt, double x, double y, int keys=0, int attachment = 0);
|
1999-09-10 02:25:47 -04:00
|
|
|
void base_OnBeginSize(double w, double h);
|
|
|
|
void base_OnEndSize(double w, double h);
|
|
|
|
// void base_OnChangeAttachment(int attachment, wxPyLineShape* line, wxList& ordering);
|
|
|
|
};
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
%{
|
|
|
|
WXSHAPE_IMP_CALLBACKS(wxPyShape, wxShape);
|
|
|
|
%}
|
|
|
|
|
|
|
|
|
|
|
|
class wxPyShape : public wxPyShapeEvtHandler {
|
|
|
|
public:
|
2004-05-13 11:42:14 -04:00
|
|
|
%pythonAppend wxPyShape "self._setOORandCallbackInfo(PyShape)"
|
2004-07-17 18:51:01 -04:00
|
|
|
%typemap(out) wxPyShape*; // turn off this typemap
|
|
|
|
|
2003-11-12 16:34:20 -05:00
|
|
|
wxPyShape(wxPyShapeCanvas *can = NULL);
|
1999-09-10 02:25:47 -04:00
|
|
|
|
2004-07-17 18:51:01 -04:00
|
|
|
%typemap(out) wxPyShape* { $result = wxPyMake_wxShapeEvtHandler($1, $owner); }
|
|
|
|
|
2001-10-12 19:26:38 -04:00
|
|
|
void _setCallbackInfo(PyObject* self, PyObject* _class);
|
1999-09-10 02:25:47 -04:00
|
|
|
|
|
|
|
void GetBoundingBoxMax(double *OUTPUT, double *OUTPUT);
|
|
|
|
void GetBoundingBoxMin(double *OUTPUT, double *OUTPUT);
|
|
|
|
bool GetPerimeterPoint(double x1, double y1,
|
|
|
|
double x2, double y2,
|
|
|
|
double *OUTPUT, double *OUTPUT);
|
|
|
|
wxPyShapeCanvas *GetCanvas();
|
|
|
|
void SetCanvas(wxPyShapeCanvas *the_canvas);
|
|
|
|
void AddToCanvas(wxPyShapeCanvas *the_canvas, wxPyShape *addAfter = NULL);
|
|
|
|
void InsertInCanvas(wxPyShapeCanvas *the_canvas);
|
|
|
|
void RemoveFromCanvas(wxPyShapeCanvas *the_canvas);
|
|
|
|
double GetX();
|
|
|
|
double GetY();
|
|
|
|
void SetX(double x);
|
|
|
|
void SetY(double y);
|
|
|
|
wxPyShape *GetParent();
|
|
|
|
void SetParent(wxPyShape *p);
|
|
|
|
wxPyShape *GetTopAncestor();
|
|
|
|
|
|
|
|
|
|
|
|
// wxList& GetChildren();
|
2003-11-12 16:34:20 -05:00
|
|
|
%extend {
|
1999-09-10 02:25:47 -04:00
|
|
|
PyObject* GetChildren() {
|
|
|
|
wxList& list = self->GetChildren();
|
2003-11-12 16:34:20 -05:00
|
|
|
return wxPy_ConvertShapeList(&list);
|
1999-09-10 02:25:47 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Unlink();
|
|
|
|
void SetDrawHandles(bool drawH);
|
|
|
|
bool GetDrawHandles();
|
|
|
|
void MakeControlPoints();
|
|
|
|
void DeleteControlPoints(wxDC *dc = NULL);
|
|
|
|
void ResetControlPoints();
|
|
|
|
wxPyShapeEvtHandler *GetEventHandler();
|
|
|
|
void SetEventHandler(wxPyShapeEvtHandler *handler);
|
|
|
|
void MakeMandatoryControlPoints();
|
|
|
|
void ResetMandatoryControlPoints();
|
|
|
|
bool Recompute();
|
|
|
|
void CalculateSize();
|
2004-09-23 16:23:54 -04:00
|
|
|
void Select(bool select = true, wxDC* dc = NULL);
|
|
|
|
void SetHighlight(bool hi = true, bool recurse = false);
|
1999-09-10 02:25:47 -04:00
|
|
|
bool IsHighlighted() ;
|
|
|
|
bool Selected();
|
|
|
|
bool AncestorSelected();
|
2004-09-23 16:23:54 -04:00
|
|
|
void SetSensitivityFilter(int sens = OP_ALL, bool recursive = false);
|
1999-09-10 02:25:47 -04:00
|
|
|
int GetSensitivityFilter();
|
2004-09-23 16:23:54 -04:00
|
|
|
void SetDraggable(bool drag, bool recursive = false);
|
1999-09-10 02:25:47 -04:00
|
|
|
void SetFixedSize(bool x, bool y);
|
|
|
|
void GetFixedSize(bool *OUTPUT, bool *OUTPUT) ;
|
|
|
|
bool GetFixedWidth();
|
|
|
|
bool GetFixedHeight();
|
|
|
|
void SetSpaceAttachments(bool sp);
|
|
|
|
bool GetSpaceAttachments() ;
|
2004-09-23 16:23:54 -04:00
|
|
|
void SetShadowMode(int mode, bool redraw = false);
|
1999-09-10 02:25:47 -04:00
|
|
|
int GetShadowMode();
|
|
|
|
bool HitTest(double x, double y, int *OUTPUT, double *OUTPUT);
|
|
|
|
void SetCentreResize(bool cr);
|
|
|
|
bool GetCentreResize();
|
|
|
|
void SetMaintainAspectRatio(bool ar);
|
|
|
|
bool GetMaintainAspectRatio();
|
|
|
|
|
|
|
|
|
|
|
|
// wxList& GetLines();
|
2003-11-12 16:34:20 -05:00
|
|
|
%extend {
|
1999-09-10 02:25:47 -04:00
|
|
|
PyObject* GetLines() {
|
|
|
|
wxList& list = self->GetLines();
|
2003-11-12 16:34:20 -05:00
|
|
|
return wxPy_ConvertShapeList(&list);
|
1999-09-10 02:25:47 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void SetDisableLabel(bool flag);
|
|
|
|
bool GetDisableLabel();
|
|
|
|
void SetAttachmentMode(int mode);
|
|
|
|
int GetAttachmentMode();
|
|
|
|
void SetId(long i);
|
|
|
|
long GetId();
|
2001-04-01 23:01:13 -04:00
|
|
|
|
1999-09-10 02:25:47 -04:00
|
|
|
void SetPen(wxPen *pen);
|
|
|
|
void SetBrush(wxBrush *brush);
|
2000-02-16 00:57:16 -05:00
|
|
|
|
2001-04-01 23:01:13 -04:00
|
|
|
|
2000-02-16 00:57:16 -05:00
|
|
|
// void SetClientData(wxObject *client_data);
|
|
|
|
// wxObject *GetClientData();
|
|
|
|
|
2001-12-03 13:17:43 -05:00
|
|
|
// The real client data methods are being used for OOR, so just fake it.
|
2003-11-12 16:34:20 -05:00
|
|
|
%pythoncode {
|
2001-12-03 13:17:43 -05:00
|
|
|
def SetClientData(self, data):
|
|
|
|
self.clientData = data
|
|
|
|
def GetClientData(self):
|
|
|
|
if hasattr(self, 'clientData'):
|
|
|
|
return self.clientData
|
|
|
|
else:
|
|
|
|
return None
|
2003-11-12 16:34:20 -05:00
|
|
|
}
|
2000-02-16 00:57:16 -05:00
|
|
|
|
1999-09-10 02:25:47 -04:00
|
|
|
void Show(bool show);
|
|
|
|
bool IsShown();
|
2004-09-23 16:23:54 -04:00
|
|
|
void Move(wxDC& dc, double x1, double y1, bool display = true);
|
1999-09-10 02:25:47 -04:00
|
|
|
void Erase(wxDC& dc);
|
|
|
|
void EraseContents(wxDC& dc);
|
|
|
|
void Draw(wxDC& dc);
|
|
|
|
void Flash();
|
|
|
|
void MoveLinks(wxDC& dc);
|
|
|
|
void DrawContents(wxDC& dc);
|
2004-09-23 16:23:54 -04:00
|
|
|
void SetSize(double x, double y, bool recursive = true);
|
1999-09-10 02:25:47 -04:00
|
|
|
void SetAttachmentSize(double x, double y);
|
|
|
|
void Attach(wxPyShapeCanvas *can);
|
|
|
|
void Detach();
|
|
|
|
bool Constrain();
|
|
|
|
void AddLine(wxPyLineShape *line, wxPyShape *other,
|
|
|
|
int attachFrom = 0, int attachTo = 0,
|
|
|
|
int positionFrom = -1, int positionTo = -1);
|
|
|
|
int GetLinePosition(wxPyLineShape* line);
|
|
|
|
void AddText(const wxString& string);
|
|
|
|
wxPen *GetPen();
|
|
|
|
wxBrush *GetBrush();
|
|
|
|
void SetDefaultRegionSize();
|
|
|
|
void FormatText(wxDC& dc, const wxString& s, int regionId = 0);
|
|
|
|
void SetFormatMode(int mode, int regionId = 0);
|
|
|
|
int GetFormatMode(int regionId = 0);
|
|
|
|
void SetFont(wxFont *font, int regionId = 0);
|
|
|
|
wxFont *GetFont(int regionId = 0);
|
|
|
|
void SetTextColour(const wxString& colour, int regionId = 0);
|
|
|
|
wxString GetTextColour(int regionId = 0);
|
|
|
|
int GetNumberOfTextRegions();
|
|
|
|
void SetRegionName(const wxString& name, int regionId = 0);
|
|
|
|
wxString GetRegionName(int regionId);
|
|
|
|
int GetRegionId(const wxString& name);
|
2003-11-24 12:26:10 -05:00
|
|
|
void NameRegions(const wxString& parentName = wxPyEmptyString);
|
1999-09-10 02:25:47 -04:00
|
|
|
|
|
|
|
// wxList& GetRegions();
|
2003-11-12 16:34:20 -05:00
|
|
|
%extend {
|
1999-09-10 02:25:47 -04:00
|
|
|
PyObject* GetRegions() {
|
|
|
|
wxList& list = self->GetRegions();
|
2003-11-12 16:34:20 -05:00
|
|
|
return wxPy_ConvertList(&list);
|
1999-09-10 02:25:47 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void AddRegion(wxShapeRegion *region);
|
|
|
|
void ClearRegions();
|
|
|
|
void AssignNewIds();
|
2000-07-15 15:51:35 -04:00
|
|
|
wxPyShape *FindRegion(const wxString& regionName, int *OUTPUT);
|
1999-09-10 02:25:47 -04:00
|
|
|
void FindRegionNames(wxStringList& list);
|
|
|
|
void ClearText(int regionId = 0);
|
|
|
|
void RemoveLine(wxPyLineShape *line);
|
|
|
|
|
2003-03-25 01:35:27 -05:00
|
|
|
#ifdef wxUSE_PROLOGIO
|
1999-09-10 02:25:47 -04:00
|
|
|
void WriteAttributes(wxExpr *clause);
|
|
|
|
void ReadAttributes(wxExpr *clause);
|
|
|
|
void ReadConstraints(wxExpr *clause, wxExprDatabase *database);
|
|
|
|
void WriteRegions(wxExpr *clause);
|
|
|
|
void ReadRegions(wxExpr *clause);
|
|
|
|
#endif
|
|
|
|
|
2000-02-16 00:57:16 -05:00
|
|
|
bool GetAttachmentPosition(int attachment, double *OUTPUT, double *OUTPUT,
|
1999-09-10 02:25:47 -04:00
|
|
|
int nth = 0, int no_arcs = 1, wxPyLineShape *line = NULL);
|
|
|
|
int GetNumberOfAttachments();
|
|
|
|
bool AttachmentIsValid(int attachment);
|
2004-01-02 15:37:37 -05:00
|
|
|
|
|
|
|
%extend {
|
|
|
|
PyObject* GetAttachments() {
|
|
|
|
wxList& list = self->GetAttachments();
|
|
|
|
return wxPy_ConvertList(&list);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2000-02-16 00:57:16 -05:00
|
|
|
bool GetAttachmentPositionEdge(int attachment, double *OUTPUT, double *OUTPUT,
|
1999-09-10 02:25:47 -04:00
|
|
|
int nth = 0, int no_arcs = 1, wxPyLineShape *line = NULL);
|
|
|
|
wxRealPoint CalcSimpleAttachment(const wxRealPoint& pt1, const wxRealPoint& pt2,
|
|
|
|
int nth, int noArcs, wxPyLineShape* line);
|
|
|
|
bool AttachmentSortTest(int attachmentPoint, const wxRealPoint& pt1, const wxRealPoint& pt2);
|
2004-09-23 16:23:54 -04:00
|
|
|
void EraseLinks(wxDC& dc, int attachment = -1, bool recurse = false);
|
|
|
|
void DrawLinks(wxDC& dc, int attachment = -1, bool recurse = false);
|
1999-09-10 02:25:47 -04:00
|
|
|
bool MoveLineToNewAttachment(wxDC& dc, wxPyLineShape *to_move,
|
|
|
|
double x, double y);
|
|
|
|
|
|
|
|
//void ApplyAttachmentOrdering(wxList& linesToSort);
|
2003-11-12 16:34:20 -05:00
|
|
|
%extend {
|
1999-09-10 02:25:47 -04:00
|
|
|
void ApplyAttachmentOrdering(PyObject* linesToSort) {
|
2003-11-12 16:34:20 -05:00
|
|
|
wxList* list = wxPy_wxListHelper(linesToSort, wxT("wxPyLineShape"));
|
1999-09-10 02:25:47 -04:00
|
|
|
self->ApplyAttachmentOrdering(*list);
|
|
|
|
delete list;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
wxRealPoint GetBranchingAttachmentRoot(int attachment);
|
|
|
|
bool GetBranchingAttachmentInfo(int attachment, wxRealPoint& root, wxRealPoint& neck,
|
|
|
|
wxRealPoint& shoulder1, wxRealPoint& shoulder2);
|
|
|
|
bool GetBranchingAttachmentPoint(int attachment, int n, wxRealPoint& attachmentPoint,
|
|
|
|
wxRealPoint& stemPoint);
|
|
|
|
int GetAttachmentLineCount(int attachment);
|
|
|
|
void SetBranchNeckLength(int len);
|
|
|
|
int GetBranchNeckLength();
|
|
|
|
void SetBranchStemLength(int len);
|
|
|
|
int GetBranchStemLength();
|
|
|
|
void SetBranchSpacing(int len);
|
|
|
|
int GetBranchSpacing();
|
|
|
|
void SetBranchStyle(long style);
|
|
|
|
long GetBranchStyle();
|
|
|
|
int PhysicalToLogicalAttachment(int physicalAttachment);
|
|
|
|
int LogicalToPhysicalAttachment(int logicalAttachment);
|
|
|
|
bool Draggable();
|
|
|
|
bool HasDescendant(wxPyShape *image);
|
2004-09-23 16:23:54 -04:00
|
|
|
wxPyShape *CreateNewCopy(bool resetMapping = true, bool recompute = true);
|
1999-09-10 02:25:47 -04:00
|
|
|
void Copy(wxPyShape& copy);
|
|
|
|
void CopyWithHandler(wxPyShape& copy);
|
|
|
|
void Rotate(double x, double y, double theta);
|
|
|
|
double GetRotation();
|
2004-01-02 15:37:37 -05:00
|
|
|
void SetRotation(double rotation);
|
1999-09-10 02:25:47 -04:00
|
|
|
void ClearAttachments();
|
|
|
|
void Recentre(wxDC& dc);
|
|
|
|
void ClearPointList(wxList& list);
|
2001-11-26 21:56:59 -05:00
|
|
|
wxPen GetBackgroundPen();
|
|
|
|
wxBrush GetBackgroundBrush();
|
1999-09-10 02:25:47 -04:00
|
|
|
|
|
|
|
void base_OnDelete();
|
|
|
|
void base_OnDraw(wxDC& dc);
|
|
|
|
void base_OnDrawContents(wxDC& dc);
|
2004-09-23 16:23:54 -04:00
|
|
|
void base_OnDrawBranches(wxDC& dc, bool erase = false);
|
1999-09-10 02:25:47 -04:00
|
|
|
void base_OnMoveLinks(wxDC& dc);
|
|
|
|
void base_OnErase(wxDC& dc);
|
|
|
|
void base_OnEraseContents(wxDC& dc);
|
|
|
|
void base_OnHighlight(wxDC& dc);
|
|
|
|
void base_OnLeftClick(double x, double y, int keys = 0, int attachment = 0);
|
|
|
|
void base_OnLeftDoubleClick(double x, double y, int keys = 0, int attachment = 0);
|
|
|
|
void base_OnRightClick(double x, double y, int keys = 0, int attachment = 0);
|
|
|
|
void base_OnSize(double x, double y);
|
2004-09-23 16:23:54 -04:00
|
|
|
bool base_OnMovePre(wxDC& dc, double x, double y, double old_x, double old_y, bool display = true);
|
|
|
|
void base_OnMovePost(wxDC& dc, double x, double y, double old_x, double old_y, bool display = true);
|
1999-09-10 02:25:47 -04:00
|
|
|
void base_OnDragLeft(bool draw, double x, double y, int keys=0, int attachment = 0);
|
|
|
|
void base_OnBeginDragLeft(double x, double y, int keys=0, int attachment = 0);
|
|
|
|
void base_OnEndDragLeft(double x, double y, int keys=0, int attachment = 0);
|
|
|
|
void base_OnDragRight(bool draw, double x, double y, int keys=0, int attachment = 0);
|
|
|
|
void base_OnBeginDragRight(double x, double y, int keys=0, int attachment = 0);
|
|
|
|
void base_OnEndDragRight(double x, double y, int keys=0, int attachment = 0);
|
|
|
|
void base_OnDrawOutline(wxDC& dc, double x, double y, double w, double h);
|
|
|
|
void base_OnDrawControlPoints(wxDC& dc);
|
|
|
|
void base_OnEraseControlPoints(wxDC& dc);
|
2004-09-23 16:23:54 -04:00
|
|
|
void base_OnMoveLink(wxDC& dc, bool moveControlPoints = true);
|
1999-09-30 02:58:38 -04:00
|
|
|
void base_OnSizingDragLeft(wxPyControlPoint* pt, bool draw, double x, double y, int keys=0, int attachment = 0);
|
|
|
|
void base_OnSizingBeginDragLeft(wxPyControlPoint* pt, double x, double y, int keys=0, int attachment = 0);
|
|
|
|
void base_OnSizingEndDragLeft(wxPyControlPoint* pt, double x, double y, int keys=0, int attachment = 0);
|
1999-09-10 02:25:47 -04:00
|
|
|
void base_OnBeginSize(double w, double h);
|
|
|
|
void base_OnEndSize(double w, double h);
|
|
|
|
// void base_OnChangeAttachment(int attachment, wxPyLineShape* line, wxList& ordering);
|
|
|
|
};
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
|