cpp-terminal 1.0.0
Small C++ library for writing multiplatform terminal applications
|
Class to return the focus of the terminal. More...
#include <cpp-terminal/focus.hpp>
Public Types | |
enum class | Type : std::int8_t { Unknown = -1 , Out = 0 , In = 1 } |
Public Member Functions | |
Focus ()=default | |
Focus (const Term::Focus::Type &type) | |
Term::Focus::Type | type () const |
Get the type of focus. | |
bool | in () const |
Check is the focus is in. | |
bool | out () const |
Check is the focus is out. | |
bool | operator== (const Term::Focus &focus) const |
bool | operator!= (const Term::Focus &focus) const |
Private Attributes | |
Term::Focus::Type | m_focus {Term::Focus::Type::Unknown} |
|
strong |
|
default |
|
explicit |
bool Term::Focus::in | ( | ) | const |
bool Term::Focus::operator!= | ( | const Term::Focus & | focus | ) | const |
bool Term::Focus::operator== | ( | const Term::Focus & | focus | ) | const |
bool Term::Focus::out | ( | ) | const |
Term::Focus::Type Term::Focus::type | ( | ) | const |
|
private |