Guitar
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Document::Line Struct Reference

#include <AbstractTextEditorApplication.h>

Classes

struct  D
 
struct  Meta
 

Public Member Functions

 Line ()
 
 Line (std::vector< char > const &ba, LineType type=Normal)
 
 Line (QByteArray const &ba, LineType type=Normal)
 
Line detached_copy () const
 
void detach_if_shared ()
 
LineType type () const
 
void set_line_number_override (int32_t num)
 
LinePropertydetail () const
 
LinePropertynew_detail ()
 
void clear_detail ()
 
bool ends_with_new_line () const
 
std::string_view text () const
 
void set_text (std::vector< char > const &text)
 
std::vector< char > * to_vector ()
 
void append_text (std::string_view new_text)
 
void append_text (const std::vector< char > &new_text)
 
void append_text (char c)
 
void clear_visual_lines ()
 

Static Public Member Functions

static Line InvalidLine ()
 
static Line NormalEmptyLine ()
 
static Line None ()
 
static Line View (std::string_view v, LineType type)
 
static Line View (std::string_view v, Meta const &meta)
 
static Line View (std::string_view v)
 
static Line View (Line const &line)
 

Public Attributes

std::shared_ptr< Dsp
 

Constructor & Destructor Documentation

◆ Line() [1/3]

Document::Line::Line ( )
inline

◆ Line() [2/3]

Document::Line::Line ( std::vector< char > const &  ba,
LineType  type = Normal 
)
inlineexplicit
Here is the call graph for this function:

◆ Line() [3/3]

Document::Line::Line ( QByteArray const &  ba,
LineType  type = Normal 
)
inlineexplicit
Here is the call graph for this function:

Member Function Documentation

◆ append_text() [1/3]

void Document::Line::append_text ( char  c)
inline
Here is the call graph for this function:

◆ append_text() [2/3]

void Document::Line::append_text ( const std::vector< char > &  new_text)
inline
Here is the call graph for this function:

◆ append_text() [3/3]

void Document::Line::append_text ( std::string_view  new_text)
inline
Here is the call graph for this function:

◆ clear_detail()

void Document::Line::clear_detail ( )
inline

◆ clear_visual_lines()

void Document::Line::clear_visual_lines ( )
inline

◆ detach_if_shared()

void Document::Line::detach_if_shared ( )
inline
Here is the call graph for this function:

◆ detached_copy()

Line Document::Line::detached_copy ( ) const
inline
Here is the call graph for this function:

◆ detail()

LineProperty* Document::Line::detail ( ) const
inline

◆ ends_with_new_line()

bool Document::Line::ends_with_new_line ( ) const
inline
Here is the call graph for this function:

◆ InvalidLine()

static Line Document::Line::InvalidLine ( )
inlinestatic

◆ new_detail()

LineProperty* Document::Line::new_detail ( )
inline
Here is the call graph for this function:

◆ None()

static Line Document::Line::None ( )
inlinestatic

◆ NormalEmptyLine()

static Line Document::Line::NormalEmptyLine ( )
inlinestatic

◆ set_line_number_override()

void Document::Line::set_line_number_override ( int32_t  num)
inline
Here is the call graph for this function:

◆ set_text()

void Document::Line::set_text ( std::vector< char > const &  text)
inline
Here is the call graph for this function:

◆ text()

std::string_view Document::Line::text ( ) const
inline

◆ to_vector()

std::vector<char>* Document::Line::to_vector ( )
inline

◆ type()

LineType Document::Line::type ( ) const
inline

◆ View() [1/4]

static Line Document::Line::View ( Line const &  line)
inlinestatic
Here is the call graph for this function:

◆ View() [2/4]

static Line Document::Line::View ( std::string_view  v)
inlinestatic
Here is the call graph for this function:

◆ View() [3/4]

static Line Document::Line::View ( std::string_view  v,
LineType  type 
)
inlinestatic
Here is the call graph for this function:

◆ View() [4/4]

static Line Document::Line::View ( std::string_view  v,
Meta const &  meta 
)
inlinestatic

Member Data Documentation

◆ sp

std::shared_ptr<D> Document::Line::sp

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