uiterm: make View interface methods private
This commit is contained in:
@@ -14,17 +14,17 @@ type Label struct {
|
||||
x0, y0, x1, y1 int
|
||||
}
|
||||
|
||||
func (l *Label) SetActive(ui *Ui, active bool) {
|
||||
func (l *Label) setActive(ui *Ui, active bool) {
|
||||
}
|
||||
|
||||
func (l *Label) SetBounds(ui *Ui, x0, y0, x1, y1 int) {
|
||||
func (l *Label) setBounds(ui *Ui, x0, y0, x1, y1 int) {
|
||||
l.x0 = x0
|
||||
l.y0 = y0
|
||||
l.x1 = x1
|
||||
l.y1 = y1
|
||||
}
|
||||
|
||||
func (l *Label) Draw(ui *Ui) {
|
||||
func (l *Label) draw(ui *Ui) {
|
||||
reader := strings.NewReader(l.Text)
|
||||
for y := l.y0; y < l.y1; y++ {
|
||||
for x := l.x0; x < l.x1; x++ {
|
||||
@@ -39,8 +39,8 @@ func (l *Label) Draw(ui *Ui) {
|
||||
}
|
||||
}
|
||||
|
||||
func (l *Label) KeyEvent(ui *Ui, mod Modifier, key Key) {
|
||||
func (l *Label) keyEvent(ui *Ui, mod Modifier, key Key) {
|
||||
}
|
||||
|
||||
func (l *Label) CharacterEvent(ui *Ui, chr rune) {
|
||||
func (l *Label) characterEvent(ui *Ui, chr rune) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user