Some wxOGL tweaks to match what has been done in the C++ classes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-01-02 20:37:37 +00:00
parent cc6eca3509
commit e7726f5e5a
4 changed files with 60 additions and 1 deletions

View File

@@ -56,6 +56,22 @@ public:
};
//---------------------------------------------------------------------------
/*
* 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
};
//---------------------------------------------------------------------------
%{
@@ -294,6 +310,14 @@ public:
int nth = 0, int no_arcs = 1, wxPyLineShape *line = NULL);
int GetNumberOfAttachments();
bool AttachmentIsValid(int attachment);
%extend {
PyObject* GetAttachments() {
wxList& list = self->GetAttachments();
return wxPy_ConvertList(&list);
}
}
bool GetAttachmentPositionEdge(int attachment, double *OUTPUT, double *OUTPUT,
int nth = 0, int no_arcs = 1, wxPyLineShape *line = NULL);
wxRealPoint CalcSimpleAttachment(const wxRealPoint& pt1, const wxRealPoint& pt2,
@@ -336,6 +360,7 @@ public:
void CopyWithHandler(wxPyShape& copy);
void Rotate(double x, double y, double theta);
double GetRotation();
void SetRotation(double rotation);
void ClearAttachments();
void Recentre(wxDC& dc);
void ClearPointList(wxList& list);