![]() |
1.11 |
#include <text.h>
Public Types | |
| enum class | TextRectFlag : uint32_t { selected = detail::bit(0) , eonel = detail::bit(1) , bol = detail::bit(2) } |
| TextRect flags. More... | |
| using | TextRectFlags = egt::Flags< TextRectFlag > |
| TextRect flags. | |
Public Member Functions | |
| TextRect (uint32_t behave, const Rect &rect, std::string text, const Font::TextExtents &te, const TextRectFlags &flags={}) noexcept | |
| bool | beginning_of_line (void) const |
| uint32_t | behave (void) const |
| bool | can_consolidate (const TextRect &r) const noexcept |
| TextRect & | consolidate (const TextRect &r, const Painter &painter) noexcept |
| void | deselect (void) |
| bool | end_of_non_empty_line (void) const |
| const TextRectFlags & | flags (void) const |
| bool | is_selected (void) const |
| size_t | length (void) const noexcept |
| void | mark_beginning_of_line (void) |
| void | point (const Point &p) |
| void | rect (const Rect &r) |
| const Rect & | rect (void) const |
| void | select (void) |
| TextRect | split (size_t pos, const Painter &painter) noexcept |
| const std::string & | text (void) const |
| const Font::TextExtents & | text_extents (void) const |
| using TextRectFlags = egt::Flags<TextRectFlag> |
TextRect flags.
|
strong |
TextRect flags.
| Enumerator | |
|---|---|
| selected | Text is selected. |
| eonel | End of non-empty line. |
| bol | Beginning of line. |
|
inlinenoexcept |
|
inline |
|
inline |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
noexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |