Module: RubyTUI::Widget
- Included in:
- RubyTUI::Widgets::AsyncImage, RubyTUI::Widgets::Block, RubyTUI::Widgets::Canvas, RubyTUI::Widgets::Chart, RubyTUI::Widgets::Gauge, RubyTUI::Widgets::Image, RubyTUI::Widgets::Paragraph, RubyTUI::Widgets::Popup, RubyTUI::Widgets::Scrollbar, RubyTUI::Widgets::Sparkline, RubyTUI::Widgets::Tabs
- Defined in:
- lib/rubytui/widget.rb
Overview
Widget protocol for immediate-mode rendering. Any object with #render(area, buf) is a widget. Include this module for documentation and a default NotImplementedError.
Instance Method Summary collapse
-
#render(area, buf) ⇒ void
Render this widget into the buffer at the given area.
Instance Method Details
#render(area, buf) ⇒ void
This method returns an undefined value.
Render this widget into the buffer at the given area.
Including classes override this method.
16 17 18 |
# File 'lib/rubytui/widget.rb', line 16 def render(area, buf) raise NotImplementedError, "#{self.class}#render(area, buf) not implemented" end |