CLASS v1.8.0

Text

kn::Text

Declared in kraken/graphics/Text.hpp

Reference

C++ API

shadowColor

variable
Color shadowColor {}

No description in the source header.

shadowOffset

variable
Vec2 shadowOffset {}

No description in the source header.

Text

function
Text(const Font &font, const std::string &text="")

No description in the source header.

~Text

function
~Text()

No description in the source header.

draw

function
void draw(Vec2 pos={}, const Vec2 &anchor=Anchor::TOP_LEFT) const

No description in the source header.

setFont

function
void setFont(const Font &font) const

No description in the source header.

setWrapWidth

function
void setWrapWidth(int wrapWidth) const

No description in the source header.

getWrapWidth

function
int getWrapWidth() const

No description in the source header.

setText

function
void setText(const std::string &text) const

No description in the source header.

getText

function
std::string getText() const

No description in the source header.

setColor

function
void setColor(const Color &color) const

No description in the source header.

getColor

function
Color getColor() const

No description in the source header.

getRect

function
Rect getRect() const

No description in the source header.

getSize

function
Vec2 getSize() const

No description in the source header.

getWidth

function
int getWidth() const

No description in the source header.

getHeight

function
int getHeight() const

No description in the source header.

Find your next step

Start typing to search the manual.