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

#include <cpp-terminal/size.hpp>

Public Member Functions

 Size ()=default
 
 Size (const Rows &rows, const Columns &columns)
 
 Size (const Columns &columns, const Rows &rows)
 
std::size_t area () const noexcept
 
const Rowsrows () const noexcept
 
const Columnscolumns () const noexcept
 

Private Attributes

Rows m_rows
 
Columns m_columns
 

Detailed Description

Definition at line 40 of file size.hpp.

Constructor & Destructor Documentation

◆ Size() [1/3]

Term::Size::Size ( )
default

◆ Size() [2/3]

Term::Size::Size ( const Rows & rows,
const Columns & columns )
inline

Definition at line 44 of file size.hpp.

Rows m_rows
Definition size.hpp:51
Columns m_columns
Definition size.hpp:52
const Rows & rows() const noexcept
Definition size.hpp:47
const Columns & columns() const noexcept
Definition size.hpp:48

◆ Size() [3/3]

Term::Size::Size ( const Columns & columns,
const Rows & rows )
inline

Definition at line 45 of file size.hpp.

Member Function Documentation

◆ area()

std::size_t Term::Size::area ( ) const
inlinenoexcept

Definition at line 46 of file size.hpp.

46{ return static_cast<std::size_t>(m_rows) * static_cast<std::size_t>(m_columns); }

◆ columns()

const Columns & Term::Size::columns ( ) const
inlinenoexcept

Definition at line 48 of file size.hpp.

48{ return m_columns; }

◆ rows()

const Rows & Term::Size::rows ( ) const
inlinenoexcept

Definition at line 47 of file size.hpp.

47{ return m_rows; }

Member Data Documentation

◆ m_columns

Columns Term::Size::m_columns
private

Definition at line 52 of file size.hpp.

◆ m_rows

Rows Term::Size::m_rows
private

Definition at line 51 of file size.hpp.


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