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;
38 Screen(
const Screen&) =
default;
39 Screen& operator=(
const Screen&) =
default;
41 std::string ToString()
const;
42 void ToString(std::string& ss)
const;
52 std::string ResetPosition(
bool clear =
false)
const;
53 void ResetPosition(std::string& ss,
bool clear =
false)
const;
61 enum Shape : uint8_t {
65 UnderlineBlinking = 3,
73 Cursor cursor()
const {
return cursor_; }
74 void SetCursor(Cursor cursor) { cursor_ = cursor; }
77 void Reserved1()
override;
78 void Reserved2()
override;
79 void Reserved3()
override;
80 void Reserved4()
override;
81 void Reserved5()
override;
82 void Reserved6()
override;
83 void Reserved7()
override;
84 void Reserved8()
override;
88 uint8_t RegisterHyperlink(std::string_view link);
89 const std::string& Hyperlink(uint8_t
id)
const;
91 using SelectionStyle = std::function<void(Cell&)>;
92 const SelectionStyle& GetSelectionStyle()
const;
93 void SetSelectionStyle(SelectionStyle decorator);
97 std::vector<std::string> hyperlinks_ = {
""};
100 SelectionStyle selection_style_ = [](Cell& cell) { cell.inverted ^=
true; };
#define FTXUI_EXPORT(component)
The FTXUI ftxui::Dimension:: namespace.
The FTXUI ftxui:: namespace.