mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
CtrlLib: LineEdit Scroll* enhacements (thanks Koldo)
git-svn-id: svn://ultimatepp.org/upp/trunk@5046 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
e1bb9c4e89
commit
07ee6d1fb3
2 changed files with 26 additions and 0 deletions
|
|
@ -287,6 +287,10 @@ public:
|
|||
|
||||
void ScrollUp() { sb.LineUp(); }
|
||||
void ScrollDown() { sb.LineDown(); }
|
||||
void ScrollPageUp() { sb.PageUp(); }
|
||||
void ScrollPageDown() { sb.PageDown(); }
|
||||
void ScrollBegin() { sb.VertBegin(); }
|
||||
void ScrollEnd() { sb.VertEnd(); }
|
||||
|
||||
Rect GetLineScreenRect(int line) const;
|
||||
|
||||
|
|
|
|||
|
|
@ -93,6 +93,22 @@ Does not account for tabulators.&]
|
|||
[s2;%% Scrolls the text single line down.&]
|
||||
[s3; &]
|
||||
[s4; &]
|
||||
[s5;:LineEdit`:`:ScrollPageUp`(`): [@(0.0.255) void]_[* ScrollPageUp]()&]
|
||||
[s2;%% Scrolls the text one page up.&]
|
||||
[s3; &]
|
||||
[s4; &]
|
||||
[s5;:LineEdit`:`:ScrollPageDown`(`): [@(0.0.255) void]_[* ScrollPageDown]()&]
|
||||
[s2;%% Scrolls the text one page down.&]
|
||||
[s3; &]
|
||||
[s4; &]
|
||||
[s5;:LineEdit`:`:ScrollBegin`(`): [@(0.0.255) void]_[* ScrollBegin]()&]
|
||||
[s2;%% Scrolls the text to the begin.&]
|
||||
[s3; &]
|
||||
[s4; &]
|
||||
[s5;:LineEdit`:`:ScrollEnd`(`): [@(0.0.255) void]_[* ScrollEnd]()&]
|
||||
[s2;%% Scrolls the text to the end.&]
|
||||
[s3; &]
|
||||
[s4; &]
|
||||
[s5;:LineEdit`:`:GetLineScreenRect`(int`)const: [_^Rect^ Rect]_[* GetLineScreenRect]([@(0.0.255) i
|
||||
nt]_[*@3 line])_[@(0.0.255) const]&]
|
||||
[s2;%% Gets the absolute screen rectangle position of [%-*@3 line].&]
|
||||
|
|
@ -101,6 +117,12 @@ nt]_[*@3 line])_[@(0.0.255) const]&]
|
|||
the view.&]
|
||||
[s3; &]
|
||||
[s4; &]
|
||||
[s5;:LineEdit`:`:TopCursor`(int`): [@(0.0.255) void]_[* TopCursor]([@(0.0.255) int]_[*@3 line
|
||||
s]_`=_[@3 0])&]
|
||||
[s2;%% Scrolls the text to place the line with cursor placed [%-*@3 lines]
|
||||
from the top.&]
|
||||
[s3;%% &]
|
||||
[s4; &]
|
||||
[s5;:LineEdit`:`:CenterCursor`(`): [@(0.0.255) void]_[* CenterCursor]()&]
|
||||
[s2;%% Scrolls the text to place the line with cursor at the center
|
||||
of the view.&]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue