Class: Dedalus::Layer

Inherits:
Element show all
Defined in:
lib/dedalus/elements.rb

Overview

layer is an abstract element... maybe should also pull out rows and columns? could cleanup traversal impl, and will be clearer ultimately

Instance Attribute Summary collapse

Attributes inherited from Element

#background_color, #color, #height, #height_percent, #margin, #offset, #padding, #position, #shown, #width, #width_percent, #z_order

Instance Method Summary collapse

Methods inherited from Element

#big_font, #code_font, #draw_bounding_box, #font, #huge_font, #record?, #tiny_font, #view, #window

Constructor Details

#initialize(elements, freeform: false) ⇒ Layer

Returns a new instance of Layer.



106
107
108
109
# File 'lib/dedalus/elements.rb', line 106

def initialize(elements, freeform: false)
  @elements = elements
  @freeform = freeform
end

Instance Attribute Details

#elementsObject

Returns the value of attribute elements.



104
105
106
# File 'lib/dedalus/elements.rb', line 104

def elements
  @elements
end

Instance Method Details

#freeform?Boolean

Returns:

  • (Boolean)


115
116
117
# File 'lib/dedalus/elements.rb', line 115

def freeform?
  @freeform == true
end

#showObject



111
112
113
# File 'lib/dedalus/elements.rb', line 111

def show
  @elements
end