PatchworkOS
Loading...
Searching...
No Matches
log_screen_t Struct Reference

The screen buffer. More...

#include <log_screen.h>

Data Fields

uint64_t width
 The width of the buffer in chars.
 
uint64_t height
 The height of the buffer in chars.
 
uint64_t firstLineIndex
 The index of the first line in the buffer.
 
log_screen_pos_t invalidStart
 The start of the invalid region in the buffer, forms a rectangle with invalidEnd.
 
log_screen_pos_t invalidEnd
 The end of the invalid region in the buffer, forms a rectangle with invalidStart.
 
log_screen_line_t lines [CONFIG_SCREEN_MAX_LINES]
 The lines in the buffer, acts as a circular buffer.
 

Detailed Description

The screen buffer.

Definition at line 55 of file log_screen.h.

Field Documentation

◆ firstLineIndex

uint64_t log_screen_t::firstLineIndex

The index of the first line in the buffer.

Definition at line 59 of file log_screen.h.

Referenced by log_screen_clear(), log_screen_get_line(), log_screen_init(), and log_screen_scroll().

◆ height

uint64_t log_screen_t::height

◆ invalidEnd

log_screen_pos_t log_screen_t::invalidEnd

The end of the invalid region in the buffer, forms a rectangle with invalidStart.

Definition at line 62 of file log_screen.h.

Referenced by log_screen_clear(), log_screen_flush(), log_screen_init(), log_screen_invalidate(), and log_screen_scroll().

◆ invalidStart

log_screen_pos_t log_screen_t::invalidStart

The start of the invalid region in the buffer, forms a rectangle with invalidEnd.

Definition at line 61 of file log_screen.h.

Referenced by log_screen_clear(), log_screen_flush(), log_screen_init(), log_screen_invalidate(), and log_screen_scroll().

◆ lines

The lines in the buffer, acts as a circular buffer.

Definition at line 63 of file log_screen.h.

Referenced by log_screen_clear(), log_screen_get_line(), and log_screen_init().

◆ width

uint64_t log_screen_t::width

The width of the buffer in chars.

Definition at line 57 of file log_screen.h.

Referenced by log_screen_advance_cursor(), log_screen_get_width(), log_screen_init(), and log_screen_invalidate().


The documentation for this struct was generated from the following file: