Method: WindowBlessing::Window::Drawing#draw_internal
- Defined in:
- lib/window_blessing/window.rb
#draw_internal(area = nil) ⇒ Object
Update @buffer
The default implementation calls #draw_background and then calls #draw on each child.
NOTE: Buffer may have a cropping area set
NOTE: Safe to override. Calling ‘super’ is optional.
248 249 250 251 252 253 254 255 |
# File 'lib/window_blessing/window.rb', line 248 def draw_internal(area = nil) buffer.cropped(area) do draw_background children.each do |child| child.draw buffer, buffer.crop_area - child.loc end end end |