#include <Malena/Graphics/Controls/Avatar.h>
|
| static std::string | initialsOf (const std::string &name) |
| | Two-letter initials from a display name (first + last word, else first char).
|
Definition at line 23 of file Avatar.h.
◆ Avatar()
◆ getGlobalBounds()
◆ getPosition()
◆ initialsOf()
| std::string ml::Avatar::initialsOf |
( |
const std::string & | name | ) |
|
|
inlinestatic |
Two-letter initials from a display name (first + last word, else first char).
Definition at line 74 of file Avatar.h.
◆ setAvatarSize()
| void ml::Avatar::setAvatarSize |
( |
float | px | ) |
|
|
inline |
◆ setColorSeed()
| void ml::Avatar::setColorSeed |
( |
std::size_t | seed | ) |
|
|
inline |
Force the tile colour by seed instead of the name hash.
Definition at line 94 of file Avatar.h.
◆ setInitialsColor()
| void ml::Avatar::setInitialsColor |
( |
const sf::Color & | c | ) |
|
|
inline |
◆ setName()
| void ml::Avatar::setName |
( |
const std::string & | name | ) |
|
|
inline |
◆ setPalette()
| void ml::Avatar::setPalette |
( |
std::vector< sf::Color > | palette | ) |
|
|
inline |
◆ setPosition()
| void ml::Avatar::setPosition |
( |
const sf::Vector2f & | position | ) |
|
|
inlineoverride |
◆ setPresence()
| void ml::Avatar::setPresence |
( |
bool | present | ) |
|
|
inline |
Show/hide the corner presence dot.
Definition at line 99 of file Avatar.h.
◆ setPresenceColor()
| void ml::Avatar::setPresenceColor |
( |
const sf::Color & | c | ) |
|
|
inline |
The documentation for this class was generated from the following file: