WOWCube Docs logo
WOWCube Docs
Mission Control
Section Shortcuts
APIExamplesSourceWOWConnectChangelog
Filters
SDK and language defaults persist in cookies.
SDK version
Navigation Tree
Collapsed by default, focused on the active path.
Made byMcKay Seamons
GitHub
  1. Home
  2. Docs
  3. API
  4. Cubios::Gfx::Text
Mission NodeSDK 6.1C++gfx engine

Cubios::Gfx::Text

Cubios::Gfx::Text Constructors Text Summary Constructs an object for rendering of text Arguments text string of text to render t Transform object that holds ...

API / SDK 6.1 / C++ / gfx engine

Cubios::Gfx::Text

Constructors

Text

Summary

Constructs an object for rendering of text

Arguments

  • text - string of text to render
  • t - Transform object that holds initial screen position, rotation and mirroring mode of the text object
  • fontSize - size of font, in pixels
  • color - text color
  • al - text alighnemnt mode

Synopsis

Cubios::Gfx::Text
CPP
1Text(std::string text, const Cubios::Math::Transform& t, uint32_t fontSize, const Cubios::Math::Color& color, Cubios::text_align_t al = Cubios::text_align_t::TEXT_ALIGN_CENTER)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Arguments

  • text - string of text to render
  • t - Transform object that holds initial screen position, rotation and mirroring mode of the text object
  • fontSize - size of font, in pixels
  • al - text alighnemnt mode

Synopsis

Cubios::Gfx::Text
CPP
1Text(std::string text, const Cubios::Math::Transform& t, uint32_t fontSize = 10, Cubios::text_align_t al = Cubios::text_align_t::TEXT_ALIGN_CENTER)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Arguments

  • text - string of text to render
  • x - x screen coordinate of initial postion of the text object
  • y - y screen coordinate of initial postion of the text object
  • fontSize - size of font, in pixels

Synopsis

Cubios::Gfx::Text
CPP
1Text(std::string text, float x, float y, uint32_t fontSize = 10)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Arguments

  • text - string of text to render
  • x - x screen coordinate of initial postion of the text object
  • y - y screen coordinate of initial postion of the text object
  • fontSize - size of font, in pixels
  • color - text color

Synopsis

Cubios::Gfx::Text
CPP
1Text(std::string text, float x, float y, uint32_t fontSize, const Cubios::Math::Color& color)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Public Methods

SetContent

Summary

Sets textual content to render

Arguments

  • text - string of text to render

Output

Returns a pointer to the object to which the change was applied

Synopsis

Cubios::Gfx::Text
CPP
1Cubios::SceneObject* SetContent(std::string text)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

FormatContent

Summary

Sets textual content to render via standard formatted string input

Arguments

  • format - formatted string

Output

Returns a pointer to the object to which the change was applied

Synopsis

Cubios::Gfx::Text
CPP
1Cubios::SceneObject* FormatContent(char const* format,...)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

SetFontSize

Summary

Sets text font size

Arguments

  • fontSize - font size, in pixels

Output

Returns a pointer to the object to which the change was applied

Synopsis

Cubios::Gfx::Text
CPP
1Cubios::SceneObject* SetFontSize(uint32_t fontSize)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Public Members

Content

Summary

Current text content

Synopsis

Cubios::Gfx::Text
CPP
1std::string Content
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Alignment

Summary

Current text alignment mode

Synopsis

Cubios::Gfx::Text
CPP
1Cubios::text_align_t Alignment
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

FontSize

Summary

Current text font size

Synopsis

Cubios::Gfx::Text
CPP
1uint32_t FontSize
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Jump Grid

On This Page

ConstructorsTextPublic MethodsSetContentFormatContentSetFontSizePublic MembersContentAlignmentFontSize
Context Rail

Related nodes

Cubios::Math
API / SDK 6.1 / C++ / gfx engine
Cubios::Math::Vec2
API / SDK 6.1 / C++ / gfx engine
Cubios::Math::Transform
API / SDK 6.1 / C++ / gfx engine
Cubios::Math::Color
API / SDK 6.1 / C++ / gfx engine
Previous Node
Cubios::Gfx::AnimatedSprite
API / SDK 6.1 / C++ / gfx engine
Next Node
Cubios::Gfx::OffscreenRenderTarget
API / SDK 6.1 / C++ / gfx engine