4#ifndef FTXUI_SCREEN_SCREEN_HPP
5#define FTXUI_SCREEN_SCREEN_HPP
71 std::string&
at(
int x,
int y);
72 const std::string&
at(
int x,
int y)
const;
116 const std::string&
Hyperlink(uint8_t
id)
const;
A class representing terminal colors.
A rectangular grid of Pixel.
const std::string & Hyperlink(uint8_t id) const
std::string ToString() const
void SetCursor(Cursor cursor)
static Screen Create(Dimensions dimension)
Create a screen with the given dimension.
Pixel & PixelAt(int x, int y)
Access a cell (Pixel) at a given position.
std::string & at(int x, int y)
Access a character in a cell at a given position.
Screen(int dimx, int dimy)
uint8_t RegisterHyperlink(const std::string &link)
std::string ResetPosition(bool clear=false) const
Return a string to be printed in order to reset the cursor position to the beginning of the screen.
void Clear()
Clear all the pixel from the screen.
std::vector< std::string > hyperlinks_
std::vector< std::vector< Pixel > > pixels_
A unicode character and its associated style.