4#ifndef FTXUI_SCREEN_SCREEN_HPP
5#define FTXUI_SCREEN_SCREEN_HPP
27class FTXUI_EXPORT(SCREEN) Screen :
public Surface {
30 Screen(
int dimx,
int dimy);
31 static Screen Create(Dimensions dimension);
32 static Screen Create(Dimensions width, Dimensions height);
35 ~Screen()
override =
default;
37 std::string ToString()
const;
38 void ToString(std::string& ss)
const;
48 std::string ResetPosition(
bool clear =
false)
const;
49 void ResetPosition(std::string& ss,
bool clear =
false)
const;
61 UnderlineBlinking = 3,
69 Cursor cursor()
const {
return cursor_; }
70 void SetCursor(Cursor cursor) { cursor_ = cursor; }
74 uint8_t RegisterHyperlink(std::string_view link);
75 const std::string& Hyperlink(uint8_t
id)
const;
77 using SelectionStyle = std::function<void(Cell&)>;
78 const SelectionStyle& GetSelectionStyle()
const;
79 void SetSelectionStyle(SelectionStyle decorator);
83 std::vector<std::string> hyperlinks_ = {
""};
86 SelectionStyle selection_style_ = [](Cell& cell) { cell.inverted ^=
true; };
#define FTXUI_EXPORT(component)
The FTXUI ftxui::Dimension:: namespace.
The FTXUI ftxui:: namespace.