Sha256: bf9aeb4c7b0807291019d822667e77ce06f766cb811d3cc2ea1e685e00b209f6

Contents?: true

Size: 679 Bytes

Versions: 3

Compression:

Stored size: 679 Bytes

Contents

# frozen_string_literal: true

module RubyJard
  ##
  # Data object to store calculated layout
  class Layout
    attr_accessor :template, :parent_template,
                  :box_width, :box_height, :box_x, :box_y,
                  :width, :height, :x, :y

    def initialize(
      template: nil, parent_template: nil,
      width: 0, height: 0, x: 0, y: 0,
      box_width: 0, box_height: 0, box_x: 0, box_y: 0
    )
      @template = template
      @box_width = box_width
      @box_height = box_height
      @box_x = box_x
      @box_y = box_y
      @width = width
      @height = height
      @x = x
      @y = y
      @parent_template = parent_template
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby_jard-0.3.1 lib/ruby_jard/layout.rb
ruby_jard-0.3.0 lib/ruby_jard/layout.rb
ruby_jard-0.2.3 lib/ruby_jard/layout.rb