mirror of
https://github.com/Maks1mS/bubbles.git
synced 2024-12-24 14:44:38 +03:00
Comments
This commit is contained in:
parent
0c1781fbb3
commit
cc480dd2f3
@ -26,8 +26,8 @@ type Model struct {
|
|||||||
// a lot of ANSI escape codes you may see improved rendering in certain
|
// a lot of ANSI escape codes you may see improved rendering in certain
|
||||||
// terminals with this enabled.
|
// terminals with this enabled.
|
||||||
//
|
//
|
||||||
// This should only be used in program occupying the entire terminal width,
|
// This should only be used in program occupying the entire terminal,
|
||||||
// usually via the alternate screen buffer.
|
// which is usually via the alternate screen buffer.
|
||||||
HighPerformanceRendering bool
|
HighPerformanceRendering bool
|
||||||
|
|
||||||
lines []string
|
lines []string
|
||||||
@ -41,7 +41,8 @@ func NewModel(width, height int) Model {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m Model) SetSize(yPos int, width, height int) {
|
// TODO: do we really need this?
|
||||||
|
func (m Model) SetSize(yPos, width, height int) {
|
||||||
m.YPosition = yPos
|
m.YPosition = yPos
|
||||||
m.Width = width
|
m.Width = width
|
||||||
m.Height = height
|
m.Height = height
|
||||||
|
Loading…
Reference in New Issue
Block a user