1.10 |
#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 cairo_text_extents_t &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, cairo_t *cr) 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, cairo_t *cr) noexcept |
const std::string & | text (void) const |
const cairo_text_extents_t & | 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 |
|
noexcept |
|
inline |
|
inline |