class
TermBuf::Batcher
- TermBuf::Batcher
- Reference
- Object
Overview
Collects drawing commands so a whole frame reaches the owning fibre as one channel operation.
Included Modules
Defined in:
termbuf/terminal/command.crInstance Method Summary
-
#commands : Array(TermBuf::Commands::Apply | TermBuf::Commands::Batch | TermBuf::Commands::Clear | TermBuf::Commands::Fill | TermBuf::Commands::Invalidate | TermBuf::Commands::Paint | TermBuf::Commands::Passthrough | TermBuf::Commands::Resize | TermBuf::Commands::Scroll | TermBuf::Commands::ScrollRegion | TermBuf::Commands::Stop | TermBuf::Commands::Write | TermBuf::Commands::WriteChar)
What has been collected so far, in the order it was drawn.
-
#empty? : Bool
Whether anything has been drawn.
-
#issue(command : Command) : Nil
Collects command rather than sending it.
Instance methods inherited from module TermBuf::Drawing
clear(style : Style = Style::DEFAULT) : Nil
clear,
fill(rect : Rect, char : Char = ' ', style : Style = Style::DEFAULT) : Nil
fill,
issue(command : Command) : Nil
issue,
passthrough(bytes : Bytes) : Nilpassthrough(text : String) : Nil passthrough, scroll(rect : Rect, lines : Int32, style : Style = Style::DEFAULT) : Nil scroll, scroll_region(region : Region, lines : Int32, style : Style = Style::DEFAULT) : Nil scroll_region, write(x : Int32, y : Int32, text : String, style : Style = Style::DEFAULT) : Nil write, write_char(x : Int32, y : Int32, char : Char, style : Style = Style::DEFAULT) : Nil write_char
Instance Method Detail
def commands : Array(TermBuf::Commands::Apply | TermBuf::Commands::Batch | TermBuf::Commands::Clear | TermBuf::Commands::Fill | TermBuf::Commands::Invalidate | TermBuf::Commands::Paint | TermBuf::Commands::Passthrough | TermBuf::Commands::Resize | TermBuf::Commands::Scroll | TermBuf::Commands::ScrollRegion | TermBuf::Commands::Stop | TermBuf::Commands::Write | TermBuf::Commands::WriteChar)
#
What has been collected so far, in the order it was drawn.