Sha256: 39709a8470a7d96dd8ee7442c39afac8bb0a23d912ef39033da0f5d62ae8a54c

Contents?: true

Size: 427 Bytes

Versions: 6

Compression:

Stored size: 427 Bytes

Contents

# frozen_string_literal: true

class Scarpe
  # STARTING SINGLY, APPENDING TO TOP LEVEL BOX. later will do nested
  class << self
    # Width means nothing right now, but we'll get there
    def flow(width: 1.0)
      vertbox = UI.new_vertical_box
      old_parent = $parent_box ? $parent_box : $vbox
      $parent_box = vertbox
      yield
      UI.box_append(old_parent, vertbox, 1)
      $parent_box = nil
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
scarpe-0.4.0 spikes/libui/flow.rb
scarpe-0.3.0 spikes/libui/flow.rb
scarpe-0.2.2 spikes/libui/flow.rb
lacci-0.2.1 lib/scarpe/libui/flow.rb
scarpe-0.2.1 lib/scarpe/libui/flow.rb
scarpe-0.2.0 lib/scarpe/libui/flow.rb