Sha256: 5eaa0557f75cd9a414c765e08938eaf5f2eeb9cc931041821cf064a98d7dc691

Contents?: true

Size: 851 Bytes

Versions: 2

Compression:

Stored size: 851 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby_jard-0.3.1 lib/ruby_jard/layouts/narrow_horizontal_layout.rb
ruby_jard-0.3.0 lib/ruby_jard/layouts/narrow_horizontal_layout.rb