Home
last modified time | relevance | path

Searched full:a (Results 1 – 25 of 653) sorted by relevance

12345678910>>...27

/lvgl-latest/src/misc/
Dlv_anim.c33 static void anim_ready_handler(lv_anim_t * a);
64 void lv_anim_init(lv_anim_t * a) in lv_anim_init() argument
66 lv_memset_00(a, sizeof(lv_anim_t)); in lv_anim_init()
67 a->time = 500; in lv_anim_init()
68 a->start_value = 0; in lv_anim_init()
69 a->end_value = 100; in lv_anim_init()
70 a->repeat_cnt = 1; in lv_anim_init()
71 a->path_cb = lv_anim_path_linear; in lv_anim_init()
72 a->early_apply = 1; in lv_anim_init()
75 lv_anim_t * lv_anim_start(const lv_anim_t * a) in lv_anim_start() argument
[all …]
Dlv_anim.h36 /** Can be used to indicate if animations are enabled or disabled in a case*/
52 * The `x` in `_xcb_t` means it's not a fully generic prototype because
113 * lv_anim_t a;
114 * lv_anim_init(&a);
115 * lv_anim_set_...(&a);
116 * lv_anim_start(&a);
117 * @param a pointer to an `lv_anim_t` variable to initialize
119 void lv_anim_init(lv_anim_t * a);
122 * Set a variable to animate
123 * @param a pointer to an initialized `lv_anim_t` variable
[all …]
Dlv_style.h146 /** A gradient stop definition.
147 * This matches a color and a position in a virtual 0-255 scale.
154 /** A descriptor of a gradient. */
156 lv_gradient_stop_t stops[LV_GRADIENT_MAX_STOPS]; /**< A gradient stop array */
165 * A common type to handle all the property types in the same way.
176 …* Props are split into groups of 16. When adding a new prop to a group, ensure it does not overflo…
301 …void * user_data; /**< A custom user data that will be passed to the animation's user…
303 lv_anim_path_cb_t path_xcb; /**< A path for the animation.*/
309 * Descriptor of a constant style property.
317 * Descriptor of a style (a collection of properties and values).
[all …]
/lvgl-latest/scripts/
DDoxyfile4 # doxygen (www.doxygen.org) for a project.
6 # All text after a double hash (##) is considered a comment and is placed in
9 # All text after a single hash (#) is considered a comment and will be ignored.
29 # The PROJECT_NAME tag is a single word (or a sequence of words surrounded by
32 # title of most generated pages and in a few other places.
37 # The PROJECT_NUMBER tag can be used to enter a project or revision number. This
44 # for a project that appears at the top of each page and should give viewer a
49 # With the PROJECT_LOGO tag one can specify a logo or an icon that is included
57 # into which the generated documentation will be written. If a relative path is
66 # option can be useful when feeding doxygen a huge amount of source files, where
[all …]
/lvgl-latest/src/extra/libs/png/
Dlodepng.h16 in a product, an acknowledgment in the product documentation would be
42 allow implementing a custom lodepng_crc32.
146 Same as the other decode functions, but instead takes a filename as input.
165 Converts raw pixel data into a PNG image in memory. The colortype and bitdepth
194 Converts raw pixel data into a PNG file on disk.
195 Same as the other encode functions, but instead takes a filename as output.
227 Same as the other decode functions, but instead takes a filename as input.
246 Converts 32-bit RGBA raw pixel data into a PNG file on disk.
247 Same as the other encode functions, but instead takes a filename as output.
276 return an error, output a data size > max_output_size and all the data up to that point. This is
[all …]
Dlodepng.c16 in a product, an acknowledgment in the product documentation would be
42 #if defined(_MSC_VER) && (_MSC_VER >= 1310) /*Visual Studio: A few warning types are not desired he…
99 /* convince the compiler to inline a function, for use when this measurably improves performance */
117 where a full C library is not available. The compiler can recognize them and compile
131 static size_t lodepng_strlen(const char* a) { in lodepng_strlen() argument
132 const char* orig = a; in lodepng_strlen()
135 while(*a) a++; in lodepng_strlen()
136 return (size_t)(a - orig); in lodepng_strlen()
139 #define LODEPNG_MAX(a, b) (((a) > (b)) ? (a) : (b)) argument
140 #define LODEPNG_MIN(a, b) (((a) < (b)) ? (a) : (b)) argument
[all …]
/lvgl-latest/examples/libs/rlottie/
Dlv_example_rlottie_approve.json1a":"","k":"","d":"","tc":""},"fr":60,"ip":0,"op":60,"w":720,"h":720,"nm":"Success","ddd":0,"assets… number
/lvgl-latest/docs/overview/
Ddrawing.md5 However, it can be useful to have a basic understanding of how drawing happens in LVGL to add custo…
7 … onto the display but rather to first draw on an internal draw buffer. When a drawing (rendering) …
9 The draw buffer can be smaller than a display's size. LVGL will simply render in "tiles" that fit i…
12 …ew directly onto the display, when drawing a *background + button + text*, each "stage" would be v…
13 2. It's faster to modify a buffer in internal RAM and finally write one pixel only once than readin…
14 (e.g. via a display controller with SPI interface).
26 1. Something happens in the UI which requires redrawing. For example, a button is pressed, a chart …
27 2. LVGL saves the changed object's old and new area into a buffer, called an *Invalid area buffer*.…
41 For example, if a button's label has changed, the library will see that it's enough to draw the but…
54 LVGL performs the following steps to render any shape, image or text. It can be considered as a dra…
[all …]
Dstyle.md3 …ance of objects. Styles in lvgl are heavily inspired by CSS. The concept in a nutshell is as follo…
4 - A style is an `lv_style_t` variable which can hold properties like border width, text color and s…
6 For example one can add `style_blue` to the knob of a slider when it's in pressed state.
9 …all properties have to be specified in a style. LVGL will search for a property until a style defi…
10 For example `style_btn` can result in a default gray button and `style_btn_red` can add only a `bac…
11 - The most recently added style has higher precedence. This means if a property is specified in two…
12 - Some properties (e.g. text color) can be inherited from a parent(s) if it's not specified in an o…
14 …udo-classes describe different states, e.g. `:focus`), in LVGL a property is assigned to a given s…
34 An object can be in a combination of states such as being focused and pressed at the same time. Thi…
36 A style can be added to any state or state combination.
[all …]
Dimage.md3 An image can be a file or a variable which stores the bitmap itself and some metadata.
7 - as a variable in internal memory (RAM or ROM)
8 - as a file
11 Images stored internally in a variable are composed mainly of an `lv_img_dsc_t` structure with the …
21 These are usually stored within a project as C files. They are linked into the resulting executable…
24 To deal with files you need to add a storage *Drive* to LVGL. In short, a *Drive* is a collection o…
25 You can add an interface to a standard file system (FAT32 on SD card) or you create your simple fil…
26 In every case, a *Drive* is just an abstraction to read and/or write data to memory.
29 … the resulting executable, and must be read into RAM before being drawn. As a result, they are not…
35 - **LV_IMG_CF_TRUE_COLOR_CHROMA_KEYED** Like `LV_IMG_CF_TRUE_COLOR` but if a pixel has the `LV_COLO…
[all …]
Dfont.md4 A font is stored in a `lv_font_t` variable and can be set in a style's *text_font* field. For examp…
6 lv_style_set_text_font(&my_style, &lv_font_montserrat_28); /*Set a larger font*/
9 Fonts have a **bpp (bits per pixel)** property. It shows how many bits are used to describe a pixel…
12 …operty also affects the amount of memory needed to store a font. For example, *bpp = 4* makes a fo…
25 If all works well, a ✓ character should be displayed.
54 - `LV_FONT_MONTSERRAT_28_COMPRESSED` Same as normal 28 px font but stored as a [compressed font](#c…
61 …th names like `lv_font_montserrat_16` for a 16 px height font. To use them in a style, just add a
87 Most languages use a Left-to-Right (LTR for short) writing direction, however some languages (such …
89 LVGL not only supports RTL texts but supports mixed (a.k.a. bidirectional, BiDi) text rendering too…
95 All texts have a base direction (LTR or RTL) which determines some rendering rules and the default …
[all …]
Dobject.md3 In LVGL the **basic building blocks** of a user interface are the objects, also called *Widgets*.
4 For example a [Button](/widgets/core/btn), [Label](/widgets/core/label), [Image](/widgets/core/img)…
8 All objects are referenced using an `lv_obj_t` pointer as a handle. This pointer can later be used …
26 lv_obj_set_size(btn1, 100, 50); /*Set a button's size*/
27 lv_obj_set_pos(btn1, 20,30); /*Set a button's position*/
34 The object types have special attributes too. For example, a slider has
38 For these special attributes, every object type may have unique API functions. For example for a sl…
52 A parent object can be considered as the container of its children. Every object has exactly one pa…
53 …e type of the parent but there are objects which are typically a parent (e.g. button) or a child (…
57 If the position of a parent changes, the children will move along with it.
[all …]
/lvgl-latest/demos/music/
Dlv_demo_music_main.c53 static void spectrum_anim_cb(void * a, int32_t v);
54 static void start_anim_cb(void * a, int32_t v);
64 static void spectrum_end_cb(lv_anim_t * a);
66 static int32_t get_cos(int32_t deg, int32_t a);
67 static int32_t get_sin(int32_t deg, int32_t a);
148 /*Arrange the content into a grid*/ in _lv_demo_music_main_create()
203 /*Arrange the content into a grid*/ in _lv_demo_music_main_create()
232 lv_anim_t a; in _lv_demo_music_main_create() local
239 lv_anim_init(&a); in _lv_demo_music_main_create()
240 lv_anim_set_path_cb(&a, lv_anim_path_bounce); in _lv_demo_music_main_create()
[all …]
/lvgl-latest/src/extra/widgets/chart/
Dlv_chart.h24 /**Default value of points. Can be used to not draw a point*/
52 LV_CHART_UPDATE_MODE_CIRCULAR, /**< Add the new data in a circular way*/
69 * Descriptor a chart series
113 uint16_t point_cnt; /**< Point number in a data line*/
141 * Create a chart object
148 * Set a new type for a chart
149 * @param obj pointer to a chart object
154 * Set the number of points on a data line on a chart
155 * @param obj pointer to a chart object
162 * @param obj pointer to a chart object
[all …]
/lvgl-latest/docs/
DCONTRIBUTING.md8 There are a lot of ways to contribute to LVGL even if you are new to the library or even new to pro…
11 A friendly and helpful community is waiting for you. Get to know like-minded people and make someth…
17 - Be sure to read the relevant part of the documentation before posting a question.
19 …. It makes understanding your contribution or issue easier and you will get a useful response fast…
24 …t's better to open an issue first to discuss the details instead of sending a pull request directl…
25 - Please read and follow the <a href="https://github.com/lvgl/lvgl/blob/master/docs/CODING_STYLE.md…
30 A PR is a notification like "Hey, I made some updates to your project. Here are the changes, you ca…
31 To do this you need a copy (called fork) of the original project under your account, make some chan…
34 To add your changes you can edit files online on GitHub and send a new Pull request from there (rec…
41 4. Add a commit message on the bottom of the page.
[all …]
DCHANGELOG.md9 - feat(littlefs): add lv_fs_littlefs system as a driver [`4677`](https://github.com/lvgl/lvgl/pull/…
18 - fix(ime_pinyin): keep cursor in the textarea when a candidate is pressed [`4731`](https://github.…
64 - fix(btnmatrix): fix tapping just outside a button in a buttonmatrix [`8063fac`](https://github.co…
204 - fix(bar): delete running animations when a new value is set without animation [`aa31380`](https:/…
205 - docs: use a fixed commit of lv_web_emscripten [`501230e`](https://github.com/lvgl/lvgl/commit/501…
212 - docs: use a fixed commit of lv_web_emscripten [`501230e`](https://github.com/lvgl/lvgl/commit/501…
352 …hildren drawn by LVGL. To do this LVGL renders the transformed widgets into a layer and draws that…
357 - **PubSub messaging** A publisher-subscriber based messaging system is added to make communication…
359 …art_cb** A new callback is added to `lv_disp_drv_t` to indicate when the rendering starts. It's us…
374 - feat(disp): add a temporary invalidation disable interface [`3378`](https://github.com/lvgl/lvgl/…
[all …]
/lvgl-latest/src/widgets/
Dlv_label.c487 continue; /*Skip the letter if it is part of a command*/ in lv_label_get_letter_on()
589 continue; /*Skip the letter if it is part of a command*/ in lv_label_is_char_under_pos()
868 /*Draw the text again on label to the original to make a circular effect */ in draw_main()
877 /*Draw the text again below the original to make a circular effect */ in draw_main()
891 * @param label pointer to a label object
923 lv_anim_t a; in lv_label_refr_text() local
924 lv_anim_init(&a); in lv_label_refr_text()
925 lv_anim_set_var(&a, obj); in lv_label_refr_text()
926 lv_anim_set_repeat_count(&a, LV_ANIM_REPEAT_INFINITE); in lv_label_refr_text()
927 lv_anim_set_playback_delay(&a, LV_LABEL_SCROLL_DELAY); in lv_label_refr_text()
[all …]
Dlv_textarea.h50 lv_coord_t valid_x; /*Used when stepping up/down to a shorter line.
80 * Create a text area object
91 * Insert a character to the current cursor position.
92 * To add a wide char, e.g. 'Á' use `_lv_txt_encoded_conv_wc('Á')`
93 * @param obj pointer to a text area object
94 * @param c a character (e.g. 'a')
99 * Insert a text to the current cursor position
100 * @param obj pointer to a text area object
101 * @param txt a '\0' terminated string to insert
106 * Delete a the left character from the current cursor position
[all …]
Dlv_img.c118 /*If the new and the old src are the same then it was only a refresh.*/ in lv_img_set_src()
122 *It's important to allocate first to be sure the new data will be on a new address. in lv_img_set_src()
138 /*`lv_img_dsc_get_info` couldn't set the width and height of a font so set it here*/ in lv_img_set_src()
194 lv_area_t a; in lv_img_set_angle() local
195 _lv_img_buf_get_transformed_area(&a, w, h, img->angle, img->zoom, &img->pivot); in lv_img_set_angle()
196 a.x1 += obj->coords.x1; in lv_img_set_angle()
197 a.y1 += obj->coords.y1; in lv_img_set_angle()
198 a.x2 += obj->coords.x1; in lv_img_set_angle()
199 a.y2 += obj->coords.y1; in lv_img_set_angle()
200 lv_obj_invalidate_area(obj, &a); in lv_img_set_angle()
[all …]
/lvgl-latest/demos/widgets/
Dlv_demo_widgets.c236 lv_label_set_text(dsc, "This is a short description of me. Take a look at my profile!"); in profile_create()
268 /*Create a keyboard*/ in profile_create()
666 lv_anim_t a; in analytics_create() local
667 lv_anim_init(&a); in analytics_create()
668 lv_anim_set_values(&a, 20, 100); in analytics_create()
669 lv_anim_set_repeat_count(&a, LV_ANIM_REPEAT_INFINITE); in analytics_create()
672 lv_anim_set_exec_cb(&a, meter1_indic1_anim_cb); in analytics_create()
673 lv_anim_set_var(&a, indic); in analytics_create()
674 lv_anim_set_time(&a, 4100); in analytics_create()
675 lv_anim_set_playback_time(&a, 2700); in analytics_create()
[all …]
/lvgl-latest/src/core/
Dlv_group.h57 * They are NOT for laying out objects on a screen (try layouts for that).
63 …lv_group_focus_cb_t focus_cb; /**< A function to call when a new object is focused (o…
64 …lv_group_edge_cb_t edge_cb; /**< A function to call when an edge is reached, no mor…
66 like a sound or a scroll bounce) */
96 * Create a new object group
102 * Delete a group object
103 * @param group pointer to a group
108 …* Set a default group. New object are added to this group if it's enabled in their class with `add…
109 * @param group pointer to a group (can be `NULL`)
120 * Add an object to a group
[all …]
Dlv_disp.c25 static void scr_load_anim_start(lv_anim_t * a);
29 static void scr_anim_ready(lv_anim_t * a);
30 static bool is_out_anim(lv_scr_load_anim_t a);
45 * Return with a pointer to the active screen
62 * Return with a pointer to the previous screen. Only used during screen transitions.
79 * Make a screen active
80 * @param scr pointer to a screen
121 * Set the theme of a display
122 * @param disp pointer to a display
142 * Get the theme of a display
[all …]
/lvgl-latest/docs/get-started/
Dquick-overview.md5 You should read this first to get a general impression and read the detailed [Porting](/porting/ind…
7 ## Get started in a simulator
9 …GL to embedded hardware straight away, it's highly recommended to get started in a simulator first.
22 - Call `lv_tick_inc(x)` every `x` milliseconds in a Timer or Task (`x` should be between 1 and 10).…
25 - Create a draw buffer: LVGL will render the graphics here first, and send the rendered image to th…
26 The buffer size can be set freely but 1/10 screen size is a good starting point.
29 static lv_color_t buf1[DISP_HOR_RES * DISP_VER_RES / 10]; /*Declare a buffer…
32 - Implement and register a function which can copy the rendered image to an area of your display:
34 static lv_disp_drv_t disp_drv; /*Descriptor of a display driver*/
45 /*It's a very slow but simple implementation.
[all …]
/lvgl-latest/src/extra/libs/qrcode/
Dqrcodegen.h7 * Permission is hereby granted, free of charge, to any person obtaining a copy of
17 * fitness for a particular purpose and noninfringement. In no event shall the
37 * This library creates QR Code symbols, which is a type of two-dimension barcode.
39 * A QR Code structure is an immutable square grid of black and white cells.
40 * The library provides functions to create a QR Code from text or binary data.
44 * Ways to create a QR Code object:
55 * The error correction level in a QR Code symbol.
68 * The mask pattern used in a QR Code symbol.
71 // A special value to tell the QR Code encoder to
87 * Describes how a segment's data bits are interpreted.
[all …]
/lvgl-latest/src/extra/libs/tiny_ttf/
Dstb_truetype_htcw.h105 // stbtt_BakeFontBitmap() -- bake a font to a bitmap for use as texture
106 // stbtt_GetBakedQuad() -- compute quad to draw for a given char
116 // "Load" a font file from a memory buffer (you have to keep the buffer loaded)
121 // Render a unicode codepoint to a bitmap
122 // stbtt_GetCodepointBitmap() -- allocates and returns a bitmap
132 // Starting with version 1.06, the rasterizer was replaced with a new,
137 // this turns out to be a problem, you can re-enable the old rasterizer with
139 // which will incur about a 15% speed hit.
143 // Immediately after this block comment are a series of sample programs.
152 // uppercase A, 231 is lowercase c with a cedilla, 0x7e30 is
[all …]

12345678910>>...27