1 /** 2 * @file lv_draw_triangle.h 3 * 4 */ 5 6 #ifndef LV_DRAW_TRIANGLE_H 7 #define LV_DRAW_TRIANGLE_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 * 32 * @param points pointer to an array with 3 points 33 * @param mask the triangle will be drawn only in this mask 34 * @param style style for of the triangle 35 * @param opa_scale scale down all opacities by the factor (0..255) 36 */ 37 void lv_draw_triangle(const lv_point_t * points, const lv_area_t * mask, const lv_style_t * style, lv_opa_t opa_scale); 38 39 /** 40 * Draw a polygon from triangles. Only convex polygons are supported 41 * @param points an array of points 42 * @param point_cnt number of points 43 * @param mask polygon will be drawn only in this mask 44 * @param style style of the polygon 45 * @param opa_scale scale down all opacities by the factor (0..255) 46 */ 47 void lv_draw_polygon(const lv_point_t * points, uint32_t point_cnt, const lv_area_t * mask, const lv_style_t * style, 48 lv_opa_t opa_scale); 49 50 /********************** 51 * MACROS 52 **********************/ 53 54 #ifdef __cplusplus 55 } /* extern "C" */ 56 #endif 57 58 #endif /*LV_DRAW_TRIANGLE_H*/ 59