cpp-terminal 1.0.0
Small C++ library for writing multiplatform terminal applications
Loading...
Searching...
No Matches
Term::Position Class Reference

#include <cpp-terminal/position.hpp>

Public Member Functions

 Position ()=default
 
 Position (const Row &row, const Column &column)
 
 Position (const Column &column, const Row &row)
 
const Rowrow () const noexcept
 
const Columncolumn () const noexcept
 

Private Attributes

Row m_row {1}
 
Column m_column {1}
 

Detailed Description

Definition at line 40 of file position.hpp.

Constructor & Destructor Documentation

◆ Position() [1/3]

Term::Position::Position ( )
default

◆ Position() [2/3]

Term::Position::Position ( const Row & row,
const Column & column )
inline

Definition at line 44 of file position.hpp.

44: m_row(row), m_column(column) {};
Column m_column
Definition position.hpp:51
const Column & column() const noexcept
Definition position.hpp:47
const Row & row() const noexcept
Definition position.hpp:46

◆ Position() [3/3]

Term::Position::Position ( const Column & column,
const Row & row )
inline

Definition at line 45 of file position.hpp.

45: m_row(row), m_column(column) {};

Member Function Documentation

◆ column()

const Column & Term::Position::column ( ) const
inlinenoexcept

Definition at line 47 of file position.hpp.

47{ return m_column; }

◆ row()

const Row & Term::Position::row ( ) const
inlinenoexcept

Definition at line 46 of file position.hpp.

46{ return m_row; }

Member Data Documentation

◆ m_column

Column Term::Position::m_column {1}
private

Definition at line 51 of file position.hpp.

51{1};

◆ m_row

Row Term::Position::m_row {1}
private

Definition at line 50 of file position.hpp.

50{1};

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