module BBS::Window::Frame
How a Window draws itself: the shadow, the frame with its title, and the gadgets on it (close, number, zoom, size corner).
Public Instance Methods
Source
# File lib/bbs/window/frame.rb, line 15 def render(frame) render_shadow(frame) render_box(frame) render_gadgets(frame) @children.each { |c| c.render(frame) if c.visible } end
Draws the window into the BBS::FrameBuffer frame: the shadow (unless maximized), the frame (double when focused or modal) with the title, the close gadget [■], the window number, the zoom gadget and the size corner as they apply and fit, then the visible children. While moving or sizing from the keyboard the title shows KBD_TITLES.