|
GitOS
|
#include <text_mode.hpp>
Inherits Graphics.
Public Member Functions | |
| void | print_char (char c) override |
| Prints char to screen. | |
| void | print_char_color (char c, TEXT_MODE_COLOR color) override |
| Prints char to screen with specified color. | |
| void | print_string (const char *str) override |
| Prints string to screen. | |
| void | print_string_color (const char *str, TEXT_MODE_COLOR color) override |
| Prints string to screen with specified color. | |
| void | clear_screen () override |
| Clears screen. | |
| void | set_text_color (TEXT_MODE_COLOR color) override |
| Sets new framebuffer color to print. | |
| void | set_cursor (uint32_t x, uint32_t y) override |
| Sets framebuffer cursor to specified values. | |
| uint32_t | get_cursor_x () override |
| uint32_t | get_cursor_y () override |
| TEXT_MODE_COLOR | get_current_color () override |
| ~TextModeGraphics () override | |
| Public Member Functions inherited from Graphics | |
| virtual | ~Graphics ()=default |
Static Public Member Functions | |
| static Graphics * | the () |
| Static Public Member Functions inherited from Graphics | |
| static Graphics * | the () |
Additional Inherited Members | |
| Public Types inherited from Graphics | |
| enum | TEXT_MODE_COLOR { BLACK , BLUE , GREEN , CYAN , RED , PURPLE , BROWN , GREY , DARK_GREY , LIGHT_BLUE , LIGHT_GREEN , LIGHT_CYAN , LIGHT_RED , LIGHT_PURPLE , YELLOW , WHITE } |
|
inlineoverride |
|
overridevirtual |
Implements Graphics.
|
overridevirtual |
Implements Graphics.
|
overridevirtual |
Implements Graphics.
|
overridevirtual |
Prints char to screen.
| c | Character to print |
Implements Graphics.
References print_char_color().
|
overridevirtual |
Prints char to screen with specified color.
| c | Character to print |
| color | Color |
Implements Graphics.
|
overridevirtual |
Prints string to screen.
| str | String to print |
Implements Graphics.
References print_string_color().
|
overridevirtual |
Prints string to screen with specified color.
| str | String to print |
| color | Color |
Implements Graphics.
References print_char_color(), and strlen().
|
overridevirtual |
Sets framebuffer cursor to specified values.
| x | X to be set |
| y | Y to be set |
Implements Graphics.
|
overridevirtual |
|
static |