Class: Dedalus::Elements::Heading
- Inherits:
-
Text
- Object
- Dedalus::Element
- Atom
- Text
- Dedalus::Elements::Heading
- Defined in:
- lib/dedalus/elements/heading.rb
Direct Known Subclasses
PatternLibrary::HugeText, PatternLibrary::LargeText, PatternLibrary::TinyText
Instance Attribute Summary
Attributes inherited from Text
Attributes inherited from Atom
Attributes inherited from Dedalus::Element
#background_color, #color, #height, #height_percent, #margin, #offset, #position, #shown, #width, #width_percent, #z_order
Instance Method Summary collapse
Methods inherited from Text
description, #dimensions, example_data, #height, #render, #width
Methods inherited from Dedalus::Element
#big_font, #code_font, #draw_bounding_box, #huge_font, #initialize, #record?, #tiny_font, #view, #window
Constructor Details
This class inherits a constructor from Dedalus::Element
Instance Method Details
#font ⇒ Object
4 5 6 |
# File 'lib/dedalus/elements/heading.rb', line 4 def font big_font end |
#padding ⇒ Object
8 9 10 |
# File 'lib/dedalus/elements/heading.rb', line 8 def padding @padding ||= 2.0 end |