lv_calendar_chinese.h
API reference for lv_calendar_chinese.h
Summary
Functions
lv_calendar_set_chinese_mode
Enable the chinese calendar.
void lv_calendar_set_chinese_mode(lv_obj_t *obj, bool en)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to a calendar object. |
en | bool | true: enable chinese calendar; false: disable |
lv_calendar_get_day_name
Get the name of the day
const char * lv_calendar_get_day_name(lv_calendar_date_t *gregorian)| Name | Type | Description |
|---|---|---|
gregorian | lv_calendar_date_t * | to obtain the gregorian time for the name |
Returns: const char * — return the name of the day
lv_calendar_gregorian_to_chinese
Get the chinese time of the gregorian time (reference: https://www.cnblogs.com/liyang31tg/p/4123171.html)
void lv_calendar_gregorian_to_chinese(lv_calendar_date_t *gregorian_time, lv_calendar_chinese_t *chinese_time)| Name | Type | Description |
|---|---|---|
gregorian_time | lv_calendar_date_t * | need to convert to chinese time in gregorian time |
chinese_time | lv_calendar_chinese_t * | the chinese time convert from gregorian time |
Structs
struct
lv_calendar_chinese_t
| Member | Type | Description |
|---|---|---|
today | lv_calendar_date_t | |
leep_month | bool |
Used by 1 function
lv_calendar_gregorian_to_chinese— paramchinese_time
Dependencies
Indirect dependencies
lv_anim.hlv_area.hlv_assert.hlv_bidi.hlv_buttonmatrix.hlv_calendar_header_arrow.hlv_calendar_header_dropdown.hlv_color.hlv_color_op.hlv_conf_internal.hlv_display.hlv_draw.hlv_draw_arc.hlv_draw_blur.hlv_draw_buf.hlv_draw_image.hlv_draw_label.hlv_draw_line.hlv_draw_rect.hlv_draw_triangle.hlv_event.hlv_ext_data.hlv_flex.hlv_font.hlv_fs.hlv_grad.hlv_grid.hlv_group.hlv_image_decoder.hlv_image_dsc.hlv_indev.hlv_layout.hlv_log.hlv_math.hlv_matrix.hlv_mem.hlv_obj.hlv_obj_class.hlv_obj_draw.hlv_obj_event.hlv_obj_pos.hlv_obj_property.hlv_obj_scroll.hlv_obj_style.hlv_obj_style_gen.hlv_obj_tree.hlv_palette.hlv_profiler.hlv_profiler_builtin.hlv_sprintf.hlv_string.hlv_style.hlv_style_gen.hlv_symbol_def.hlv_text.hlv_timer.hlv_types.h
Last updated on