Home
last modified time | relevance | path

Searched refs:object (Results 1 – 25 of 69) sorted by relevance

123

/lvgl-latest/docs/widgets/
Dobj.md1 # Base object (lv_obj)
7 - parent object
12 In object-oriented thinking, it is the base class from which all other objects in LVGL are inherite…
14 The functions and functionalities of the Base object can be used with other widgets too. For exampl…
16 The Base object can be directly used as a simple widget: it's nothing more than a rectangle. In HTM…
23 The object size can be modified on individual axes with `lv_obj_set_width(obj, new_width)` and `lv_…
29 You can align the object on its parent with `lv_obj_set_align(obj, LV_ALIGN_...)`. After this every…
30 For example, this will shift the object by 10;20 px from the center of its parent:
39 To align one object to another use: `lv_obj_align_to(obj_to_align, obj_referece, LV_ALIGN_..., x, y…
48 You can set a new parent for an object with `lv_obj_set_parent(obj, new_parent)`. To get the curren…
[all …]
/lvgl-latest/docs/overview/
Devent.md3 …riggered in LVGL when something happens which might be interesting to the user, e.g. when an object
9 ## Add events to the object
11 The user can assign callback functions to an object to see its events. In practice, it looks like t…
28 More events can be added to an object, like this:
35 Even the same event callback can be used on an object with different `user_data`. For example:
47 ## Remove event(s) from an object
49 Events can be removed from an object with the `lv_obj_remove_event_cb(obj, event_cb)` function or `…
69 - `LV_EVENT_PRESSED` An object has been pressed
70 - `LV_EVENT_PRESSING` An object is being pressed (called continuously while pressing)
71 - `LV_EVENT_PRESS_LOST` An object is still being pressed but slid cursor/finger off of the object
[all …]
Dscroll.md4 In LVGL scrolling works very intuitively: if an object is outside its parent content area (the size…
6 Any object can be scrollable including `lv_obj_t`, `lv_img`, `lv_btn`, `lv_meter`, etc
8 The object can either be scrolled horizontally or vertically in one stroke; diagonal scrolling is n…
16 - `LV_SCROLLBAR_MODE_ACTIVE` Show scroll bars while an object is being scrolled
19 `lv_obj_set_scrollbar_mode(obj, LV_SCROLLBAR_MODE_...)` sets the scrollbar mode on an object.
34 An object goes to the `LV_STATE_SCROLLED` state while it's being scrolled. This allows adding diffe…
35 This code makes the scrollbar blue when the object is scrolled:
47 …operty is inherited. Therefore, it can be set directly on the `LV_PART_SCROLLBAR` part of an object
48 or on the object's or any parent's main part to make a scrollbar inherit the base direction.
69 It's possible to make an object non-scrollable with `lv_obj_clear_flag(obj, LV_OBJ_FLAG_SCROLLABLE)…
[all …]
Dobject.md8 …_t` pointer as a handle. This pointer can later be used to set or get the attributes of the object.
14 All object types share some basic attributes:
25 /*Set basic object attributes*/
30 To see all the available functions visit the [Base object's documentation](/widgets/obj).
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…
63 lv_obj_t * parent = lv_obj_create(lv_scr_act()); /*Create a parent object on the current screen*/
66 …* obj1 = lv_obj_create(parent); /*Create an object on the previously created parent objec…
67 lv_obj_set_pos(obj1, 10, 10); /*Set the position of the new object*/
[all …]
Dcoords.md16 - percentage: The percentage of the size of the object or its parent (depending on the property). `…
17 - `LV_SIZE_CONTENT`: Special value to set the width/height of an object to involve all the children…
21 An object's "box" is built from the following parts:
24 - padding: space between the sides of the object and its children.
29 …he bounding box. Inside the border LVGL keeps a "padding margin" when placing an object's children.
40 In other words, if you need to get the coordinate of an object and the coordinates were just change…
47 …le property. If you use `lv_obj_set_x(obj, 20)` LVGL saves `x=20` in the local style of the object.
49 …se in which you need to be aware of the implementation. If the style(s) of an object are removed by
75 To simply set the x and y coordinates of an object use:
123 …ntroduced above align the object to its parent. However, it's also possible to align an object to …
[all …]
Dindev.md24 lv_obj_t * cursor_obj = lv_img_create(lv_scr_act()); /*Create an image object for the cursor …
26 lv_indev_set_cursor(mouse_indev, cursor_obj); /*Connect the image object to the driv…
29 Note that the cursor object should have `lv_obj_clear_flag(cursor_obj, LV_OBJ_FLAG_CLICKABLE)`.
33 …res to its parent, so finally the gestures can be detected on the screen object in a form of an `L…
61 To prevent passing the gesture event to the parent from an object use `lv_obj_clear_flag(obj, LV_OB…
63 Note that, gestures are not triggered if an object is being scrolled.
74 In every group there is exactly one focused object which receives the pressed keys or the encoder a…
80 To create a group use `lv_group_t * g = lv_group_create()` and to add an object to the group use `l…
86 - **LV_KEY_NEXT** Focus on the next object
87 - **LV_KEY_PREV** Focus on the previous object
[all …]
Dstyle.md8 - Styles can be cascaded which means multiple styles may be assigned to an object and each style ca…
11 …e. This means if a property is specified in two styles the newest style in the object will be used.
12 … properties (e.g. text color) can be inherited from a parent(s) if it's not specified in an object.
15 - Transitions can be applied when the object changes state.
34 An object can be in a combination of states such as being focused and pressed at the same time. Thi…
48 1. Initially the object is in the default state, so it's a simple case: the property is perfectly d…
49 2. When the object is pressed there are 2 related properties: default with white (default is relate…
51 3. When the object is focused the same thing happens as in pressed state and red color will be used…
52 4. When the object is focused and pressed both gray and red would work, but the pressed state has h…
55 …en the object is in the checked state there is no property to set the background color for this st…
[all …]
Dlayer.md8 … add a button to a parent object named button1 and then another button named button2. Then button1…
39 There are four explicit ways to bring an object to the foreground:
40 - Use `lv_obj_move_foreground(obj)` to bring an object to the foreground. Similarly, use `lv_obj_mo…
41 - Use `lv_obj_move_to_index(obj, idx)` to move an object to a given index in the order of children.…
Ddrawing.md27 2. LVGL saves the changed object's old and new area into a buffer, called an *Invalid area buffer*.…
40 …s redrawn the library searches the top-most object which covers that area and starts drawing from …
56 1. **Prepare the draw descriptors** Create a draw descriptor from an object's styles (e.g. `lv_draw…
111 These events are related to the actual drawing of an object. E.g. the drawing of buttons, texts, et…
117 …tarting to draw an object. This is a good place to add masks manually. E.g. add a line mask that "…
121 The actual drawing of an object happens in this event. E.g. a rectangle for a button is drawn here.…
130 Post drawing events are called when all the children of an object are drawn. For example LVGL use t…
148 When LVGL draws a part of an object (e.g. a slider's indicator, a table's cell or a button matrix's…
193 This event is used to check whether an object fully covers an area or not.
196 - `LV_COVER_RES_COVER` the area is fully covered by the object
[all …]
/lvgl-latest/docs/others/
Dgridnav.md3 Grid navigation (gridnav for short) is a feature that changes the currently focused child object as…
14 Gridnav assumes that the object to which gridnav is added is part of a [group](/overview/indev.html…
15 This way, if the object with gridnav is focused, the arrow key presses are automatically forwarded …
24 To add the gridnav feature to an object use `lv_gridnav_add(cont, flags)`.
28 - `LV_GRIDNAV_CTRL_ROLLOVER` If there is no next/previous object in a direction,
29 the focus goes to the object in the next/previous row (on left/right keys) or first/last row (on up…
30 - `LV_GRIDNAV_CTRL_SCROLL_FIRST` If an arrow is pressed and the focused object can be scrolled in t…
31 …d instead of going to the next/previous object. If there is no more room for scrolling the next/p…
33 `lv_gridnav_remove(cont)` Removes gridnav from an object.
37 An object needs to be clickable or click focusable (`LV_OBJ_FLAG_CLICKABLE` or `LV_OBJ_FLAG_CLICK_F…
Dsnapshot.md3 …APIs to take snapshot image for LVGL object together with its children. The image will look exactl…
7 …napshot_take` to generate the image descriptor which can be set as image object src using `lv_img_…
22 …he snapshot but not delete the image object. Before free the memory, be sure to firstly unlink it …
46 Note that snapshot may fail if provided buffer is not enough, which may happen when object size cha…
Dfragment.md8 in LVGL needs to be hosted by an object, or another fragment. The fragment’s view hierarchy becomes…
27 /* States, object references and data fields for this fragment */
53 /* Add one instance into manager stack. View object of current fragment will be destroyed,
/lvgl-latest/docs/widgets/core/
Dline.md4 The Line object is capable of drawing straight lines between a set of points.
12 The points have to be stored in an `lv_point_t` array and passed to the object by the `lv_line_set_…
18object. It might be counter-intuitive in some cases so the y coordinates can be inverted with `lv_…
22 Only the [Generic events](../overview/event.html#generic-events) are sent by the object type.
24 See the events of the [Base object](/widgets/obj) too.
29 No *Keys* are processed by the object type.
Dbtn.md5 Buttons have no new features compared to the [Base object](/widgets/obj). They are useful for seman…
7 Buttons, by default, differ from Base object in the following ways:
17 There are no new features compared to [Base object](/widgets/obj).
20 - `LV_EVENT_VALUE_CHANGED` when the `LV_OBJ_FLAG_CHECKABLE` flag is enabled and the object is click…
28 See the events of the [Base object](/widgets/obj) too.
Dimg.md6 Images are the basic object to display images from flash (as arrays) or from files. Images can disp…
60 If the width or height of the image object is set to `LV_SIZE_CONTENT` the object's size will be se…
63 If the object's size is greater than the image size in any directions, then the image will be repea…
69 Useful if the object size is smaller than the image source size.
98 By default, when the image is zoomed or rotated the real coordinates of the image object are not ch…
99 The larger content simply overflows the object's boundaries.
102 If you need the object size to be updated to the transformed size set `lv_img_set_size_mode(img, LV…
103 In this case if the width/height of the object is set to `LV_SIZE_CONTENT` the object's size will b…
115 See the events of the [Base object](/widgets/obj) too.
120 No *Keys* are processed by the object type.
Dbar.md5 The bar object has a background and an indicator on it. The width of the indicator is set according…
7 Vertical bars can be created if the width of the object is smaller than its height.
38 See the events of the [Base object](/widgets/obj) too.
43 No *Keys* are processed by the object type.
Darc.md24 Zero degrees is at the middle right (3 o'clock) of the object and the degrees are increasing in clo…
51 To make the arc non-adjustable, remove the style of the knob and make the object non-clickable:
62 ### Place another object to the knob
64 Another object can be positioned according to the current position of the arc in order to follow th…
67 …j_to_angle(arc, obj_to_rotate, radius_offset)` can be used to rotate the object to the current val…
89 See the events of the [Base object](/widgets/obj) too.
Dtable.md7 The Table object is very lightweight because only the texts are stored. No real objects are created…
9 The Table is added to the default group (if it is set). Besides the Table is an editable object to …
34 …ble_set_col_width(table, col_id, width)`. The overall width of the Table object will be set to the…
58 See the events of the [Base object](/widgets/obj) too.
/lvgl-latest/docs/widgets/extra/
Dspan.md5object that is used to display rich text. Different from the label object, `spangroup` can render …
14object uses span to describe text and text style. so, first we need to create `span` descriptor us…
16 If spangroup object `mode != LV_SPAN_MODE_FIXED` you must call `lv_spangroup_refr_mode()` after you…
31 like label object, the spangroup can be set to one the following modes:
41 - `LV_SPAN_MODE_FIXED` fixes the object size.
42 - `LV_SPAN_MODE_EXPAND` Expand the object size to the text size but stay on a single line.
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.
66 No *Keys* are processed by the object type.
Dled.md5 The LEDs are rectangle-like (or circle) object whose brightness can be adjusted. With lower brightn…
24 …AW_PART_RECTANGLE` The main rectangle. `LV_OBJ_DRAW_PART_RECTANGLE` is not sent by the base object.
30 See the events of the [Base object](/widgets/obj) too.
35 No *Keys* are processed by the object type.
Danimimg.md5 The animation image is similar to the normal 'Image' object. The only difference is that instead of…
23 See the events of the Base object too.
29 No Keys are processed by the object type.
Dspinner.md4 The Spinner object is a spinning arc over a ring.
23 No *Keys* are processed by the object type.
Dimgbtn.md5 The Image button is very similar to the simple 'Button' object. The only difference is that it disp…
7 …ft, right and center image, and the center image will be repeated to match the width of the object.
19 The image sources work the same as described in the [Image object](/widgets/core/img) except that "…
/lvgl-latest/docs/get-started/
Dquick-overview.md89 Every object has a parent object where it is created. For example, if a label is created on a butto…
91 The child object moves with the parent and if the parent is deleted the children will be deleted to…
99 … create a new object with `lv_<type>_create(parent)`. It will return an `lv_obj_t *` variable that…
123 Events are used to inform the user that something has happened with an object.
124 You can assign one or more callbacks to an object which will be called if the object is clicked, re…
146 The object that triggered the event can be retrieved with:
173 For example, if you press an object it will automatically go to the `LV_STATE_FOCUSED` and `LV_STAT…
175 To check if an object is in a given state use `lv_obj_has_state(obj, LV_STATE_...)`. It will return…
197 Styles are assigned using the ORed combination of an object's part and state. For example to use th…
218 Styles can be cascaded (similarly to CSS). It means you can add more styles to a part of an object.
[all …]
/lvgl-latest/docs/porting/
Dindev.md15 /*Register the driver in LVGL and save the created input device object*/
58 - An object group has to be created: `lv_group_t * g = lv_group_create()` and objects have to be ad…
84 - By turning the encoder you can focus on the next/previous object.
85 - When you press the encoder on a simple object (like a button), it will be clicked.
86 …coder on a complex object (like a list, message box, etc.) the object will go to edit mode whereby…
172 - `scroll_limit` Number of pixels to slide before actually scrolling the object.

123