|
FlatUI
An open source project by
FPL.
|
A structure holding attribute information of texts in a FontBuffer. More...
#include <font_buffer.h>
A structure holding attribute information of texts in a FontBuffer.
Classes | |
| struct | UnderlineInfo |
Public Member Functions | |
| FontBufferAttributes (bool underline, uint32_t color) | |
| The constructor to set default values. More... | |
| bool | operator== (const FontBufferAttributes &other) const |
| The equal-to operator for comparing FontBufferAttributes for equality. More... | |
| size_t | operator() (const FontBufferAttributes &key) const |
| The hash function for FontBufferAttributes. More... | |
| bool | operator() (const FontBufferAttributes &lhs, const FontBufferAttributes &rhs) const |
| The compare operator for FontBufferAttributes. | |
| uint32_t | get_color () const |
| bool | get_underline () const |
|
const std::vector < UnderlineInfo > & | get_underline_info () const |
| int32_t | get_slice_index () const |
| void | set_slice_index (int32_t slice_index) |
|
inline |
The constructor to set default values.
| [in] | underline | A flag indicating if the attribute has underline. |
| [in] | color | A color value of the attribute in RGBA8888. |
|
inline |
The hash function for FontBufferAttributes.
| [in] | key | A FontBufferAttributes to use as the key for hashing. |
size_t of the hash of the FontBufferAttributes.
|
inline |
The equal-to operator for comparing FontBufferAttributes for equality.
| [in] | other | The other FontBufferAttributes to check against for equality. |
true if the two FontBufferAttributes are equal. Otherwise it returns false.