Sha256: 9a6da3a4dfe8669373089855acd26b0220095fee98ef81dcb51972b07c02bdd5

Contents?: true

Size: 526 Bytes

Versions: 2

Compression:

Stored size: 526 Bytes

Contents

# frozen_string_literal: true

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

    def initialize(template:, width: 0, height: 0, x: 0, y: 0, box_width:, box_height:, box_x:, box_y:)
      @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
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby_jard-0.2.2 lib/ruby_jard/layout.rb
ruby_jard-0.2.1 lib/ruby_jard/layout.rb