Home
last modified time | relevance | path

Searched refs:mode (Results 1 – 25 of 58) sorted by relevance

123

/lvgl-3.5.0/src/extra/widgets/keyboard/
Dlv_keyboard.c181 void lv_keyboard_set_mode(lv_obj_t * obj, lv_keyboard_mode_t mode) in lv_keyboard_set_mode() argument
185 if(keyboard->mode == mode) return; in lv_keyboard_set_mode()
187 keyboard->mode = mode; in lv_keyboard_set_mode()
215 void lv_keyboard_set_map(lv_obj_t * obj, lv_keyboard_mode_t mode, const char * map[], in lv_keyboard_set_map() argument
218 kb_map[mode] = map; in lv_keyboard_set_map()
219 kb_ctrl[mode] = ctrl_map; in lv_keyboard_set_map()
248 return keyboard->mode; in lv_keyboard_get_mode()
286 keyboard->mode = LV_KEYBOARD_MODE_TEXT_LOWER; in lv_keyboard_def_event_cb()
292 keyboard->mode = LV_KEYBOARD_MODE_TEXT_UPPER; in lv_keyboard_def_event_cb()
298 keyboard->mode = LV_KEYBOARD_MODE_SPECIAL; in lv_keyboard_def_event_cb()
[all …]
Dlv_keyboard.h55 lv_keyboard_mode_t mode; /*Key map type*/ member
88 void lv_keyboard_set_mode(lv_obj_t * kb, lv_keyboard_mode_t mode);
104 void lv_keyboard_set_map(lv_obj_t * kb, lv_keyboard_mode_t mode, const char * map[],
/lvgl-3.5.0/src/widgets/
Dlv_slider.h116 static inline void lv_slider_set_mode(lv_obj_t * obj, lv_slider_mode_t mode) in lv_slider_set_mode() argument
118 lv_bar_set_mode(obj, (lv_bar_mode_t)mode); in lv_slider_set_mode()
179 lv_bar_mode_t mode = lv_bar_get_mode(slider); in lv_slider_get_mode() local
180 if(mode == LV_BAR_MODE_SYMMETRICAL) return LV_SLIDER_MODE_SYMMETRICAL; in lv_slider_get_mode()
181 else if(mode == LV_BAR_MODE_RANGE) return LV_SLIDER_MODE_RANGE; in lv_slider_get_mode()
Dlv_roller.h49 lv_roller_mode_t mode : 1; member
77 void lv_roller_set_options(lv_obj_t * obj, const char * options, lv_roller_mode_t mode);
Dlv_bar.h56 lv_bar_mode_t mode : 2; /**< Type of bar*/ member
113 void lv_bar_set_mode(lv_obj_t * obj, lv_bar_mode_t mode);
Dlv_bar.c110 if(bar->mode != LV_BAR_MODE_RANGE) { in lv_bar_set_start_value()
146 void lv_bar_set_mode(lv_obj_t * obj, lv_bar_mode_t mode) in lv_bar_set_mode() argument
151 bar->mode = mode; in lv_bar_set_mode()
152 if(bar->mode != LV_BAR_MODE_RANGE) { in lv_bar_set_mode()
176 if(bar->mode != LV_BAR_MODE_RANGE) return bar->min_value; in lv_bar_get_start_value()
201 return bar->mode; in lv_bar_get_mode()
222 bar->mode = LV_BAR_MODE_NORMAL; in lv_bar_constructor()
264 if(bar->mode == LV_BAR_MODE_SYMMETRICAL && bar->min_value < 0 && bar->max_value > 0 && in draw_indic()
/lvgl-3.5.0/examples/porting/
Dlv_port_fs_template.c28 static void * fs_open(lv_fs_drv_t * drv, const char * path, lv_fs_mode_t mode);
106 static void * fs_open(lv_fs_drv_t * drv, const char * path, lv_fs_mode_t mode)
112 if(mode == LV_FS_MODE_WR) {
116 else if(mode == LV_FS_MODE_RD) {
120 else if(mode == (LV_FS_MODE_WR | LV_FS_MODE_RD)) {
/lvgl-3.5.0/src/extra/libs/qrcode/
Dqrcodegen.c83 testable int calcSegmentBitLength(enum qrcodegen_Mode mode, size_t numChars);
85 static int numCharCountBits(enum qrcodegen_Mode mode, int version);
150 seg.mode = qrcodegen_Mode_BYTE; in qrcodegen_encodeText()
151 seg.bitLength = calcSegmentBitLength(seg.mode, textLen); in qrcodegen_encodeText()
170 seg.mode = qrcodegen_Mode_BYTE; in qrcodegen_encodeBinary()
171 seg.bitLength = calcSegmentBitLength(seg.mode, dataLen); in qrcodegen_encodeBinary()
234 appendBitsToBuffer((int)seg->mode, 4, qrcode, &bitLen); in qrcodegen_encodeSegmentsAdvanced()
235 appendBitsToBuffer(seg->numChars, numCharCountBits(seg->mode, version), qrcode, &bitLen); in qrcodegen_encodeSegmentsAdvanced()
819 size_t qrcodegen_calcSegmentBufferSize(enum qrcodegen_Mode mode, size_t numChars) { in qrcodegen_calcSegmentBufferSize() argument
820 int temp = calcSegmentBitLength(mode, numChars); in qrcodegen_calcSegmentBufferSize()
[all …]
Dqrcodegen.h111 enum qrcodegen_Mode mode; member
258 size_t qrcodegen_calcSegmentBufferSize(enum qrcodegen_Mode mode, size_t numChars);
/lvgl-3.5.0/src/extra/widgets/colorwheel/
Dlv_colorwheel.c136 void lv_colorwheel_set_mode(lv_obj_t * obj, lv_colorwheel_mode_t mode) in lv_colorwheel_set_mode() argument
141 colorwheel->mode = mode; in lv_colorwheel_set_mode()
200 return colorwheel->mode; in lv_colorwheel_get_color_mode()
231 colorwheel->mode = LV_COLORWHEEL_MODE_HUE; in lv_colorwheel_constructor()
398 switch(colorwheel->mode) { in lv_colorwheel_event()
419 switch(colorwheel->mode) { in lv_colorwheel_event()
506 switch(colorwheel->mode) { in lv_colorwheel_event()
544 colorwheel->mode = (colorwheel->mode + 1) % 3; in next_color_mode()
576 switch(colorwheel->mode) { in double_click_reset()
660 switch(ext->mode) { in angle_to_mode_color_fast()
[all …]
Dlv_colorwheel.h47 lv_colorwheel_mode_t mode : 2; member
90 void lv_colorwheel_set_mode(lv_obj_t * obj, lv_colorwheel_mode_t mode);
/lvgl-3.5.0/src/extra/libs/fsdrv/
Dlv_fs_fatfs.c31 static void * fs_open(lv_fs_drv_t * drv, const char * path, lv_fs_mode_t mode);
104 static void * fs_open(lv_fs_drv_t * drv, const char * path, lv_fs_mode_t mode) in fs_open() argument
109 if(mode == LV_FS_MODE_WR) flags = FA_WRITE | FA_OPEN_ALWAYS; in fs_open()
110 else if(mode == LV_FS_MODE_RD) flags = FA_READ; in fs_open()
111 else if(mode == (LV_FS_MODE_WR | LV_FS_MODE_RD)) flags = FA_READ | FA_WRITE | FA_OPEN_ALWAYS; in fs_open()
Dlv_fs_posix.c38 static void * fs_open(lv_fs_drv_t * drv, const char * path, lv_fs_mode_t mode);
102 static void * fs_open(lv_fs_drv_t * drv, const char * path, lv_fs_mode_t mode) in fs_open() argument
107 if(mode == LV_FS_MODE_WR) flags = O_WRONLY | O_CREAT; in fs_open()
108 else if(mode == LV_FS_MODE_RD) flags = O_RDONLY; in fs_open()
109 else if(mode == (LV_FS_MODE_WR | LV_FS_MODE_RD)) flags = O_RDWR | O_CREAT; in fs_open()
Dlv_fs_stdio.c41 static void * fs_open(lv_fs_drv_t * drv, const char * path, lv_fs_mode_t mode);
105 static void * fs_open(lv_fs_drv_t * drv, const char * path, lv_fs_mode_t mode) in fs_open() argument
111 if(mode == LV_FS_MODE_WR) flags = "wb"; in fs_open()
112 else if(mode == LV_FS_MODE_RD) flags = "rb"; in fs_open()
113 else if(mode == (LV_FS_MODE_WR | LV_FS_MODE_RD)) flags = "rb+"; in fs_open()
/lvgl-3.5.0/docs/widgets/extra/
Dcolorwheel.md22 ### Color mode
24 The current color mode can be manually selected with `lv_colorwheel_set_mode(colorwheel, LV_COLORWH…
26 The color mode can be fixed (so as to not change with long press) using `lv_colorwheel_set_mode_fix…
36 - `LV_KEY_ENTER` A long press will show the next mode. Double click to reset the current parameter.
Dspan.md16 If spangroup object `mode != LV_SPAN_MODE_FIXED` you must call `lv_spangroup_refr_mode()` after you…
45 Use `lv_spangroup_set_mode(spangroup, LV_SPAN_MODE_BREAK)` to set object mode.
52 Use `lv_spangroup_set_overflow(spangroup, LV_SPAN_OVERFLOW_CLIP)` to set object overflow mode.
55 …ort pixel units, in addition to LV_SPAN_MODE_FIXED and LV_SPAN_MODE_BREAK mode supports percentage…
58 … to set the maximum number of lines to be displayed in LV_SPAN_MODE_BREAK mode, negative values in…
/lvgl-3.5.0/src/extra/others/ime/
Dlv_ime_pinyin.h64 … uint8_t mode : 1; /* Set mode, 1: 26-key input(k26), 0: 9-key input(k9). Default: 1. */ member
99 void lv_ime_pinyin_set_mode(lv_obj_t * obj, lv_ime_pinyin_mode_t mode);
Dlv_ime_pinyin.c458 void lv_ime_pinyin_set_mode(lv_obj_t * obj, lv_ime_pinyin_mode_t mode) in lv_ime_pinyin_set_mode() argument
465 pinyin_ime->mode = mode; in lv_ime_pinyin_set_mode()
468 if(pinyin_ime->mode == LV_IME_PINYIN_MODE_K9) { in lv_ime_pinyin_set_mode()
557 pinyin_ime->mode = LV_IME_PINYIN_MODE_K26; in lv_ime_pinyin_constructor()
651 if(pinyin_ime->mode == LV_IME_PINYIN_MODE_K9) { in lv_ime_pinyin_kb_event()
680 if(pinyin_ime->mode == LV_IME_PINYIN_MODE_K26) in lv_ime_pinyin_kb_event()
696 else if(pinyin_ime->mode == LV_IME_PINYIN_MODE_K26) { in lv_ime_pinyin_kb_event()
700 else if(pinyin_ime->mode == LV_IME_PINYIN_MODE_K9) { in lv_ime_pinyin_kb_event()
715 if(pinyin_ime->mode == LV_IME_PINYIN_MODE_K26) { in lv_ime_pinyin_kb_event()
727 …else if((pinyin_ime->mode == LV_IME_PINYIN_MODE_K26) && ((txt[0] >= 'a' && txt[0] <= 'z') || (txt[… in lv_ime_pinyin_kb_event()
[all …]
/lvgl-3.5.0/src/extra/libs/png/
Dlodepng.c3171 const LodePNGColorMode* mode, ColorTree* tree /*for palette*/, in rgba8ToPixel() argument
3173 if(mode->colortype == LCT_GREY) { in rgba8ToPixel()
3175 if(mode->bitdepth == 8) out[i] = gray; in rgba8ToPixel()
3176 else if(mode->bitdepth == 16) out[i * 2 + 0] = out[i * 2 + 1] = gray; in rgba8ToPixel()
3179 gray = ((unsigned)gray >> (8u - mode->bitdepth)) & ((1u << mode->bitdepth) - 1u); in rgba8ToPixel()
3180 addColorBits(out, i, mode->bitdepth, gray); in rgba8ToPixel()
3182 } else if(mode->colortype == LCT_RGB) { in rgba8ToPixel()
3183 if(mode->bitdepth == 8) { in rgba8ToPixel()
3192 } else if(mode->colortype == LCT_PALETTE) { in rgba8ToPixel()
3195 if(mode->bitdepth == 8) out[i] = index; in rgba8ToPixel()
[all …]
/lvgl-3.5.0/src/draw/sdl/
Dlv_draw_sdl_composite.c133 SDL_BlendMode mode = SDL_ComposeCustomBlendMode(SDL_BLENDFACTOR_ZERO, SDL_BLENDFACTOR_ONE, in lv_draw_sdl_composite_end() local
136 SDL_SetTextureBlendMode(internals->mask, mode); in lv_draw_sdl_composite_end()
156 … SDL_BlendMode mode = SDL_ComposeCustomBlendMode(SDL_BLENDFACTOR_ONE, SDL_BLENDFACTOR_ONE, in lv_draw_sdl_composite_end() local
159 SDL_SetTextureBlendMode(internals->composition, mode); in lv_draw_sdl_composite_end()
163 … SDL_BlendMode mode = SDL_ComposeCustomBlendMode(SDL_BLENDFACTOR_ZERO, SDL_BLENDFACTOR_SRC_COLOR, in lv_draw_sdl_composite_end() local
166 SDL_SetTextureBlendMode(internals->composition, mode); in lv_draw_sdl_composite_end()
/lvgl-3.5.0/src/extra/widgets/span/
Dlv_span.c204 void lv_spangroup_set_mode(lv_obj_t * obj, lv_span_mode_t mode) in lv_spangroup_set_mode() argument
208 spans->mode = mode; in lv_spangroup_set_mode()
297 return spans->mode; in lv_spangroup_get_mode()
312 if(spans->mode == LV_SPAN_MODE_EXPAND) { in lv_spangroup_refr_mode()
316 else if(spans->mode == LV_SPAN_MODE_BREAK) { in lv_spangroup_refr_mode()
322 else if(spans->mode == LV_SPAN_MODE_FIXED) { in lv_spangroup_refr_mode()
508 spans->mode = LV_SPAN_MODE_EXPAND; in lv_spangroup_constructor()
556 if(spans->mode == LV_SPAN_MODE_EXPAND) { in lv_spangroup_event()
565 else if(spans->mode == LV_SPAN_MODE_BREAK) { in lv_spangroup_event()
579 else if(spans->mode == LV_SPAN_MODE_FIXED) { in lv_spangroup_event()
[all …]
Dlv_span.h58 uint8_t mode : 2; /* details see lv_span_mode_t */ member
135 void lv_spangroup_set_mode(lv_obj_t * obj, lv_span_mode_t mode);
/lvgl-3.5.0/docs/widgets/core/
Dtextarea.md9 One line mode and password modes are supported.
59 ### One line mode
61 In this mode the height is set automatically to show only one line, line break characters are ignor…
63 ### Password mode
64 The text area supports password mode which can be enabled with `lv_textarea_set_password_mode(texta…
68 In password mode `lv_textarea_get_text(textarea)` returns the actual text entered, not the bullet c…
/lvgl-3.5.0/docs/overview/
Dindev.md106 #### Edit and navigate mode
110 In *Navigate* mode, an encoder's `LV_KEY_LEFT/RIGHT` is translated to `LV_KEY_NEXT/PREV`. Therefore…
111 Pressing `LV_KEY_ENTER` will change to *Edit* mode.
113 In *Edit* mode, `LV_KEY_NEXT/PREV` is usually used to modify an object.
114 …ding on the object's type, a short or long press of `LV_KEY_ENTER` changes back to *Navigate* mode.
115 …h cannot be pressed (like a [Slider](/widgets/core/slider)) leaves *Edit* mode upon a short click.…
127 If an object switches to edit mode it enters the `LV_STATE_FOCUSED | LV_STATE_EDITED` states so the…
/lvgl-3.5.0/src/misc/
Dlv_fs.h75 void * (*open_cb)(struct _lv_fs_drv_t * drv, const char * path, lv_fs_mode_t mode);
156 lv_fs_res_t lv_fs_open(lv_fs_file_t * file_p, const char * path, lv_fs_mode_t mode);

123