uiterm: prefix View methods with ui

This commit is contained in:
Tim Cooper
2014-12-06 22:12:33 -04:00
parent e026b662ce
commit 00c1d9b928
6 changed files with 41 additions and 44 deletions

View File

@@ -22,10 +22,10 @@ func (t *Textview) uiInitialize(ui *Ui) {
t.ui = ui
}
func (t *Textview) setActive(active bool) {
func (t *Textview) uiSetActive(active bool) {
}
func (t *Textview) setBounds(x0, y0, x1, y1 int) {
func (t *Textview) uiSetBounds(x0, y0, x1, y1 int) {
t.x0 = x0
t.y0 = y0
t.x1 = x1
@@ -102,7 +102,7 @@ func (t *Textview) Clear() {
t.parsedLines = nil
}
func (t *Textview) draw() {
func (t *Textview) uiDraw() {
var reader *strings.Reader
line := len(t.parsedLines) - 1 - t.CurrentLine
if line < 0 {
@@ -140,8 +140,8 @@ func (t *Textview) draw() {
}
}
func (t *Textview) keyEvent(mod Modifier, key Key) {
func (t *Textview) uiKeyEvent(mod Modifier, key Key) {
}
func (t *Textview) characterEvent(chr rune) {
func (t *Textview) uiCharacterEvent(chr rune) {
}