X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b5f62a0b2db198609b45dec622a018dae37008e..1d529ef7eed851db9d007821decb9639e4e7fc16:/contrib/include/wx/ogl/lines.h diff --git a/contrib/include/wx/ogl/lines.h b/contrib/include/wx/ogl/lines.h index 22d7a3b22c..a7f2f96ec0 100644 --- a/contrib/include/wx/ogl/lines.h +++ b/contrib/include/wx/ogl/lines.h @@ -16,9 +16,10 @@ #pragma interface "lines.h" #endif -class wxLabelShape; -class wxPseudoMetaFile; -class wxLineControlPoint; + +class WXDLLIMPEXP_OGL wxLabelShape; +class WXDLLIMPEXP_OGL wxPseudoMetaFile; +class WXDLLIMPEXP_OGL wxLineControlPoint; /* * Arcs with multiple arrowheads * @@ -46,12 +47,12 @@ class wxLineControlPoint; #define LINE_ALIGNMENT_TO_NEXT_HANDLE 2 #define LINE_ALIGNMENT_NONE 0 -class wxArrowHead: public wxObject +class WXDLLIMPEXP_OGL wxArrowHead: public wxObject { DECLARE_DYNAMIC_CLASS(wxArrowHead) public: - wxArrowHead(WXTYPE type = 0, int end = 0, double size = 0.0, double dist = 0.0, const wxString& name = "", wxPseudoMetaFile *mf = NULL, + wxArrowHead(WXTYPE type = 0, int end = 0, double size = 0.0, double dist = 0.0, const wxString& name = wxEmptyString, wxPseudoMetaFile *mf = NULL, long arrowId = -1); ~wxArrowHead(); wxArrowHead(wxArrowHead& toCopy); @@ -88,8 +89,8 @@ class wxArrowHead: public wxObject }; // Line object -class wxLabelShape; -class wxLineShape: public wxShape +class WXDLLIMPEXP_OGL wxLabelShape; +class WXDLLIMPEXP_OGL wxLineShape: public wxShape { DECLARE_DYNAMIC_CLASS(wxLineShape) @@ -210,8 +211,9 @@ class wxLineShape: public wxShape // Add an arrowhead. wxArrowHead *AddArrow(WXTYPE type, int end = ARROW_POSITION_END, - double arrowSize = 10.0, double xOffset = 0.0, const wxString& name = "", - wxPseudoMetaFile *mf = NULL, long arrowId = -1); + double arrowSize = 10.0, double xOffset = 0.0, + const wxString& name = wxEmptyString, + wxPseudoMetaFile *mf = NULL, long arrowId = -1); // Add an arrowhead in the position indicated by the reference // list of arrowheads, which contains all legal arrowheads for this @@ -246,6 +248,8 @@ class wxLineShape: public wxShape void SetAlignmentType(bool isEnd, int alignType); bool GetAlignmentOrientation(bool isEnd); int GetAlignmentType(bool isEnd); + int GetAlignmentStart() const { return m_alignmentStart; } + int GetAlignmentEnd() const { return m_alignmentEnd; } // Find next control point in line after the start/end point // (depending on whether the node object is at start or end)