chore(docs): fix a few typos (#4170)
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
This commit is contained in:
@@ -107,7 +107,7 @@ Events
|
||||
|
||||
- ``part``: :cpp:enumerator:`LV_PART_ITEMS`
|
||||
- ``id``:index of the button being drawn
|
||||
- ``draw_area``: the area of teh button
|
||||
- ``draw_area``: the area of the button
|
||||
- ``rect_dsc``
|
||||
|
||||
See the events of the `Base object </widgets/obj>`__ too.
|
||||
|
||||
@@ -66,7 +66,7 @@ color format of the buffer and the canvas need to match.
|
||||
|
||||
To draw something to the canvas use:
|
||||
|
||||
- :cpp:expr:`lv_canvas_draw_rect(canvas, x, y, width, heigth, &draw_dsc)`
|
||||
- :cpp:expr:`lv_canvas_draw_rect(canvas, x, y, width, height, &draw_dsc)`
|
||||
- :cpp:expr:`lv_canvas_draw_text(canvas, x, y, max_width, &draw_dsc, txt)`
|
||||
- :cpp:expr:`lv_canvas_draw_img(canvas, x, y, &img_src, &draw_dsc)`
|
||||
- :cpp:expr:`lv_canvas_draw_line(canvas, point_array, point_cnt, &draw_dsc)`
|
||||
|
||||
@@ -67,7 +67,7 @@ an array for the data points. ``axis`` can have the following values:
|
||||
- :cpp:enumerator:`LV_CHART_AXIS_PRIMARY_X` Bottom axis
|
||||
- :cpp:enumerator:`LV_CHART_AXIS_SECONDARY_X` Top axis
|
||||
|
||||
``axis`` tells which axis's range should be used te scale the values.
|
||||
``axis`` tells which axis's range should be used to scale the values.
|
||||
|
||||
:cpp:expr:`lv_chart_set_ext_y_array(chart, ser, value_array)` makes the chart
|
||||
use an external array for the given series. ``value_array`` should look
|
||||
|
||||
@@ -71,8 +71,8 @@ creating new maps a ctrls.
|
||||
Keep in mind that using following keywords will have the same effect as
|
||||
with the original map:
|
||||
|
||||
- :c:macro:`LV_SYMBOL_OK` Send ``LV_EVENT_RADY`` to the assigend Text area.
|
||||
- :c:macro:`LV_SYMBOL_CLOSE` or :c:macro:`LV_SYMBOL_KEYBOARD` Send :cpp:enumerator:`LV_EVENT_CANCEL` to the assigend Text area.
|
||||
- :c:macro:`LV_SYMBOL_OK` Send ``LV_EVENT_RADY`` to the assigned Text area.
|
||||
- :c:macro:`LV_SYMBOL_CLOSE` or :c:macro:`LV_SYMBOL_KEYBOARD` Send :cpp:enumerator:`LV_EVENT_CANCEL` to the assigned Text area.
|
||||
- :c:macro:`LV_SYMBOL_BACKSPACE` Delete on the left.
|
||||
- :c:macro:`LV_SYMBOL_LEFT` Move the cursor left.
|
||||
- :c:macro:`LV_SYMBOL_RIGHT` Move the cursor right.
|
||||
|
||||
@@ -81,7 +81,7 @@ To get a specific child of a parent use :cpp:expr:`lv_obj_get_child(parent, idx)
|
||||
- ``1`` get the child created second
|
||||
- ``-1`` get the child created last
|
||||
|
||||
The children can be iterated lke this:
|
||||
The children can be iterated like this:
|
||||
|
||||
.. code:: c
|
||||
|
||||
|
||||
Reference in New Issue
Block a user