diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/lv_event.h | 2 | ||||
-rw-r--r-- | src/core/lv_obj_draw.h | 30 |
2 files changed, 16 insertions, 16 deletions
diff --git a/src/core/lv_event.h b/src/core/lv_event.h index 4cb6e4591..4fa53c294 100644 --- a/src/core/lv_event.h +++ b/src/core/lv_event.h @@ -116,7 +116,7 @@ typedef struct { * `res` should be set like this: * - If already set to ::LV_DRAW_RES_MASKED do nothing * - If there is a draw mask on the object set to ::LV_DRAW_RES_MASKED - * - If there is no draw mask but the object simply not covers the area to ::LV_DRAW_RES_NOT_COVER + * - If there is no draw mask but the object simply not covers the area set ::LV_DRAW_RES_NOT_COVER * - If the area is fully covered by the object leave `res` unchanged. */ typedef struct { diff --git a/src/core/lv_obj_draw.h b/src/core/lv_obj_draw.h index 63d4c310f..b59e187ab 100644 --- a/src/core/lv_obj_draw.h +++ b/src/core/lv_obj_draw.h @@ -34,21 +34,21 @@ typedef enum { typedef struct { - lv_area_t * draw_area; - const lv_area_t * clip_area; - lv_draw_rect_dsc_t * rect_dsc; - lv_draw_label_dsc_t * label_dsc; - lv_draw_line_dsc_t * line_dsc; - lv_draw_img_dsc_t * img_dsc; - lv_draw_arc_dsc_t * arc_dsc; - const lv_point_t * p1; - const lv_point_t * p2; - lv_coord_t radius; - char text[16]; - int32_t value; - uint32_t id; - uint32_t part; - const void * sub_part_ptr; + const lv_area_t * clip_area; /**< The current clip area, required if you need to draw something in the event*/ + lv_area_t * draw_area; /**< The area of the part being drawn*/ + lv_draw_rect_dsc_t * rect_dsc; /**< A draw descriptor that can be modified to changed what LVGL will draw. Set only for rectangle-like parts*/ + lv_draw_label_dsc_t * label_dsc; /**< A draw descriptor that can be modified to changed what LVGL will draw. Set only for text-like parts*/ + lv_draw_line_dsc_t * line_dsc; /**< A draw descriptor that can be modified to changed what LVGL will draw. Set only for line-like parts*/ + lv_draw_img_dsc_t * img_dsc; /**< A draw descriptor that can be modified to changed what LVGL will draw. Set only for image-like parts*/ + lv_draw_arc_dsc_t * arc_dsc; /**< A draw descriptor that can be modified to changed what LVGL will draw. Set only for arc-like parts*/ + const lv_point_t * p1; /**< A point calculated during drawing. E.g. a point of chart or the center of an arc.*/ + const lv_point_t * p2; /**< A point calculated during drawing. E.g. a point of chart.*/ + char text[16]; /**< A text calculated during drawing. Can be modified. E.g. tick labels on a chart axis.*/ + uint32_t part; /**< The current part for which the event is sent*/ + uint32_t id; /**< The index of the part. E.g. a button's index on button matrix or table cell index.*/ + lv_coord_t radius; /**< E.g. the radius of an arc (not the corner radius).*/ + int32_t value; /**< A value calculated during drawing. E.g. Chart's tick line value.*/ + const void * sub_part_ptr; /**< A pointer the identifies something in the part. E.g. chart series. */ }lv_obj_draw_part_dsc_t; /********************** |