diff options
author | nyamatongwe <devnull@localhost> | 2011-06-07 11:37:15 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-06-07 11:37:15 +1000 |
commit | 1b3f7d04c670a821ee7ed2c60dea9e898742bf7c (patch) | |
tree | 5771504fece039a879bc0f34a413f72aa89849bc /src/RunStyles.h | |
parent | 50042e8d340a9a8f00028b850d18b721f19000c3 (diff) | |
download | scintilla-mirror-1b3f7d04c670a821ee7ed2c60dea9e898742bf7c.tar.gz |
Add accessor to RunStyles for number of runs so Decoration can use public API.
Make RunStyles internal methods private.
RunFromPosition is const so marker as const.
Diffstat (limited to 'src/RunStyles.h')
-rw-r--r-- | src/RunStyles.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/RunStyles.h b/src/RunStyles.h index a3b7ac7d1..d79e28618 100644 --- a/src/RunStyles.h +++ b/src/RunStyles.h @@ -15,10 +15,10 @@ namespace Scintilla { #endif class RunStyles { -public: +private: Partitioning *starts; SplitVector<int> *styles; - int RunFromPosition(int position); + int RunFromPosition(int position) const; int SplitRun(int position); void RemoveRun(int run); void RemoveRunIfEmpty(int run); @@ -37,6 +37,7 @@ public: void InsertSpace(int position, int insertLength); void DeleteAll(); void DeleteRange(int position, int deleteLength); + int Runs() const; bool AllSame() const; bool AllSameAs(int value) const; }; |