Class: Engine::Components::UI::FlexLayout::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/engine/components/ui/flex/layout.rb

Direct Known Subclasses

Pack, Stretch

Instance Method Summary collapse

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

Raises:

  • (NotImplementedError)


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