X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5f331691d426fef30965f9dd802c9a4fc87d785b..822e690b221486b63895b5f14a7fbee2bc966fe5:/contrib/include/wx/ogl/lines.h diff --git a/contrib/include/wx/ogl/lines.h b/contrib/include/wx/ogl/lines.h index 4ecf39fd18..e5df1f9660 100644 --- a/contrib/include/wx/ogl/lines.h +++ b/contrib/include/wx/ogl/lines.h @@ -6,7 +6,7 @@ // Created: 12/07/98 // RCS-ID: $Id$ // Copyright: (c) Julian Smart -// Licence: wxWindows licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _OGL_LINES_H_ @@ -83,7 +83,7 @@ class WXDLLIMPEXP_OGL wxArrowHead: public wxObject double m_spacing; // Spacing from the last arrowhead double m_arrowSize; // Length of arrowhead wxString m_arrowName; // Name of arrow - bool m_saveToFile; // TRUE if we want to save custom arrowheads to file. + bool m_saveToFile; // true if we want to save custom arrowheads to file. wxPseudoMetaFile* m_metaFile; // Pseudo metafile if this is a custom arrowhead long m_id; // identifier }; @@ -102,14 +102,14 @@ class WXDLLIMPEXP_OGL wxLineShape: public wxShape // correct position // moveControlPoints must be disabled when a control point is being // dragged. - void OnMoveLink(wxDC& dc, bool moveControlPoints = TRUE); - bool OnMovePre(wxDC& dc, double x, double y, double old_x, double old_y, bool display = TRUE); + void OnMoveLink(wxDC& dc, bool moveControlPoints = true); + bool OnMovePre(wxDC& dc, double x, double y, double old_x, double old_y, bool display = true); void OnDraw(wxDC& dc); void OnDrawContents(wxDC& dc); void OnDrawControlPoints(wxDC& dc); void OnEraseControlPoints(wxDC& dc); void OnErase(wxDC& dc); - virtual bool OnMoveControlPoint(int WXUNUSED(which), double WXUNUSED(x), double WXUNUSED(y)) { return FALSE; } + virtual bool OnMoveControlPoint(int WXUNUSED(which), double WXUNUSED(x), double WXUNUSED(y)) { return false; } virtual bool OnMoveMiddleControlPoint(wxDC& dc, wxLineControlPoint* lpt, const wxRealPoint& pt); virtual bool OnLabelMovePre(wxDC& dc, wxLabelShape* labelShape, double x, double y, double old_x, double old_y, bool display); void OnDrawOutline(wxDC& dc, double x, double y, double w, double h); @@ -176,9 +176,9 @@ class WXDLLIMPEXP_OGL wxLineShape: public wxShape virtual void OnSizingEndDragLeft(wxControlPoint* pt, double x, double y, int keys=0, int attachment = 0); // Override select, to create/delete temporary label-moving objects - void Select(bool select = TRUE, wxDC* dc = NULL); + void Select(bool select = true, wxDC* dc = NULL); - // Set to spline (TRUE) or line (FALSE) + // Set to spline (true) or line (false) inline void SetSpline(bool spl) { m_isSpline = spl; } inline bool IsSpline() const { return m_isSpline; } @@ -204,7 +204,7 @@ class WXDLLIMPEXP_OGL wxLineShape: public wxShape // This is really to distinguish between lines and other images. // For lines, want to pass drag to canvas, since lines tend to prevent // dragging on a canvas (they get in the way.) - virtual bool Draggable() const { return FALSE; } + virtual bool Draggable() const { return false; } // Does the copying for this object void Copy(wxShape& copy); @@ -221,7 +221,7 @@ class WXDLLIMPEXP_OGL wxLineShape: public wxShape // E.g. reference list: a b c d e // Current line list: a d // Add c, then line list is: a c d - // If no legal arrowhead position, return FALSE. + // If no legal arrowhead position, return false. // Assume reference list is for one end only, since it potentially defines // the ordering for any one of the 3 positions. So we don't check // the reference list for arrowhead position. @@ -248,6 +248,8 @@ class WXDLLIMPEXP_OGL 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)