STLL
0.0
Simple Text Layouting Library
|
This structure encapsulates a drawing command. More...
Public Types | |
enum | { CMD_GLYPH, CMD_RECT, CMD_IMAGE } |
Public Member Functions | |
CommandData_c (std::shared_ptr< FontFace_c > f, glyphIndex_t i, int32_t x_, int32_t y_, Color_c c_, uint16_t rad) | |
constructor to create an glyph command More... | |
CommandData_c (const std::string &i, int32_t x_, int32_t y_, uint32_t w_, uint32_t h_) | |
constructor to create an image command More... | |
CommandData_c (int32_t x_, int32_t y_, uint32_t w_, uint32_t h_, Color_c c_, uint16_t rad) | |
constructor to create an rectangle command More... | |
Public Attributes | |
enum STLL::CommandData_c:: { ... } | command |
specifies what to draw More... | |
glyphIndex_t | glyphIndex |
which glyph to draw More... | |
std::shared_ptr< FontFace_c > | font |
which front to take the glyph from More... | |
Color_c | c |
colour of the glyph or the rectangle More... | |
uint16_t | blurr |
blurr radius to use for this command More... | |
std::string | imageURL |
URL of image to draw. More... | |
position of the glyph, or upper left corner of rectangle or image | |
int32_t | x |
x position More... | |
int32_t | y |
y position More... | |
width and height of the rectangle to draw | |
uint32_t | w |
width of block More... | |
uint32_t | h |
height of block More... | |
This structure encapsulates a drawing command.
anonymous enum |
|
inline |
constructor to create an glyph command
|
inline |
constructor to create an image command
|
inline |
constructor to create an rectangle command
uint16_t STLL::CommandData_c::blurr |
blurr radius to use for this command
Color_c STLL::CommandData_c::c |
colour of the glyph or the rectangle
enum { ... } STLL::CommandData_c::command |
specifies what to draw
std::shared_ptr<FontFace_c> STLL::CommandData_c::font |
which front to take the glyph from
glyphIndex_t STLL::CommandData_c::glyphIndex |
which glyph to draw
uint32_t STLL::CommandData_c::h |
height of block
std::string STLL::CommandData_c::imageURL |
URL of image to draw.
uint32_t STLL::CommandData_c::w |
width of block
int32_t STLL::CommandData_c::x |
x position
int32_t STLL::CommandData_c::y |
y position