mirror of
https://github.com/Maks1mS/bubbles.git
synced 2025-03-14 13:03:44 +03:00
Renderer comments
This commit is contained in:
parent
0eaea5cc5d
commit
3321ac12a9
@ -10,9 +10,18 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type renderer struct {
|
type renderer struct {
|
||||||
Out io.Writer
|
// Out is the io.Writer to which we should render. Generally, this will
|
||||||
Y int
|
// be stdout.
|
||||||
Height int
|
Out io.Writer
|
||||||
|
|
||||||
|
// Y is the vertical offset of the rendered area in relation to the
|
||||||
|
// terminal window.
|
||||||
|
Y int
|
||||||
|
|
||||||
|
// Height is the number of rows to render.
|
||||||
|
Height int
|
||||||
|
|
||||||
|
// TerminalHeight is the total height of the terminal.
|
||||||
TerminalHeight int
|
TerminalHeight int
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user