Class: SDC::Text
- Inherits:
-
Object
- Object
- SDC::Text
- Defined in:
- engine_docs/automatic_doc_Text.rb,
lib/core/Text.rb,
engine_docs/automatic_doc_Text.rb
Overview
Drawable text class
Instance Attribute Summary collapse
-
#character_size ⇒ Integer
Character size of the text in pixels.
-
#fill_color ⇒ Color
Fill color of the text.
-
#outline_color ⇒ Color
Outline color of the text.
-
#string ⇒ String
Content of the text.
Instance Method Summary collapse
- #color ⇒ Object
-
#color=(value) ⇒ Object
Use these methods only if you want to treat outline and fill color as same.
-
#initialize(content, font, character_size = 30) ⇒ Text
constructor
Creates a text object with the given content, font and character size.
Constructor Details
#initialize(content, font, character_size = 30) ⇒ Text
Creates a text object with the given content, font and character size
|
# File 'engine_docs/automatic_doc_Text.rb', line 9
|
Instance Attribute Details
#character_size ⇒ Integer
Character size of the text in pixels
|
# File 'engine_docs/automatic_doc_Text.rb', line 17
|
#outline_color ⇒ Color
Outline color of the text
|
# File 'engine_docs/automatic_doc_Text.rb', line 25
|
#string ⇒ String
Content of the text
|
# File 'engine_docs/automatic_doc_Text.rb', line 29
|
Instance Method Details
#color ⇒ Object
12 13 14 |
# File 'lib/core/Text.rb', line 12 def color return self.fill_color end |
#color=(value) ⇒ Object
Use these methods only if you want to treat outline and fill color as same
7 8 9 10 |
# File 'lib/core/Text.rb', line 7 def color=(value) self.outline_color = value self.fill_color = value end |