]> git.saurik.com Git - wxWidgets.git/commitdiff
Use wxSTC_INVALID_POSITION in wxStyledTextCtrl documentation.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 8 Feb 2012 02:09:55 +0000 (02:09 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 8 Feb 2012 02:09:55 +0000 (02:09 +0000)
Comments -- copied from the generated header file -- used INVALID_POSITION
which is not actually defined, replace it with wxSTC_INVALID_POSITION that is
defined.

Closes #11454.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70542 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/wx/stc/stc.h

index 8d034bed539539186cc408468628f46abe69a880..4856c21485919adbb0bd300f0df8423dd6ae1c1a 100644 (file)
@@ -6,6 +6,9 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
+/// Represents an invalid position.
+#define wxSTC_INVALID_POSITION -1
+
 /**
     @class wxStyledTextEvent
 
@@ -548,7 +551,7 @@ public:
     void BraceHighlight(int pos1, int pos2);
 
     /**
-        Find the position of a matching brace or INVALID_POSITION if no match.
+        Find the position of a matching brace or wxSTC_INVALID_POSITION if no match.
     */
     int BraceMatch(int pos);
 
@@ -1084,13 +1087,13 @@ public:
 
     /**
         Retrieve the position of the end of the selection at the given line
-        (INVALID_POSITION if no selection on this line).
+        (wxSTC_INVALID_POSITION if no selection on this line).
     */
     int GetLineSelEndPosition(int line);
 
     /**
         Retrieve the position of the start of the selection at the given line
-        (INVALID_POSITION if no selection on this line).
+        (wxSTC_INVALID_POSITION if no selection on this line).
     */
     int GetLineSelStartPosition(int line);
 
@@ -1804,7 +1807,7 @@ public:
 
     /**
         Find the position from a point within the window but return
-        INVALID_POSITION if not close to text.
+        wxSTC_INVALID_POSITION if not close to text.
     */
     int PositionFromPointClose(int x, int y);
 
@@ -2985,7 +2988,7 @@ public:
 
     /**
        Find the position of a character from a point within the window.
-       Return INVALID_POSITION if not close to text.
+       Return wxSTC_INVALID_POSITION if not close to text.
     */
     int CharPositionFromPointClose(int x, int y);