Archived
1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
cli-old/lib/widgets/container.rb
2017-07-25 14:44:45 +00:00

21 lines
379 B
Ruby

# frozen_string_literal: true
module Widgets
class Container < Base
def subwin(x, y, width, height)
window.subwin height, width, y, x
end
def draw
children.each(&:render)
end
def focus
raise NotImplementedError, "#{self.class}#focus"
end
def children
raise NotImplementedError, "#{self.class}#children"
end
end
end