-
Notifications
You must be signed in to change notification settings - Fork 80
/
text_iter.go
76 lines (74 loc) · 1.79 KB
/
text_iter.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
package gtki
type TextIter interface {
BackwardChar() bool
BackwardChars(int) bool
BackwardCursorPosition() bool
BackwardCursorPositions(int) bool
BackwardLine() bool
BackwardLines(int) bool
BackwardToTagToggle(TextTag) bool
BackwardVisibleCursorPosition() bool
BackwardVisibleCursorPositions(int) bool
BackwardVisibleLine() bool
BackwardVisibleLines(int) bool
BeginsTag(TextTag) bool
CanInsert(bool) bool
Compare(TextIter) int
Editable(bool) bool
EndsLine() bool
EndsSentence() bool
EndsTag(TextTag) bool
EndsWord() bool
Equal(TextIter) bool
ForwardChar() bool
ForwardChars(int) bool
ForwardCursorPosition() bool
ForwardCursorPositions(int) bool
ForwardLine() bool
ForwardLines(int) bool
ForwardSentenceEnd() bool
ForwardSentenceEnds(int) bool
ForwardToEnd()
ForwardToLineEnd() bool
ForwardToTagToggle(TextTag) bool
ForwardVisibleCursorPosition() bool
ForwardVisibleCursorPositions(int) bool
ForwardVisibleLine() bool
ForwardVisibleLines(int) bool
ForwardVisibleWordEnd() bool
ForwardVisibleWordEnds(v1 int) bool
ForwardWordEnd() bool
ForwardWordEnds(int) bool
GetBuffer() TextBuffer
GetBytesInLine() int
GetChar() rune
GetCharsInLine() int
GetLine() int
GetLineIndex() int
GetLineOffset() int
GetOffset() int
GetSlice(TextIter) string
GetText(TextIter) string
GetVisibleLineIndex() int
GetVisibleLineOffset() int
GetVisibleSlice(TextIter) string
GetVisibleText(TextIter) string
HasTag(TextTag) bool
InRange(TextIter, TextIter) bool
InsideSentence() bool
InsideWord() bool
IsCursorPosition() bool
IsEnd() bool
IsStart() bool
SetLine(int)
SetLineIndex(int)
SetLineOffset(int)
SetOffset(int)
SetVisibleLineIndex(int)
SetVisibleLineOffset(int)
StartsLine() bool
StartsSentence() bool
StartsWord() bool
TogglesTag(TextTag) bool
}
func AssertTextIter(_ TextIter) {}