class

Lemonade::Renderer

Inherits Reference < Object

TODO: multiple renderers:

  • abstract BaseRenderer (with start, stop, running?, notify_draw (or draw ? or request_draw ?))
  • MinimalRenderer (no debouncer, no fiber)
  • FiberRenderer (no debouncer)
  • with render debouncer like here (TODO: find a name)

TODO: explain how it works (?) and why it's important to render asynchronously, and not on every draw request

Constructors

new(name : String = "renderer")
Source

Class methods

start(content, io)
Source

Instance methods

controller
Source
enable_debug?
Source
name
Source
notify_draw
Source
redraw_minimal_interval
Source
redraw_minimal_interval=(redraw_minimal_interval : Time::Span)
Source
redraw_scheduled?
Source
rendering_loop(frame_block, io)
Source
running?
Source
start(content : Block::BaseBlock, io)
Source
stop
Source

Nested types