Home
last modified time | relevance | path

Searched refs:array (Results 1 – 25 of 55) sorted by relevance

123

/lvgl-latest/src/misc/
Dlv_array.c38 void lv_array_init(lv_array_t * array, uint32_t capacity, uint32_t element_size) in lv_array_init() argument
40 array->size = 0; in lv_array_init()
41 array->capacity = capacity; in lv_array_init()
42 array->element_size = element_size; in lv_array_init()
44 array->data = lv_malloc(capacity * element_size); in lv_array_init()
45 array->inner_alloc = true; in lv_array_init()
46 LV_ASSERT_MALLOC(array->data); in lv_array_init()
49 void lv_array_init_from_buf(lv_array_t * array, void * buf, uint32_t capacity, uint32_t element_siz… in lv_array_init_from_buf() argument
52 array->size = 0; in lv_array_init_from_buf()
53 array->capacity = capacity; in lv_array_init_from_buf()
[all …]
Dlv_array.h54 void lv_array_init(lv_array_t * array, uint32_t capacity, uint32_t element_size);
65 void lv_array_init_from_buf(lv_array_t * array, void * buf, uint32_t capacity, uint32_t element_siz…
73 bool lv_array_resize(lv_array_t * array, uint32_t new_capacity);
79 void lv_array_deinit(lv_array_t * array);
86 uint32_t lv_array_size(const lv_array_t * array);
93 uint32_t lv_array_capacity(const lv_array_t * array);
100 bool lv_array_is_empty(const lv_array_t * array);
107 bool lv_array_is_full(const lv_array_t * array);
121 void lv_array_clear(lv_array_t * array);
127 void lv_array_shrink(lv_array_t * array);
[all …]
Dlv_circle_buf.c24 lv_array_t array; member
62 lv_array_init(&circle_buf->array, capacity, element_size); in lv_circle_buf_create()
83 lv_array_init_from_buf(&circle_buf->array, buf, capacity, element_size); in lv_circle_buf_create_from_buf()
93 lv_circle_buf_t * lv_circle_buf_create_from_array(const lv_array_t * array) in lv_circle_buf_create_from_array() argument
95 LV_ASSERT_NULL(array); in lv_circle_buf_create_from_array()
96 if(array == NULL) { in lv_circle_buf_create_from_array()
107 circle_buf->array = *array; in lv_circle_buf_create_from_array()
121 if(lv_array_resize(&circle_buf->array, capacity) == false) { in lv_circle_buf_resize()
137 lv_array_deinit(&circle_buf->array); in lv_circle_buf_destroy()
153 return lv_array_capacity(&circle_buf->array); in lv_circle_buf_capacity()
[all …]
Dlv_event.c32 static void cleanup_event_list_core(lv_array_t * array);
81 lv_array_t back_array_head = list->array; in lv_event_send()
132 lv_array_init(&list->array, 1, sizeof(lv_event_dsc_t *)); in lv_event_add()
135 lv_array_push_back(&list->array, &dsc); in lv_event_add()
359 static void cleanup_event_list_core(lv_array_t * array) in cleanup_event_list_core() argument
361 const uint32_t size = lv_array_size(array); in cleanup_event_list_core()
364 lv_event_dsc_t ** dsc_i = lv_array_at(array, i); in cleanup_event_list_core()
365 lv_event_dsc_t ** dsc_kept = lv_array_at(array, kept_count); in cleanup_event_list_core()
373 if(kept_count == 0) lv_array_deinit(array); in cleanup_event_list_core()
374 else lv_array_resize(array, kept_count); in cleanup_event_list_core()
[all …]
Dlv_circle_buf.h56 lv_circle_buf_t * lv_circle_buf_create_from_array(const lv_array_t * array);
Dlv_event.h121 lv_array_t array; member
/lvgl-latest/tests/src/test_cases/
Dtest_array.c7 static lv_array_t array; variable
11 lv_array_init(&array, LV_ARRAY_DEFAULT_CAPACITY, sizeof(int32_t)); in setUp()
16 lv_array_deinit(&array); in tearDown()
22 TEST_ASSERT_EQUAL_UINT32(0, lv_array_size(&array)); in test_array_append_values()
24 lv_array_push_back(&array, &i); in test_array_append_values()
27 TEST_ASSERT_EQUAL_UINT32(new_size, lv_array_size(&array)); in test_array_append_values()
33 lv_array_push_back(&array, &v); in test_array_set_get()
34 int32_t * r = lv_array_at(&array, 0); in test_array_set_get()
41 lv_array_push_back(&array, &i); in test_array_size()
44 TEST_ASSERT_EQUAL_UINT32(0, lv_array_is_full(&array) ? 1 : 0); in test_array_size()
[all …]
/lvgl-latest/src/core/
Dlv_obj_id_builtin.c67 … void * array = lv_realloc(global->objid_array, sizeof(class_info_t) * (global->objid_count + 1)); in lv_obj_assign_id() local
68 LV_ASSERT_MALLOC(array); in lv_obj_assign_id()
69 if(array == NULL) return; in lv_obj_assign_id()
70 global->objid_array = array; in lv_obj_assign_id()
Dlv_obj_property.h49 #define LV_OBJ_SET_PROPERTY_ARRAY(obj, array) lv_obj_set_properties(obj, array, sizeof(array)/sizeo… argument
/lvgl-latest/docs/details/integration/bindings/
Dapi_json.rst53 The value for each categry is an array of JSON elements. There is a bit of
59 - ``"array"``: The array type is used to identify arrays.
62 - ``"dim"``: number of items in the array
63 - ``"quals"``: array of qualifiers, IE "const"
69 It is used in the ``"fields"`` array of the ``"struct"`` and ``"union"`` JSON types.
87 - ``"quals"``: array of qualifiers, IE "const"
98 - ``"quals"``: array of qualifiers, IE "const"
108 - ``"args"``: array of ``"arg"`` Widgets. This describes the function arguments/parameters.
109 - ``"quals"``: array of qualifiers, IE "const"
119 - ``"quals"``: array of qualifiers, IE "const"
[all …]
/lvgl-latest/docs/details/libs/
Dgif.rst18 Convert GIF files to C array
21 To convert a GIF file to byte values array use `LVGL's online
23 format and "C array" Output format.
Dtjpgd.rst18 - Read from file and C array are implemented.
45 Converting JPEG to C array
Dbmp.rst31 - Only BMP files are supported and BMP images as C array
36 …flash it's better to convert them to C array with `LVGL's image converter <https://lvgl.io/tools/i…
Dtiny_ttf.rst21 By default, the TTF or OTF file must be embedded as an array, either in
/lvgl-latest/docs/details/widgets/
Dchart.rst57 - If you provide your own data-value arrays, each array so provided must contain
60 - LINE- and BAR-charts require only one data-value array to supply Y-values for each data point.
67 - When a data series is created, it comes with pre-allocated values array(s)
68 based on its chart type and ``point_count``. (All chart types use an array of
69 Y-values. SCATTER-type charts also use an array of X-values.). All Y-values so
74 - If desired, you can tell a data series to instead use a value array you
78 - That data series will continue to use *your* array from that time onward.
79 - The values in your array must remain available through the life of that data series.
80 - You must ensure each array provided contains at least ``point_count`` ``int32_t`` elements.
172 with an array of ``chart->point_cnt`` ``int32_t`` Y-values, all set to
[all …]
Dcalendar.rst70 :cpp:struct:`lv_calendar_date_t` array and applied to the Calendar by calling
72 Only the array's pointer will be saved so the array should be have static or
81 pointer of the day names is saved so the array should have static or
Dimage.rst35 - a variable in code (a C array containing the pixels).
41 To generate a pixel array from a PNG, JPG or BMP image, use the `Online image converter tool <https…
73 The internal (pixel array) and external images support 2 transparency
144 C array, or on images provided by a custom :ref:`overview_image_decoder`
Danimimg.rst11 difference is that instead of one source image, you set an array of
Dlottie.rst61 …`` contains an example animation. Instead of storing the JSON string, a hex array is stored for the
68 array. E.g.:
/lvgl-latest/src/libs/thorvg/
DtvgSvgCssStyle.cpp141 if (from->stroke.dash.array.count > 0) { in _copyStyle()
142 to->stroke.dash.array.clear(); in _copyStyle()
143 to->stroke.dash.array.reserve(from->stroke.dash.array.count); in _copyStyle()
144 for (uint32_t i = 0; i < from->stroke.dash.array.count; ++i) { in _copyStyle()
145 to->stroke.dash.array.push(from->stroke.dash.array[i]); in _copyStyle()
DtvgSvgLoader.cpp379 (*dash).array.push(parsedValue); in _PARSE_TAG()
383 if ((*dash).array.count == 1) (*dash).array.push((*dash).array[0]); in _PARSE_TAG()
1633 unsigned char* array; in _attrParseCircleNode() local
1636 array = (unsigned char*)circle; in _attrParseCircleNode()
1639 … *((float*)(array + circleTags[i].offset)) = _toFloat(loader->svgParse, value, circleTags[i].type); in _attrParseCircleNode()
1695 unsigned char* array; in _attrParseEllipseNode() local
1698 array = (unsigned char*)ellipse; in _attrParseEllipseNode()
1701 …*((float*)(array + ellipseTags[i].offset)) = _toFloat(loader->svgParse, value, ellipseTags[i].type… in _attrParseEllipseNode()
1823 unsigned char* array; in _attrParseRectNode() local
1827 array = (unsigned char*)rect; in _attrParseRectNode()
[all …]
/lvgl-latest/docs/details/other-components/
Dobj_property.rst43 array, like this example for the Label Widget:
72 This array is attached to the ``properties`` field of the Widget's class, so all
73 Widgets of the same type share the same id-to-function-pointer lookup array.
76 the corresponding array element will be initialized with a function pointer.
97 Sets multiple Widget properties from an array of :cpp:type:`lv_property_t`.
102 The following is an example of an array that could be used as the ``values`` argument
117 this array's individual ``value`` elements inside a loop.
129 the ``properties[]`` array initializing the ``.id`` fields in the array. For example,
133 That array is attached to the Widget's class, enabling "getter" and "setter" functions
/lvgl-latest/examples/widgets/lottie/
Dindex.rst1 Load a Lottie animation from an array
/lvgl-latest/examples/libs/tiny_ttf/
Dindex.rst1 Open a font with Tiny TTF from data array
/lvgl-latest/src/widgets/chart/
Dlv_chart.h306 void lv_chart_set_ext_y_array(lv_obj_t * obj, lv_chart_series_t * ser, int32_t array[]);
315 void lv_chart_set_ext_x_array(lv_obj_t * obj, lv_chart_series_t * ser, int32_t array[]);

123