muteki
Loading...
Searching...
No Matches
lcd_thread_safe_s Struct Reference

A thread-safe variant of the LCD descriptor used on some versions of Besta RTOS. More...

#include <common.h>

Data Fields

lcd_surface_tsurface
 Surface linked to the LCD.
 
void * pixel_end
 End address of the pixel/framebuffer.
 
size_t pixel_size
 Total size of the pixel/framebuffer in bytes.
 
int bg_color
 Current background color.
 
int transparent_color
 Current transparent color.
 
lcd_draw_t draw
 Per-LCD states shared by drawing routines.
 
lcd_font_t font
 Per-LCD states shared by specifically font rendering routines.
 
lcd_cursor_t saved_cursor
 A copy of the cursor states when the LCD descriptor was created.
 
ui_rect_t drawing_area
 Usable drawing area of the LCD.
 
int unk_0x74 [3]
 Unknown.
 
lcd_cursor_tcursor
 Cursor states.
 
short width
 Width of the LCD in pixels.
 
short height
 Height of the LCD in pixels.
 
int rotation
 Current canvas rotation.
 
short depth_bytes
 Integer size of each pixel in bytes.
 
short xsize
 Pixel row size in bytes.
 
lcd_rotate_callback_t rotate
 Rotation callback.
 
int unk_0x94
 Unknown.
 
critical_section_tcs
 A critical section descriptor. It's unclear where it is used.
 
void(* lock )(void)
 Shortcut to lock the descriptor.
 
void(* unlock )(void)
 Shortcut to unlock the descriptor.
 
int unk_0xa4 [23]
 Unknown.
 

Detailed Description

A thread-safe variant of the LCD descriptor used on some versions of Besta RTOS.

Define MUTEKI_HAS_THREAD_SAFE_LCD as 1 to make this the underlying type of lcd_t.

Field Documentation

◆ depth_bytes

short lcd_thread_safe_s::depth_bytes

Integer size of each pixel in bytes.

Note
This will be 0 when a pixel takes less than a byte.
Todo:
Verify.

◆ rotate

lcd_rotate_callback_t lcd_thread_safe_s::rotate

Rotation callback.

See also
lcd_rotate_callback_t

◆ rotation

int lcd_thread_safe_s::rotation

Current canvas rotation.

The value is 90deg * rotation counter-clockwise.

◆ xsize

short lcd_thread_safe_s::xsize

Pixel row size in bytes.

Todo:
Verify.

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