Public Member Functions | |
void | backgroundColor (Color const &color) override |
void | foregroundColor (Color const &color) override |
void | defaultBackgroundColor () override |
void | defaultForegroundColor () override |
std::pair< std::uint32_t, std::uint32_t > | size () override |
void | moveCursor (std::uint32_t column, std::uint32_t line) override |
void | clear () override |
bool | outputMode (OutputMode mode) override |
Public Member Functions inherited from rili::service::ConsoleBase | |
virtual bool | outputMode (OutputMode mode)=0 |
Public Member Functions inherited from rili::stream::Duplex | |
Duplex (Duplex const &other)=delete | |
Duplex & | operator= (Duplex const &other)=delete |
Public Member Functions inherited from rili::stream::Readable | |
void | read (unsigned char *data, std::size_t size) |
void | read (char *data, std::size_t size) |
void | read (unsigned char &c) |
void | read (char &c) |
virtual void | consume (std::size_t size)=0 |
virtual view::Base const & | readableView () const =0 |
virtual std::exception_ptr | pull (std::size_t count)=0 |
OperationResult | operator>> (char &v) |
OperationResult | operator>> (unsigned char &v) |
OperationResult | operator>> (short &v) |
OperationResult | operator>> (unsigned short &v) |
OperationResult | operator>> (long &v) |
OperationResult | operator>> (unsigned long &v) |
OperationResult | operator>> (long long &v) |
OperationResult | operator>> (unsigned long long &v) |
OperationResult | operator>> (int &v) |
OperationResult | operator>> (unsigned int &v) |
OperationResult | operator>> (float &v) |
OperationResult | operator>> (double &v) |
OperationResult | operator>> (bool &v) |
OperationResult | operator>> (void *&v) |
OperationResult | operator>> (std::string &v) |
OperationResult | operator>> (Reader const &fn) |
Public Member Functions inherited from rili::stream::Writable | |
virtual void | write (char const *data, std::size_t size)=0 |
virtual std::exception_ptr | flush ()=0 |
virtual view::Base const & | writableView () const =0 |
void | write (unsigned char const *data, std::size_t size) |
Writable & | operator<< (char v) |
Writable & | operator<< (unsigned char v) |
Writable & | operator<< (char const *v) |
Writable & | operator<< (unsigned char const *v) |
Writable & | operator<< (std::string const &v) |
Writable & | operator<< (short v) |
Writable & | operator<< (unsigned short v) |
Writable & | operator<< (long v) |
Writable & | operator<< (unsigned long v) |
Writable & | operator<< (long long v) |
Writable & | operator<< (unsigned long long v) |
Writable & | operator<< (int v) |
Writable & | operator<< (unsigned int v) |
Writable & | operator<< (float v) |
Writable & | operator<< (double v) |
Writable & | operator<< (bool v) |
Writable & | operator<< (void *v) |
OperationResult | operator<< (std::function< OperationResult(Writable &)> const &fn) |
Writable & | operator<< (Writer const &fn) |
Static Public Member Functions | |
static ConsoleBase & | instance () |
Additional Inherited Members | |
Public Types inherited from rili::service::ConsoleBase | |
enum | OutputMode { VT100_16Colors, VT100_216Colors, VT100_RGBColors, WINDOWS_API, NONE } |
Protected Member Functions inherited from rili::stream::Duplex | |
Duplex (Duplex &&other)=default | |
Duplex & | operator= (Duplex &&other)=default |
Member Function Documentation
|
overridevirtual |
backgroundColor set given color as background if avaliable in seleted mode
- Parameters
-
color used as background color
Implements rili::service::ConsoleBase.
|
overridevirtual |
clear reset all output painting attributes, clear viewport and move cursor to top left corner
Implements rili::service::ConsoleBase.
|
overridevirtual |
defaultBackgroundColor reset background color to default
Implements rili::service::ConsoleBase.
|
overridevirtual |
defaultForegroundColor reset foreground color to default
Implements rili::service::ConsoleBase.
|
overridevirtual |
foregroundColor set given color as foreground if avaliable in seleted mode
- Parameters
-
color used as foreground color
Implements rili::service::ConsoleBase.
|
static |
instance used to aquire console service
- Returns
- instance of Console service
|
overridevirtual |
moveCursor set move cursor to given position
- Parameters
-
column line
Implements rili::service::ConsoleBase.
|
override |
outputMode try change mode to given one
- Parameters
-
mode used to select mode
- Returns
- true if mode succesfully changed, otherwise false
|
overridevirtual |
size aquire current size of console viewport
- Returns
- pair containing number of columnts and lines in viewport
Implements rili::service::ConsoleBase.
The documentation for this class was generated from the following file:
- rili/service/Console.hpp