#include <text_range.h>
Definition at line 19 of file text_range.h.
◆ TextRange() [1/3]
flutter::TextRange::TextRange |
( |
size_t |
position | ) |
|
|
inlineexplicit |
◆ TextRange() [2/3]
flutter::TextRange::TextRange |
( |
size_t |
base, |
|
|
size_t |
extent |
|
) |
| |
|
inlineexplicit |
◆ TextRange() [3/3]
flutter::TextRange::TextRange |
( |
const TextRange & |
| ) |
|
|
default |
◆ ~TextRange()
virtual flutter::TextRange::~TextRange |
( |
| ) |
|
|
virtualdefault |
◆ base()
size_t flutter::TextRange::base |
( |
| ) |
const |
|
inline |
◆ collapsed()
bool flutter::TextRange::collapsed |
( |
| ) |
const |
|
inline |
Definition at line 77 of file text_range.h.
77{ return base_ == extent_; }
◆ Contains() [1/2]
bool flutter::TextRange::Contains |
( |
const TextRange & |
range | ) |
const |
|
inline |
Definition at line 88 of file text_range.h.
88 {
89 return range.start() >=
start() && range.end() <=
end();
90 }
◆ Contains() [2/2]
bool flutter::TextRange::Contains |
( |
size_t |
position | ) |
const |
|
inline |
◆ end()
size_t flutter::TextRange::end |
( |
| ) |
const |
|
inline |
Definition at line 54 of file text_range.h.
static float max(float r, float g, float b)
◆ extent()
size_t flutter::TextRange::extent |
( |
| ) |
const |
|
inline |
◆ length()
size_t flutter::TextRange::length |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ operator==()
bool flutter::TextRange::operator== |
( |
const TextRange & |
other | ) |
const |
|
inline |
Definition at line 92 of file text_range.h.
92 {
93 return base_ == other.base_ && extent_ == other.extent_;
94 }
◆ position()
size_t flutter::TextRange::position |
( |
| ) |
const |
|
inline |
Definition at line 68 of file text_range.h.
68 {
70 return extent_;
71 }
#define FML_DCHECK(condition)
◆ reversed()
bool flutter::TextRange::reversed |
( |
| ) |
const |
|
inline |
Definition at line 80 of file text_range.h.
80{ return base_ > extent_; }
◆ set_base()
void flutter::TextRange::set_base |
( |
size_t |
pos | ) |
|
|
inline |
◆ set_end()
void flutter::TextRange::set_end |
( |
size_t |
pos | ) |
|
|
inline |
Definition at line 57 of file text_range.h.
57 {
58 if (base_ <= extent_) {
60 } else {
62 }
63 }
◆ set_extent()
void flutter::TextRange::set_extent |
( |
size_t |
pos | ) |
|
|
inline |
◆ set_start()
void flutter::TextRange::set_start |
( |
size_t |
pos | ) |
|
|
inline |
Definition at line 45 of file text_range.h.
45 {
46 if (base_ <= extent_) {
48 } else {
50 }
51 }
◆ start()
size_t flutter::TextRange::start |
( |
| ) |
const |
|
inline |
Definition at line 42 of file text_range.h.
static float min(float r, float g, float b)
The documentation for this class was generated from the following file: