Home
last modified time | relevance | path

Searched refs:s (Results 1 – 25 of 118) sorted by relevance

12345

/lvgl-latest/src/extra/others/msg/
Dlv_msg.c35 static void obj_notify_cb(void * s, lv_msg_t * m);
64 sub_dsc_t * s = _lv_ll_ins_tail(&subs_ll); in lv_msg_subsribe() local
65 LV_ASSERT_MALLOC(s); in lv_msg_subsribe()
66 if(s == NULL) return NULL; in lv_msg_subsribe()
68 lv_memset_00(s, sizeof(*s)); in lv_msg_subsribe()
70 s->msg_id = msg_id; in lv_msg_subsribe()
71 s->callback = cb; in lv_msg_subsribe()
72 s->user_data = user_data; in lv_msg_subsribe()
73 return s; in lv_msg_subsribe()
78 sub_dsc_t * s = lv_msg_subsribe(msg_id, obj_notify_cb, user_data); in lv_msg_subsribe_obj() local
[all …]
Dlv_msg.h36 typedef void (*lv_msg_subscribe_cb_t)(void * s, lv_msg_t * msg);
73 void lv_msg_unsubscribe(void * s);
/lvgl-latest/src/extra/widgets/colorwheel/
Dlv_colorwheel.c100 if(hsv.s > 100) hsv.s = 100; in lv_colorwheel_set_hsv()
106 …if(colorwheel->hsv.h == hsv.h && colorwheel->hsv.s == hsv.s && colorwheel->hsv.v == hsv.v) return … in lv_colorwheel_set_hsv()
186 return lv_color_hsv_to_rgb(colorwheel->hsv.h, colorwheel->hsv.s, colorwheel->hsv.v); in lv_colorwheel_get_rgb()
228 colorwheel->hsv.s = 100; in lv_colorwheel_constructor()
375 lv_coord_t * s = lv_event_get_param(e); in lv_colorwheel_event() local
376 *s = LV_MAX(*s, knob_pad); in lv_colorwheel_event()
402 hsv_cur.s = (colorwheel->hsv.s + 1) % 100; in lv_colorwheel_event()
423 hsv_cur.s = colorwheel->hsv.s > 0 ? (colorwheel->hsv.s - 1) : 100; in lv_colorwheel_event()
510 hsv_cur.s = (angle * 100) / 360; in lv_colorwheel_event()
578 hsv_cur.s = 100; in double_click_reset()
[all …]
/lvgl-latest/scripts/release/
Dcom.py23 s = r'^ *# *define +' + str(name).rstrip() + ' +'
27 r = re.search(s, i)
40 s = "v" + str(ver[0]) + "." + str(ver[1]) + "." + str(ver[2])
41 if(ver[3] != ""): s = s + "-" + ver[3]
42 return s
/lvgl-latest/examples/widgets/chart/
Dlv_example_chart_9.c12 uint16_t s = lv_chart_get_x_start_point(chart, ser); in add_data() local
15 a[(s + 1) % p] = LV_CHART_POINT_NONE; in add_data()
16 a[(s + 2) % p] = LV_CHART_POINT_NONE; in add_data()
17 a[(s + 2) % p] = LV_CHART_POINT_NONE; in add_data()
Dlv_example_chart_9.py8 s = chart.get_x_start_point(ser)
11 a[(s + 1) % p] = lv.CHART_POINT.NONE
12 a[(s + 2) % p] = lv.CHART_POINT.NONE
13 a[(s + 3) % p] = lv.CHART_POINT.NONE
Dlv_example_chart_4.c13 lv_coord_t * s = lv_event_get_param(e); in event_cb() local
14 *s = LV_MAX(*s, 20); in event_cb()
/lvgl-latest/docs/
Dbuild.py16 def cmd(s): argument
18 print(s)
20 r = os.system(s)
/lvgl-latest/docs/overview/
Dcoords.md17 … value to set the width/height of an object to involve all the children. It's similar to `auto` in…
20 LVGL follows CSS's [border-box](https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing) model.
21 An object's "box" is built from the following parts:
29 …he bounding box. Inside the border LVGL keeps a "padding margin" when placing an object's children.
34 This section describes special cases in which LVGL's behavior might be unexpected.
46 As it's described in the [Using styles](#using-styles) section, coordinates can also be set via sty…
49 … one case in which you need to be aware of the implementation. If the style(s) of an object are re…
82 By default, the x and y coordinates are measured from the top left corner of the parent's content a…
85 Percentage values are calculated from the parent's content area size.
91 In some cases it's convenient to change the origin of the positioning from the default top left. If…
[all …]
Dstyle.md4 …iable which can hold properties like border width, text color and so on. It's similar to a `class`…
6 For example one can add `style_blue` to the knob of a slider when it's in pressed state.
9 … will search for a property until a style defines it or use a default if it's not specified by any…
12 - Some properties (e.g. text color) can be inherited from a parent(s) if it's not specified in an o…
38 If a property is not defined in a state the best matching state's property will be used. Typically …
41 But what does the "best matching state's property" really mean?
43 To determine which state's property to use let's take an example. Imagine the background color is d…
48 … the object is in the default state, so it's a simple case: the property is perfectly defined in t…
50 The pressed state has 0x0020 precedence which is higher than the default state's 0x0000 precedence,…
53 5. It's possible to set e.g. rose color for `LV_STATE_PRESSED | LV_STATE_FOCUSED`.
[all …]
Ddrawing.md9 The draw buffer can be smaller than a display's size. LVGL will simply render in "tiles" that fit i…
13 2. It's faster to modify a buffer in internal RAM and finally write one pixel only once than readin…
18 … buffers (which usually requires external RAM) but only smaller draw buffer(s) that can easily fit…
27 2. LVGL saves the changed object's old and new area into a buffer, called an *Invalid area buffer*.…
30 - Areas partially out of the parent are cropped to the parent's area.
34 …- Takes the first joined area, if it's smaller than the *draw buffer*, then simply renders the are…
41 For example, if a button's label has changed, the library will see that it's enough to draw the but…
49 *Masking* is the basic concept of LVGL's draw engine.
50 To use LVGL it's not required to know about the mechanisms described here but you might find intere…
53 To learn about masking let's see the steps of drawing first.
[all …]
Dscroll.md4 … (the size without padding), the parent becomes scrollable and scrollbar(s) will appear. That's it.
13 Scrollbars are displayed according to a configured `mode`. The following `mode`s exist:
34 An object goes to the `LV_STATE_SCROLLED` state while it's being scrolled. This allows adding diffe…
48 or on the object's or any parent's main part to make a scrollbar inherit the base direction.
50 `pad_left/right/top/bottom` sets the spacing around the scrollbars and `width` sets the scrollbar's
69 It's possible to make an object non-scrollable with `lv_obj_clear_flag(obj, LV_OBJ_FLAG_SCROLLABLE)…
91 If chaining is disabled the propagation stops on the object and the parent(s) won't be scrolled.
94 …t and releases it, LVGL can emulate inertial momentum for the scrolling. It's like the object was …
131 The object will be scrolled into view even if it's on a different page of a tabview.
167 In short, self size establishes the size of an object's content. To understand it better take the e…
[all …]
Ddisplay.md21 Using more displays can be useful but in most cases it's not required. Therefore, the whole concept…
34 1. Set the resolution of the displays to the large display's resolution.
36 3. Send the buffer's content to each real display with the truncated area.
48 A screen's size is always equal to its display and their origin is (0;0). Therefore, a screen's coo…
60 …d for its children. If this is not the case (opacity < 100%) the display's background color or …
61 See the [Display background](#display-background) section for more details. If the display's backgr…
70 - Set the screen's opacity to `LV_OPA_TRANSP` e.g. with `lv_obj_set_style_bg_opa(lv_scr_act(), LV_O…
77 A user's inactivity time is measured on each display. Every use of an [Input device](/overview/inde…
/lvgl-latest/src/misc/
Dlv_color.c151 lv_color_t lv_color_hsv_to_rgb(uint16_t h, uint8_t s, uint8_t v) in lv_color_hsv_to_rgb() argument
154 s = (uint16_t)((uint16_t)s * 255) / 100; in lv_color_hsv_to_rgb()
161 if(s == 0) { in lv_color_hsv_to_rgb()
168 p = (v * (255 - s)) >> 8; in lv_color_hsv_to_rgb()
169 q = (v * (255 - ((s * remainder) >> 8))) >> 8; in lv_color_hsv_to_rgb()
170 t = (v * (255 - ((s * (255 - remainder)) >> 8))) >> 8; in lv_color_hsv_to_rgb()
233 hsv.s = 0; in lv_color_rgb_to_hsv()
238 hsv.s = 100 * delta / rgbMax; in lv_color_rgb_to_hsv()
239 if(hsv.s < 3) { in lv_color_rgb_to_hsv()
/lvgl-latest/scripts/
Dfiletohex.py5 s = file.read() variable
8 b.extend(map(ord, s))
/lvgl-latest/src/extra/libs/tiny_ttf/
Dstb_truetype_htcw.h343 int w, h, i, j, c = (argc > 1 ? atoi(argv[1]) : 'a'), s = (argc > 2 ? atoi(argv[2]) : 20);
348 … bitmap = stbtt_GetCodepointBitmap(&font, 0, stbtt_ScaleForPixelHeight(&font, s), c, &w, &h, 0, 0);
451 #define STBTT_STREAM_READ(s,x,y) fread(x,1,y,s); argument
452 #define STBTT_STREAM_SEEK(s,x) fseek(s,x,SEEK_SET); argument
1241 static stbtt__buf stbtt__new_buf(STBTT_STREAM_TYPE s, size_t size) in stbtt__new_buf() argument
1249 r.data = s; in stbtt__new_buf()
1262 static stbtt__buf stbtt__buf_range(const stbtt__buf * b, int o, int s) in stbtt__buf_range() argument
1265 if(o < 0 || s < 0 || o > b->size || s > b->size - o) return r; in stbtt__buf_range()
1272 r.size = s; in stbtt__buf_range()
1371 static stbtt_uint8 ttBYTE(STBTT_STREAM_TYPE s, stbtt_uint32 offset) in ttBYTE() argument
[all …]
/lvgl-latest/src/extra/libs/qrcode/
Dlv_qrcode.c169 int s; in lv_qrcode_update() local
171 for(s = 1; s < scale; s++) { in lv_qrcode_update()
172 lv_memcpy((uint8_t *)buf_u8 + row_byte_cnt * (y + s), row_ori, row_byte_cnt); in lv_qrcode_update()
/lvgl-latest/docs/widgets/extra/
Dlist.md13 See the [Button](/widgets/core/btn)'s and [Label](/widgets/core/label)'s documentation.
20 The text starts to scroll horizontally if it's too long.
Dcolorwheel.md16 …knob_recolor)` creates a new color wheel. With `knob_recolor=true` the knob's background color wil…
34 - `LV_KEY_UP`, `LV_KEY_RIGHT` Increment the current parameter's value by 1
35 - `LV_KEY_DOWN`, `LV_KEY_LEFT` Decrement the current parameter's value by 1
/lvgl-latest/docs/libs/
Dbmp.md16 … array (`lv_img_dsc_t`) are not. It's because there is no practical differences between how the BM…
17 …ly from file. If you want to store them in flash it's better to convert them to C array with [LVGL…
/lvgl-latest/examples/others/msg/
Dlv_example_msg_3.c11 static void value_handler(void * s, lv_msg_t * m);
12 static void value_handler(void * s, lv_msg_t * m);
77 static void value_handler(void * s, lv_msg_t * m) in value_handler() argument
79 LV_UNUSED(s); in value_handler()
/lvgl-latest/docs/others/
Dfragment.md6 It represents a reusable portion of your app's UI. A fragment defines and manages its own layout, h…
7 and can handle its own events. Like Android's Fragment that must be hosted by an activity or anothe…
8 in LVGL needs to be hosted by an object, or another fragment. The fragment’s view hierarchy becomes…
9 to, the host’s view hierarchy.
/lvgl-latest/src/widgets/
Dlv_switch.c133 lv_coord_t * s = lv_event_get_param(e); in lv_switch_event() local
134 *s = LV_MAX(*s, knob_size); in lv_switch_event()
135 *s = LV_MAX(*s, lv_obj_calculate_ext_draw_size(obj, LV_PART_INDICATOR)); in lv_switch_event()
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_gradient.c73 size_t s = ALIGN(sizeof(*c)) + ALIGN(c->alloc_size * sizeof(lv_color_t)); in get_cache_item_size() local
75 s += ALIGN(c->size * sizeof(lv_color32_t)); in get_cache_item_size()
77 s += ALIGN(c->w * sizeof(lv_scolor24_t)); in get_cache_item_size()
80 return s; in get_cache_item_size()
90 size_t s = get_cache_item_size(item); in next_in_cache() local
92 if((uint8_t *)item + s >= grad_cache_end) return NULL; in next_in_cache()
93 else return (lv_grad_t *)((uint8_t *)item + s); in next_in_cache()
/lvgl-latest/src/extra/libs/sjpg/
Dtjpgd.c860 unsigned int x, y, r, g, b, s, w, a; in mcu_output() local
864 s = jd->scale * 2; /* Number of shifts for averaging */ in mcu_output()
882 *op++ = (uint8_t)(r >> s); /* Put R or Y (monochrome output) */ in mcu_output()
884 *op++ = (uint8_t)(g >> s); /* Put G */ in mcu_output()
885 *op++ = (uint8_t)(b >> s); /* Put B */ in mcu_output()
918 uint8_t *s, *d; in mcu_output() local
921 s = d = (uint8_t*)jd->workbuf; in mcu_output()
924 *d++ = *s++; in mcu_output()
926 *d++ = *s++; in mcu_output()
927 *d++ = *s++; in mcu_output()
[all …]

12345