Searched defs:TextSelection (Results 1 – 1 of 1) sorted by relevance
33 struct TextSelection { struct35 TextSelection(int32_t base, int32_t extent) : baseOffset(base), extentOffset(extent) {} in TextSelection() argument50 bool operator==(const TextSelection& other) const argument63 inline int32_t GetStart() const in GetStart()71 inline int32_t GetEnd() const in GetEnd()79 inline bool IsValid() const in IsValid()84 std::string ToString() const in ToString()93 int32_t baseOffset = -1;96 int32_t extentOffset = -1;98 TextAffinity affinity = TextAffinity::UPSTREAM;