-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathITextView.cs
More file actions
41 lines (34 loc) · 1.35 KB
/
ITextView.cs
File metadata and controls
41 lines (34 loc) · 1.35 KB
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Windows.Forms;
namespace ST.Library.UI.STTextBox
{
public interface ITextView
{
void Init(STTextBox.Core textBoxCore);
void OnTextStartChange(ISTTextBoxRender render, TextManagerTextEventArgs e);
void OnLineChanged(ISTTextBoxRender render, TextManagerLineEventArgs e);
void OnLineRemoved(ISTTextBoxRender render, TextManagerLineEventArgs e);
void OnLineAdded(ISTTextBoxRender render, TextManagerLineEventArgs e);
void OnLineCountChanged(ISTTextBoxRender render, EventArgs e);
void OnTextChanged(ISTTextBoxRender render, TextManagerTextEventArgs e);
void OnSetCursor(MouseEventArgs e);
void OnResize(EventArgs e);
void OnDrawView(ISTTextBoxRender render);
void OnCalcTextRectangle();
void OnCalcScroll(STTextBoxScrollInfo scrollInfo);
int GetCurrentCharOffset();
Point ControlToView(Point pt);
Point ViewToControl(Point pt);
FindInfo FindFromPoint(Point pt);
FindInfo FindFromCharIndex(int nIndex);
void SetCaretPostion(int nCharIndex);
FindInfo SetCaretPostion(Point pt);
void ScrollXToMuosePoint(int nX);
void ScrollYToMousePoint(int nY);
bool ScrollToCaret();
}
}