docs(misc): fix several issues: (#8714)

This commit is contained in:
Victor Wheeler
2025-08-19 13:46:06 -06:00
committed by GitHub
parent 64bf756db0
commit 181de54a86
6 changed files with 9 additions and 7 deletions
@@ -606,6 +606,7 @@ Triangles are defined by :cpp:type:`lv_draw_triangle_dsc_t`, which includes:
``color`` field is ignored. The ``opa`` field adjusts overall opacity.
Functions for triangle drawing:
- :cpp:expr:`lv_draw_triangle_dsc_init(&dsc)` initializes a triangle descriptor.
- :cpp:expr:`lv_draw_triangle(layer, &dsc)` creates a task to draw a triangle.
- :cpp:expr:`lv_draw_task_get_triangle_dsc(draw_task)` retrieves triangle descriptor.
+1 -1
View File
@@ -312,7 +312,7 @@ The built-in symbols are created from the `FontAwesome <https://fontawesome.com/
Add `FontAwesome.woff <https://lvgl.io/assets/others/FontAwesome5-Solid+Brands+Regular.woff>`__.
3. Set the parameters such as Name, Size, BPP. You'll use this name to
declare and use the font in your code.
4. Add the Unicode ID of the symbol to the range field. E.g.\ ``0xf287``
4. Add the Unicode ID of the symbol to the range field. E.g. ``0xf287``
for the USB symbol. More symbols can be enumerated with ``,``.
5. Convert the font and copy the generated source code to your project.
Make sure to compile the ``.c`` file of your font.
+3 -3
View File
@@ -194,7 +194,7 @@ This must be done in the user defined indev ``read_cb``. This will iterate over
recognized or ended gesture. For now only one multi-touch gesture can be recognized/ended at a time.
Once the recognizers are updated, calling ``lv_indev_gesture_recognizers_set_data`` will update the ``lv_indev_data_t`` structure.
It is meant to be done in the indev ``read_cb``. This allows the future ``lv_event_t`` to eb filled with multi-touch gesture info.
It is meant to be done in the indev ``read_cb``. This allows the future ``lv_event_t`` to be filled with multi-touch gesture info.
Here is an example of the ``read_cb``:
@@ -549,7 +549,7 @@ Using Buttons with Encoder Logic
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In addition to standard encoder behavior, you can also utilize its logic
to navigate(focus) and edit widgets using buttons. This is especially
to navigate (focus) and edit widgets using buttons. This is especially
handy if you have only few buttons available, or you want to use other
buttons in addition to an encoder wheel.
@@ -558,7 +558,7 @@ You need to have 3 buttons available:
- :cpp:enumerator:`LV_KEY_ENTER`: will simulate press or pushing of the encoder button.
- :cpp:enumerator:`LV_KEY_LEFT`: will simulate turning encoder left.
- :cpp:enumerator:`LV_KEY_RIGHT`: will simulate turning encoder right.
- other keys will be passed to the focused widget.
- Other keys will be passed to the focused widget.
If you hold the keys it will simulate an encoder advance with period
specified in ``indev_drv.long_press_repeat_time``.
+2 -1
View File
@@ -4,6 +4,7 @@
Scale (lv_scale)
================
.. |deg| unicode:: U+000B0 .. DEGREE SIGN
Overview
********
@@ -120,7 +121,7 @@ Or both of the above can be done at the same time:
Some labels of the Scale might be drawn upside down (to match the tick) if the Scale includes a certain angle range.
If you don't want this, to automatically rotate the labels to keep them upright, an additional flag can be used.
Labels that would be upside down are then rotated 180
Labels that would be upside down are then rotated 180\ |deg|
:cpp:expr:`lv_obj_set_style_transform_rotation(scale, LV_SCALE_LABEL_ROTATE_MATCH_TICKS | LV_SCALE_LABEL_ROTATE_KEEP_UPRIGHT, LV_PART_INDICATOR)`.
Labels can also be moved a fixed distance in X and Y pixels using
:cpp:expr:`lv_obj_set_style_translate_x(scale, 10, LV_PART_INDICATOR)`.
+1 -1
View File
@@ -134,7 +134,7 @@ First line indent
Use :cpp:expr:`lv_spangroup_set_indent(spangroup, 20)` to set the indent of the
first line. All modes support pixel units. In addition, :cpp:enumerator:`LV_SPAN_MODE_FIXED`
and :cpp:enumerator:`LV_SPAN_MODE_BREAK` modes support :ref:`percentage units <coord_units>`.
and :cpp:enumerator:`LV_SPAN_MODE_BREAK` modes support :ref:`percentage units <coord_units>`
as well.
+1 -1
View File
@@ -77,7 +77,7 @@ the tab bar can be moved to any side.
Setting tab bar size
--------------------
The size of the tab bar can be adjusted by :cpp:expr:`lv_tabview_set_tab_bar_size(tabview, size)`
The size of the tab bar can be adjusted by :cpp:expr:`lv_tabview_set_tab_bar_size(tabview, size)`.
When tabs are on the top or bottom, this means the height of the tab bar, and when
they are on the sides, it means the width.