Definition at line 21 of file screen_interactive.hpp.
◆ FixedSize()
◆ Fullscreen()
◆ FitComponent()
◆ TerminalOutput()
- Examples
- examples/component/checkbox.cpp, examples/component/input.cpp, examples/component/menu.cpp, examples/component/menu2.cpp, examples/component/menu_entries.cpp, examples/component/menu_multiple.cpp, examples/component/menu_style.cpp, examples/component/modal_dialog.cpp, examples/component/print_key_press.cpp, examples/component/radiobox.cpp, examples/component/slider.cpp, examples/component/slider_rgb.cpp, examples/component/tab_horizontal.cpp, examples/component/tab_vertical.cpp, and examples/component/toggle.cpp.
Definition at line 255 of file screen_interactive.cpp.
◆ Loop()
◆ ExitLoopClosure()
std::function< void()> ExitLoopClosure |
( |
| ) |
|
◆ PostEvent()
void PostEvent |
( |
Event |
event | ) |
|
◆ CaptureMouse()
◆ Create() [1/2]
Create a screen with the given dimension.
- Examples
- examples/dom/border.cpp, examples/dom/color_gallery.cpp, examples/dom/color_info_palette256.cpp, examples/dom/color_truecolor_HSV.cpp, examples/dom/color_truecolor_RGB.cpp, examples/dom/dbox.cpp, examples/dom/graph.cpp, examples/dom/gridbox.cpp, examples/dom/hflow.cpp, examples/dom/html_like.cpp, examples/dom/package_manager.cpp, examples/dom/paragraph.cpp, examples/dom/separator.cpp, examples/dom/size.cpp, examples/dom/spinner.cpp, examples/dom/style_blink.cpp, examples/dom/style_bold.cpp, examples/dom/style_color.cpp, examples/dom/style_dim.cpp, examples/dom/style_gallery.cpp, examples/dom/style_inverted.cpp, examples/dom/style_underlined.cpp, examples/dom/vbox_hbox.cpp, and examples/dom/window.cpp.
Definition at line 115 of file screen.cpp.
◆ Create() [2/2]
Create a screen with the given dimension along the x-axis and y-axis.
Definition at line 109 of file screen.cpp.
◆ at()
std::string & at |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
inherited |
Access a character a given position.
- Parameters
-
x | The character position along the x-axis. |
y | The character position along the y-axis. |
Definition at line 171 of file screen.cpp.
◆ PixelAt()
Pixel & PixelAt |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
inherited |
Access a Pixel at a given position.
- Parameters
-
x | The pixel position along the x-axis. |
y | The pixel position along the y-axis. |
Definition at line 178 of file screen.cpp.
◆ ToString()
Produce a std::string that can be used to print the Screen on the terminal. Don't forget to flush stdout. Alternatively, you can use Screen::Print();
Definition at line 138 of file screen.cpp.
◆ Print()
◆ dimx()
◆ dimy()
◆ ResetPosition()
std::string ResetPosition |
( |
bool |
clear = false | ) |
|
|
inherited |
Return a string to be printed in order to reset the cursor position to the beginning of the screen.
std::string reset_position;
while(true) {
auto document = render();
std::cout << reset_position << screen.ToString() << std::flush;
reset_position = screen.ResetPosition();
using namespace std::chrono_literals;
std::this_thread::sleep_for(0.01s);
}
- Returns
- The string to print in order to reset the cursor position to the beginning.
Definition at line 201 of file screen.cpp.
◆ Clear()
Clear all the pixel from the screen.
Definition at line 218 of file screen.cpp.
◆ ApplyShader()
◆ cursor()
◆ SetCursor()
void SetCursor |
( |
Cursor |
cursor | ) |
|
|
inlineinherited |
◆ stencil
◆ dimx_
◆ dimy_
◆ pixels_
std::vector<std::vector<Pixel> > pixels_ |
|
protectedinherited |
◆ cursor_
The documentation for this class was generated from the following files: