Flutter Engine
txt::Paragraph::Range< T > Struct Template Reference

#include <paragraph.h>

Public Member Functions

 Range ()
 
 Range (T s, T e)
 
bool operator== (const Range< T > &other) const
 
width () const
 
void Shift (T delta)
 

Public Attributes

start
 
end
 

Detailed Description

template<typename T>
struct txt::Paragraph::Range< T >

Definition at line 87 of file paragraph.h.

Constructor & Destructor Documentation

◆ Range() [1/2]

template<typename T>
txt::Paragraph::Range< T >::Range ( )
inline

Definition at line 88 of file paragraph.h.

◆ Range() [2/2]

template<typename T>
txt::Paragraph::Range< T >::Range ( s,
e 
)
inline

Definition at line 89 of file paragraph.h.

Member Function Documentation

◆ operator==()

template<typename T>
bool txt::Paragraph::Range< T >::operator== ( const Range< T > &  other) const
inline

Definition at line 93 of file paragraph.h.

References txt::Paragraph::Range< T >::end, and txt::Paragraph::Range< T >::start.

93  {
94  return start == other.start && end == other.end;
95  }

◆ Shift()

◆ width()

template<typename T>
T txt::Paragraph::Range< T >::width ( ) const
inline

Definition at line 97 of file paragraph.h.

References txt::start.

Referenced by txt::ParagraphTxt::Layout().

Member Data Documentation

◆ end

◆ start


The documentation for this struct was generated from the following file: