abstract class Lemonade::Block::CachedBlock
- Lemonade::Block::CachedBlock
- Lemonade::Block::BaseBlock
- Reference
- Object
Overview
Cached version of BaseBlock
.
Saves the rendering output, and use it to redraw the block, until it is marked dirty.
Direct Known Subclasses
- Lemonade::Bar
- Lemonade::Block::Container
- Lemonade::Block::OffsetBlock
- Lemonade::Block::TextBlock
- Lemonade::Block::TextSpacerBlock
Defined in:
lemonade/block/base.crInstance Method Summary
-
#dirty!
Mark the
Block
and its parents as 'dirty', to force re-render on next redraw. -
#dirty?
This is not a cached block, it always needs rendering.
-
#redraw(io)
TODO doc
Instance methods inherited from class Lemonade::Block::BaseBlock
dirty!
dirty!,
dirty?
dirty?,
inspect(io : IO) : Nil
inspect,
parents : Array(Lemonade::Block::BaseBlock)
parents,
parents=(parents : Array(Lemonade::Block::BaseBlock))
parents=,
redraw(io)
redraw,
render(io)
render
Instance Method Detail
def dirty?
#
Description copied from class Lemonade::Block::BaseBlock
This is not a cached block, it always needs rendering.