class Nya::Render::Text2D
- Nya::Render::Text2D
- Nya::Component
- Nya::Object
- Reference
- Object
Defined in:
nya/render/text2d.crConstant Summary
-
NYA_REGISTERED =
true
-
PROPERTIES =
{"autosize" => "$Bool", "position" => "CrystalEdge::Vector2", "size" => "CrystalEdge::Vector2", "color" => "Color", "text" => "String", "font" => "String"} of String => String
Class Method Summary
- .deserialize(xml, ctx : SerializationContext | Nil = nil)
- .transform_name(name)
-
.xml_name
Returns XML compatible name of a type (see
Nya::Serializable.translate_type
)
Instance Method Summary
- #autosize : Bool
- #autosize=(autosize : Bool)
- #color : Nya::Color
- #color=(c : Nya::Color)
- #font : String
- #font=(f : String)
- #position : CrystalEdge::Vector2
- #position=(position : CrystalEdge::Vector2)
-
#render(tag : String | Nil = nil)
Renders object
- #size : CrystalEdge::Vector2
- #size=(size : CrystalEdge::Vector2)
- #text : String
- #text=(t : String)
- #update
Instance methods inherited from class Nya::Component
log
log,
metadata
metadata,
metadata=(metadata : Nya::Render::Backend::Metadata | Nil)
metadata=,
metadata? : Nya::Render::Backend::Metadata?
metadata?,
parent
parent,
parent=(parent : Nil | Nya::GameObject)
parent=,
parent? : Nya::GameObject?
parent?
Class methods inherited from class Nya::Component
deserialize(xml, ctx : SerializationContext | Nil = nil)
deserialize,
transform_name(name)
transform_name,
xml_name
xml_name
Instance methods inherited from class Nya::Object
ancestor_or_same?(u : U.class) forall U
ancestor_or_same?,
awake
awake,
backend
backend,
enabled : Bool
enabled,
enabled=(enabled : Bool)
enabled=,
enabled? : Bool
enabled?,
engine
engine,
id : String?
id,
id=(id : Nil | String)
id=,
matches_tag?(tag)
matches_tag?,
render(tag : String | Nil = nil)
render,
tag : String?
tag,
tag=(tag : Nil | String)
tag=,
update
update
Class methods inherited from class Nya::Object
deserialize(xml, ctx : SerializationContext | Nil = nil)
deserialize,
transform_name(name)
transform_name,
xml_name
xml_name
Class Method Detail
Instance Method Detail
def render(tag : String | Nil = nil)
#
Description copied from class Nya::Object
Renders object
Override this method to implement custom render logic.