Class: Engine::Components::UI::FlexLayout::Base
- Inherits:
-
Object
- Object
- Engine::Components::UI::FlexLayout::Base
- Defined in:
- lib/engine/components/ui/flex/layout.rb
Instance Method Summary collapse
-
#initialize(direction:, gap:) ⇒ Base
constructor
A new instance of Base.
- #rect_for_child(child_ui_rect, index, children, parent_rect) ⇒ Object
Constructor Details
#initialize(direction:, gap:) ⇒ Base
Returns a new instance of Base.
7 8 9 10 |
# File 'lib/engine/components/ui/flex/layout.rb', line 7 def initialize(direction:, gap:) @direction = direction @gap = gap end |
Instance Method Details
#rect_for_child(child_ui_rect, index, children, parent_rect) ⇒ Object
12 13 14 |
# File 'lib/engine/components/ui/flex/layout.rb', line 12 def rect_for_child(child_ui_rect, index, children, parent_rect) raise NotImplementedError end |