Class: Shoes::ParentDimension

Inherits:
Dimension show all
Defined in:
shoes-core/lib/shoes/dimension.rb

Overview

A dimension class that draws its values directly from parent container unless values are set explicitly in the dimension instance.

Instance Method Summary collapse

Methods inherited from Dimension

#absolute_end, #absolute_end_position?, #absolute_position?, #absolute_start_position?, #displace_start, #displace_start=, #element_end, #element_extent, #element_extent=, #element_start, #end, #end=, #extent=, #in_bounds?, #initialize, #margin_end, #margin_end=, #margin_start, #margin_start=, #positioned?, #start, #start=, #value_factoring_in_relative

Constructor Details

This class inherits a constructor from Shoes::Dimension

Instance Method Details

#absolute_startObject



276
277
278
# File 'shoes-core/lib/shoes/dimension.rb', line 276

def absolute_start
  parent.element_start
end

#extentObject



280
281
282
# File 'shoes-core/lib/shoes/dimension.rb', line 280

def extent
  [extent_in_parent, raw_extent(super)].min
end