Class: CTioga2::Graphics::Styles::FullTextStyle

Inherits:
BaseTextStyle show all
Defined in:
lib/ctioga2/graphics/styles/texts.rb

Overview

The style of a full text object.

Direct Known Subclasses

TextLabel

Constant Summary

Constants inherited from BasicStyle

BasicStyle::OldAttrAccessor

Instance Attribute Summary collapse

Attributes inherited from BaseTextStyle

#alignement, #angle, #justification, #scale, #shift

Method Summary

Methods inherited from BaseTextStyle

#draw_text

Methods inherited from BasicStyle

attr_accessor, attributes, from_hash, #instance_variable_defined?, #set_from_hash, #to_hash, #update_from_other

Instance Attribute Details

#colorObject

The color of the text



86
87
88
# File 'lib/ctioga2/graphics/styles/texts.rb', line 86

def color
  @color
end

#positionObject

The (horizontal) position with respect to a location. You’ll seldom need that.



90
91
92
# File 'lib/ctioga2/graphics/styles/texts.rb', line 90

def position
  @position
end