Skip to content

Commit

Permalink
oop
Browse files Browse the repository at this point in the history
  • Loading branch information
nia-e committed Mar 30, 2023
1 parent b75a12c commit 793d254
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions lvgl-sys/build/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,43 @@ enum ColorMixRoundOFS {
}

pub struct LvConfig {
// Color
color_depth: ColorDepth,
color_16_swap: bool,
color_screen_transp: bool,
color_mix_round_ofs: ColorMixRoundOFS,
color_chroma_hex: u64,
// Memory
mem_custom: bool,
mem_size: u128,
mem_adr: usize, // TODO: is this fine when cross-compiling to targets w/ different usize?
mem_custom_include: String,
mem_custom_alloc: String,
mem_custom_free: String,
mem_custom_realloc: String,
mem_buf_max_num: u32,
memcpy_memset_std: bool,
// HAL
disp_def_refr_period: u32,
indev_def_read_period: u32,
tick_custom: bool,
tick_custom_include: String,
tick_custom_sys_time_expr: String,
dpi_def: u32,
// Drawing
draw_complex: bool,
shadow_cache_size: u128,
circle_cache_size: u128,
layer_simple_buf_size: u128,
layer_simple_fallback_buf_size: u128,
img_cache_def_size: u128,
gradient_max_stops: u32,
grad_cache_def_size: u128,
dither_grdient: bool,
dither_gradient_error_diffusion: bool,
disp_rot_max_buf: u128,
// GPU

}

pub struct DrvConfig {
Expand Down

0 comments on commit 793d254

Please sign in to comment.