FrostWing
A lightweight raw-control operating system.
Loading...
Searching...
No Matches
flanterm_fb_context Struct Reference

Represents the context for framebuffer-based terminal rendering. More...

#include <fb.h>

Collaboration diagram for flanterm_fb_context:
Collaboration graph

Public Attributes

struct flanterm_context term
size_t font_width
size_t font_height
size_t glyph_width
size_t glyph_height
size_t font_scale_x
size_t font_scale_y
size_t offset_x
size_t offset_y
volatile uint32_t * framebuffer
size_t pitch
size_t width
size_t height
size_t bpp
size_t font_bits_size
uint8_t * font_bits
size_t font_bool_size
bool * font_bool
uint32_t ansi_colours [8]
uint32_t ansi_bright_colours [8]
uint32_t default_fg
uint32_t default_bg
uint32_t default_fg_bright
uint32_t default_bg_bright
size_t canvas_size
uint32_t * canvas
size_t grid_size
size_t queue_size
size_t map_size
struct flanterm_fb_chargrid
struct flanterm_fb_queue_itemqueue
size_t queue_i
struct flanterm_fb_queue_item ** map
uint32_t text_fg
uint32_t text_bg
size_t cursor_x
size_t cursor_y
uint32_t saved_state_text_fg
uint32_t saved_state_text_bg
size_t saved_state_cursor_x
size_t saved_state_cursor_y
size_t old_cursor_x
size_t old_cursor_y

Detailed Description

Represents the context for framebuffer-based terminal rendering.

Definition at line 76 of file fb.h.

Member Data Documentation

◆ ansi_bright_colours

uint32_t flanterm_fb_context::ansi_bright_colours[8]

ANSI bright color palette.

Definition at line 101 of file fb.h.

◆ ansi_colours

uint32_t flanterm_fb_context::ansi_colours[8]

ANSI color palette.

Definition at line 100 of file fb.h.

◆ bpp

size_t flanterm_fb_context::bpp

Bits per pixel.

Definition at line 93 of file fb.h.

◆ canvas

uint32_t* flanterm_fb_context::canvas

The canvas for rendering.

Definition at line 107 of file fb.h.

◆ canvas_size

size_t flanterm_fb_context::canvas_size

The size of the canvas.

Definition at line 106 of file fb.h.

◆ cursor_x

size_t flanterm_fb_context::cursor_x

The current cursor X position.

Definition at line 123 of file fb.h.

◆ cursor_y

size_t flanterm_fb_context::cursor_y

The current cursor Y position.

Definition at line 124 of file fb.h.

◆ default_bg

uint32_t flanterm_fb_context::default_bg

Default foreground and background colors.

Definition at line 102 of file fb.h.

◆ default_bg_bright

uint32_t flanterm_fb_context::default_bg_bright

Default bright foreground and background colors.

Definition at line 103 of file fb.h.

◆ default_fg

uint32_t flanterm_fb_context::default_fg

Definition at line 102 of file fb.h.

◆ default_fg_bright

uint32_t flanterm_fb_context::default_fg_bright

Definition at line 103 of file fb.h.

◆ font_bits

uint8_t* flanterm_fb_context::font_bits

The font bits data.

Definition at line 96 of file fb.h.

◆ font_bits_size

size_t flanterm_fb_context::font_bits_size

The size of font bits.

Definition at line 95 of file fb.h.

◆ font_bool

bool* flanterm_fb_context::font_bool

The font boolean data.

Definition at line 98 of file fb.h.

◆ font_bool_size

size_t flanterm_fb_context::font_bool_size

The size of font boolean data.

Definition at line 97 of file fb.h.

◆ font_height

size_t flanterm_fb_context::font_height

The height of the font.

Definition at line 80 of file fb.h.

◆ font_scale_x

size_t flanterm_fb_context::font_scale_x

The horizontal scaling factor for the font.

Definition at line 84 of file fb.h.

◆ font_scale_y

size_t flanterm_fb_context::font_scale_y

The vertical scaling factor for the font.

Definition at line 85 of file fb.h.

◆ font_width

size_t flanterm_fb_context::font_width

The width of the font.

Definition at line 79 of file fb.h.

◆ framebuffer

volatile uint32_t* flanterm_fb_context::framebuffer

The framebuffer to render on.

Definition at line 89 of file fb.h.

◆ glyph_height

size_t flanterm_fb_context::glyph_height

The height of a font glyph.

Definition at line 82 of file fb.h.

◆ glyph_width

size_t flanterm_fb_context::glyph_width

The width of a font glyph.

Definition at line 81 of file fb.h.

◆ grid

struct flanterm_fb_char* flanterm_fb_context::grid

The grid for rendering.

Definition at line 114 of file fb.h.

◆ grid_size

size_t flanterm_fb_context::grid_size

The size of the grid.

Definition at line 110 of file fb.h.

◆ height

size_t flanterm_fb_context::height

The height of the framebuffer.

Definition at line 92 of file fb.h.

◆ map

struct flanterm_fb_queue_item** flanterm_fb_context::map

The mapping structure.

Definition at line 119 of file fb.h.

◆ map_size

size_t flanterm_fb_context::map_size

The size of the mapping structure.

Definition at line 112 of file fb.h.

◆ offset_x

size_t flanterm_fb_context::offset_x

Definition at line 87 of file fb.h.

◆ offset_y

size_t flanterm_fb_context::offset_y

The offset for rendering.

Definition at line 87 of file fb.h.

◆ old_cursor_x

size_t flanterm_fb_context::old_cursor_x

Old cursor X position.

Definition at line 131 of file fb.h.

◆ old_cursor_y

size_t flanterm_fb_context::old_cursor_y

Old cursor Y position.

Definition at line 132 of file fb.h.

◆ pitch

size_t flanterm_fb_context::pitch

The pitch of the framebuffer.

Definition at line 90 of file fb.h.

◆ queue

struct flanterm_fb_queue_item* flanterm_fb_context::queue

The rendering queue.

Definition at line 116 of file fb.h.

◆ queue_i

size_t flanterm_fb_context::queue_i

The current index in the queue.

Definition at line 117 of file fb.h.

◆ queue_size

size_t flanterm_fb_context::queue_size

The size of the rendering queue.

Definition at line 111 of file fb.h.

◆ saved_state_cursor_x

size_t flanterm_fb_context::saved_state_cursor_x

Saved state of cursor X position.

Definition at line 128 of file fb.h.

◆ saved_state_cursor_y

size_t flanterm_fb_context::saved_state_cursor_y

Saved state of cursor Y position.

Definition at line 129 of file fb.h.

◆ saved_state_text_bg

uint32_t flanterm_fb_context::saved_state_text_bg

Saved state of text background color.

Definition at line 127 of file fb.h.

◆ saved_state_text_fg

uint32_t flanterm_fb_context::saved_state_text_fg

Saved state of text foreground color.

Definition at line 126 of file fb.h.

◆ term

struct flanterm_context flanterm_fb_context::term

The terminal context.

Definition at line 77 of file fb.h.

◆ text_bg

uint32_t flanterm_fb_context::text_bg

The background color for text.

Definition at line 122 of file fb.h.

◆ text_fg

uint32_t flanterm_fb_context::text_fg

The foreground color for text.

Definition at line 121 of file fb.h.

◆ width

size_t flanterm_fb_context::width

The width of the framebuffer.

Definition at line 91 of file fb.h.


The documentation for this struct was generated from the following file:
  • source/includes/fb.h