Sha256: 5258438fb883ad4133e07fd1d51160a47c17be35b273f3b14f8f46879f8e9b2e

Contents?: true

Size: 847 Bytes

Versions: 3

Compression:

Stored size: 847 Bytes

Contents

# frozen_string_literal: true

module RubyJard
  class Layouts
    NarrowVerticalLayout = RubyJard::Templates::LayoutTemplate.new(
      min_width: 40,
      min_height: 24,
      fill_height: false,
      children: [
        RubyJard::Templates::LayoutTemplate.new(
          height_ratio: 80,
          width_ratio: 100,
          children: [
            RubyJard::Templates::ScreenTemplate.new(
              screen: :source,
              height_ratio: 60
            ),
            RubyJard::Templates::ScreenTemplate.new(
              screen: :variables,
              height_ratio: 40
            )
          ]
        ),
        RubyJard::Templates::ScreenTemplate.new(
          height: 2,
          screen: :menu
        )
      ]
    )
  end
end
RubyJard::Layouts.add_layout('narrow-vertical', RubyJard::Layouts::NarrowVerticalLayout)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby_jard-0.3.1 lib/ruby_jard/layouts/narrow_vertical_layout.rb
ruby_jard-0.3.0 lib/ruby_jard/layouts/narrow_vertical_layout.rb
ruby_jard-0.2.3 lib/ruby_jard/layouts/narrow_vertical_layout.rb