From 9547147a9ca0f258d5d25a0b0b116373ed29533f Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Sat, 8 May 2021 14:41:20 +1000 Subject: Feature [feature-requests:1373]. Add methods for refining idle task durations. --- src/Document.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Document.h') diff --git a/src/Document.h b/src/Document.h index e2d9eddce..690871ba8 100644 --- a/src/Document.h +++ b/src/Document.h @@ -207,6 +207,7 @@ public: ActionDuration(double duration_, double minDuration_, double maxDuration_) noexcept; void AddSample(size_t numberActions, double durationOfActions) noexcept; double Duration() const noexcept; + size_t ActionsInAllowedTime(double secondsAllowed) const noexcept; }; /** @@ -416,6 +417,7 @@ public: Sci::Position VCHomePosition(Sci::Position position) const; Sci::Position IndexLineStart(Sci::Line line, int lineCharacterIndex) const noexcept; Sci::Line LineFromPositionIndex(Sci::Position pos, int lineCharacterIndex) const noexcept; + Sci::Line LineFromPositionAfter(Sci::Line line, Sci::Position length) const noexcept; int SCI_METHOD SetLevel(Sci_Position line, int level) override; int SCI_METHOD GetLevel(Sci_Position line) const override; -- cgit v1.2.3