#include <con_console.hpp>


Public Types | |
| enum | default_margin_constants { DEFAULT_HORIZONTAL_MARGIN = 5, DEFAULT_VERTICAL_MARGIN = 5 } |
| enum | color_constants { DEFAULT_FGCOLOR = 0xffffff, DEFAULT_BGCOLOR = 0x000000 } |
| typedef l4con_pslim_color_t | color_t |
| typedef l4con_pslim_rect_t | rect_t |
Public Member Functions | |
| static_assert (is_unsigned< color_t >::conforms,"color_t must be an unsigned integer") | |
Static Public Attributes | |
| static const color_t | colors [][2] |
Protected Member Functions | |
| con_console (const rect_t &margins=((rect_t){x:0, y:0, w:0, h:0})) | |
| vc_id (L4_INVALID_ID) | |
| int | open_console (void) |
| int | close_console (void) |
| bool | is_open (void) const |
| int | fill (color_t fill_color=DEFAULT_BGCOLOR, uint32_t x=0, uint32_t y=0, uint32_t w=0, uint32_t h=0) const |
| int | vscroll (color_t fill_color=DEFAULT_BGCOLOR, int delta=-1) const |
| int | clear (color_t fill_color=DEFAULT_BGCOLOR) const |
Static Protected Member Functions | |
| static l4_threadid_t | get_con_id (void) |
Protected Attributes | |
| const rect_t | margins |
| left, right, top & bottom margins (in pixels) | |
| rect_t | screen |
| screen position & dimension with margins applied (in pixels) | |
| l4_threadid_t | vc_id |
| console thread id | |
| uint8_t | mode |
| console mode | |
| uint32_t | bits_per_pixel |
| uint32_t | bytes_per_pixel |
| uint32_t | bytes_per_line |
| uint32_t | flags |
| uint32_t | font_width |
| uint32_t | font_height |
const con_console::color_t con_console::colors [static] |
Initial value:
{
{0x000000, 0x555555},
{0x7f0000, 0xff0000},
{0x007f00, 0x00ff00},
{0x7f7f00, 0xffff00},
{0x00007f, 0x0000ff},
{0x7f007f, 0xff00ff},
{0x007f7f, 0x00ffff},
{0xaaaaaa, 0xffffff}
}