1 /** 2 * @file lv_draw_arc.h 3 * 4 */ 5 6 #ifndef LV_DRAW_ARC_H 7 #define LV_DRAW_ARC_H 8 9 #ifdef __cplusplus 10 extern "C" { 11 #endif 12 13 /********************* 14 * INCLUDES 15 *********************/ 16 #include "lv_draw.h" 17 18 /********************* 19 * DEFINES 20 *********************/ 21 22 /********************** 23 * TYPEDEFS 24 **********************/ 25 26 /********************** 27 * GLOBAL PROTOTYPES 28 **********************/ 29 30 /** 31 * Draw an arc. (Can draw pie too with great thickness.) 32 * @param center_x the x coordinate of the center of the arc 33 * @param center_y the y coordinate of the center of the arc 34 * @param radius the radius of the arc 35 * @param mask the arc will be drawn only in this mask 36 * @param start_angle the start angle of the arc (0 deg on the bottom, 90 deg on the right) 37 * @param end_angle the end angle of the arc 38 * @param style style of the arc (`body.thickness`, `body.main_color`, `body.opa` is used) 39 * @param opa_scale scale down all opacities by the factor 40 */ 41 void lv_draw_arc(lv_coord_t center_x, lv_coord_t center_y, uint16_t radius, const lv_area_t * mask, 42 uint16_t start_angle, uint16_t end_angle, const lv_style_t * style, lv_opa_t opa_scale); 43 44 /********************** 45 * MACROS 46 **********************/ 47 48 #ifdef __cplusplus 49 } /* extern "C" */ 50 #endif 51 52 #endif /*LV_DRAW_ARC*/ 53