class GSF::StyledText
- GSF::StyledText
- SF::Text
- SF::Transformable
- Reference
- Object
Defined in:
gsf/styled_text.crConstant Summary
-
FontSize =
10
Constructors
Class Method Summary
- .get_styles(style_types : String) : Array(SF::Text::Style)
- .hex_to_color(color_hex : String) : SF::Color
Instance Method Summary
-
#draw(target : SF::RenderTarget, states : SF::RenderStates)
:nodoc:
-
#global_bounds
Get the global bounding rectangle of the entity
- #parse_text_sections
-
#string=(string : String)
Set the text's string
- #to_words_and_spaces : Array(SF::Text)
Constructor Detail
Class Method Detail
Instance Method Detail
def draw(target : SF::RenderTarget, states : SF::RenderStates)
#
Description copied from class SF::Text
:nodoc:
def global_bounds
#
Description copied from class SF::Text
Get the global bounding rectangle of the entity
The returned rectangle is in global coordinates, which means that it takes into account the transformations (translation, rotation, scale, ...) that are applied to the entity. In other words, this function returns the bounds of the text in the global 2D world's coordinate system.
Returns: Global bounding rectangle of the entity
def string=(string : String)
#
Description copied from class SF::Text
Set the text's string
A text's string is empty by default.
- string - New string
See also: string