Documentation ¶
Index ¶
- type Alignment
- type Cell
- type CharClass
- type LabelParams
- type Screen
- func (s *Screen) DrawLabel(dest utils.Rect, params *LabelParams, text string)
- func (s *Screen) DrawMiniBuffer(x, y, width, maxThreshold int, cells []Cell, index int, clearStyle tcell.Style, ...) (drawStartIndex, drawEndIndex int)
- func (s *Screen) DrawString(x, y, width int, str string, style tcell.Style)
- func (s *Screen) Echo(message string)
- func (s *Screen) Fill(dest utils.Rect, proto Cell)
- func (s *Screen) HideCursor()
- func (s *Screen) PrintEcho(str ...string)
- func (s *Screen) Resize(w, h int)
- func (s *Screen) RootRect() utils.Rect
- func (s *Screen) ShowCursor(x, y int)
- func (screen *Screen) Suspend()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cell ¶
type Cell struct { Ch rune // int32 Style tcell.Style Width int // screen cell width Class CharClass }
Cell represents a single character Cell on screen.
type LabelParams ¶
type Screen ¶
type Screen struct { tcell.Screen utils.Rect CX, CY int // cursor position // contains filtered or unexported fields }
func (*Screen) DrawLabel ¶
func (s *Screen) DrawLabel(dest utils.Rect, params *LabelParams, text string)
func (m *Screen) DrawLabel(dest utils.Rect, params *LabelParams, text []byte) {
func (*Screen) DrawMiniBuffer ¶
func (s *Screen) DrawMiniBuffer(x, y, width, maxThreshold int, cells []Cell, index int, clearStyle tcell.Style, prefix string, prefixWidth int, prefixStyle tcell.Style, echo bool) (drawStartIndex, drawEndIndex int)
x, y int : 描画領域の始点 width int : 領域の幅 maxThreshold int : カーソル位置左右 cells []Cell, index int : 表示内容, 表示開始位置 clearStyle tcell.Style prefixBytes []byte, prefixWidth int, prefixStyle tcell.Style: prefix 文字と幅、スタイル echo bool : 表示のみ
func (*Screen) DrawString ¶
fill space if width > 0
func (*Screen) Fill ¶
Fills an area which is an intersection between buffer and 'dest' with 'proto'.
func (*Screen) HideCursor ¶
func (s *Screen) HideCursor()
func (*Screen) PrintEcho ¶
引数が指定されている場合には 指定された文字列を screen.echo に追加して内容を即表示する 引数が指定されていない場合には screen.echo の内容を表示する
func (*Screen) ShowCursor ¶
ShowCursor sets the cursor position to (x, y).
Click to show internal directories.
Click to hide internal directories.