diff --git a/docs/src/details/auxiliary-modules/xml/events.rst b/docs/src/details/auxiliary-modules/xml/events.rst index 41567def51..82898ee658 100644 --- a/docs/src/details/auxiliary-modules/xml/events.rst +++ b/docs/src/details/auxiliary-modules/xml/events.rst @@ -7,7 +7,7 @@ Events Overview ******** -```` tags can be added as a child of any widget to react to user inputs or other value changes. +```` tags can be added as a child of any Widget to react to user inputs or other value changes. Right now, only a single event type is supported to call user-defined callbacks. @@ -20,12 +20,13 @@ Call function User-defined functions can be called like this: .. code-block:: xml - - - - - - + + + + + + + When the XML is loaded at runtime, the callback name needs to be mapped to a function by using: ``lv_xml_register_event_cb("my_callback_1", an_event_handler)`` @@ -37,9 +38,10 @@ In the exported C code, it is assumed that there is a function with the exact na For example, ``callback="my_callback_1"`` will be exported as: .. code-block:: c - void my_callback_1(lv_event_t * e); /* At the beginning of the exported file */ - lv_obj_add_event_cb(obj, my_callback_1, LV_EVENT_CLICKED, "some_text"); + void my_callback_1(lv_event_t * e); /* At the beginning of the exported file */ + + lv_obj_add_event_cb(obj, my_callback_1, LV_EVENT_CLICKED, "some_text"); For triggers, all LVGL event types are supported with straightforward mapping: diff --git a/docs/src/details/integration/boards/viewe.rst b/docs/src/details/integration/boards/viewe.rst index 302825c369..afcd4eb9b8 100644 --- a/docs/src/details/integration/boards/viewe.rst +++ b/docs/src/details/integration/boards/viewe.rst @@ -3,29 +3,34 @@ Viewe ===== `Viewe `__ is a high-tech enterprise specializing -in comprehensive display solutions, including display panels, touch interfaces, -and embedded smart displays. They integrate research and development, production, -and sales services, focusing on professionalism, dedication, innovation, -and ambition to lead in the display and graphical user interface (GUI) +in comprehensive display solutions, including display panels, touch interfaces, +and embedded smart displays. They integrate research and development, production, +and sales services, focusing on professionalism, dedication, innovation, +and ambition to lead in the display and graphical user interface (GUI) industry. - TFT Displays - - Standard Display - - Sunlight Readable Display - - Bar Display/Stretched Display - - Square Display - - Round Display + + - Standard Display + - Sunlight Readable Display + - Bar Display/Stretched Display + - Square Display + - Round Display + - Smart Display - - Uart Smart Display - - IOT_AIOT Smart Display - - HDMI Display_Raspberry Pi Display - - Arduino Display + + - Uart Smart Display + - IOT_AIOT Smart Display + - HDMI Display_Raspberry Pi Display + - Arduino Display + + UART Smart Displays ******************* -The Viewe UART Smart Displays are a series of displays that use -ESP32 microcontrollers and have IO interface for connecting to +The Viewe UART Smart Displays are a series of displays that use +ESP32 microcontrollers and have IO interface for connecting to peripherals. lv_port_viewe_7_espidf diff --git a/docs/src/details/integration/chip/nxp.rst b/docs/src/details/integration/chip/nxp.rst index d759f9909f..675109964c 100644 --- a/docs/src/details/integration/chip/nxp.rst +++ b/docs/src/details/integration/chip/nxp.rst @@ -529,7 +529,7 @@ Project setup: - "src/draw/nxp/g2d/lv_draw_buf_g2d.c": draw buffer callbacks - "src/draw/nxp/g2d/lv_draw_g2d_fill.c": fill area - "src/draw/nxp/g2d/lv_draw_g2d_img.c": blit image (w/ optional recolor or - transformation) + transformation) - "src/draw/nxp/g2d/lv_draw_g2d.c": draw unit initialization - "src/draw/nxp/g2d/lv_draw_g2d_buf_map.c": hash map for g2d buffers - "src/draw/nxp/g2d/lv_g2d_utils.c": function helpers diff --git a/docs/src/details/integration/chip/renesas.rst b/docs/src/details/integration/chip/renesas.rst index ba704adb7a..2a9d09900e 100644 --- a/docs/src/details/integration/chip/renesas.rst +++ b/docs/src/details/integration/chip/renesas.rst @@ -1,11 +1,11 @@ .. _renesas: -.. |sup2| unicode:: U+000B2 .. SUPERSCRIPT TWO - ======= Renesas ======= +.. |sup2| unicode:: U+000B2 .. SUPERSCRIPT TWO + `Renesas `__ is an official partner of LVGL. Therefore, LVGL contains built-in support for `Dave2D `__ (the GPU of Renesas) and we also maintain ready-to-use Renesas projects. diff --git a/docs/src/details/integration/driver/display/renesas_glcdc.rst b/docs/src/details/integration/driver/display/renesas_glcdc.rst index 1ccc10a9e8..7c94f157f1 100644 --- a/docs/src/details/integration/driver/display/renesas_glcdc.rst +++ b/docs/src/details/integration/driver/display/renesas_glcdc.rst @@ -1,11 +1,11 @@ .. _renesas_glcdc: -.. |sup2| unicode:: U+000B2 .. SUPERSCRIPT TWO - ============= Renesas GLCDC ============= +.. |sup2| unicode:: U+000B2 .. SUPERSCRIPT TWO + Overview -------- diff --git a/docs/src/details/main-modules/indev.rst b/docs/src/details/main-modules/indev.rst index 975ec6e72e..4e9cfe1b17 100644 --- a/docs/src/details/main-modules/indev.rst +++ b/docs/src/details/main-modules/indev.rst @@ -332,9 +332,9 @@ Once a gesture is recognized or ended, a ``LV_EVENT_GESTURE`` is sent. The user gather more information about the gesture: - ``lv_event_get_gesture_type(lv_event_t * gesture_event)``: Get the type of the gesture. To be -used to check which multi-touch gesture is currently reported. + used to check which multi-touch gesture is currently reported. - ``lv_indev_gesture_state_t lv_event_get_gesture_state(lv_event_t * gesture_event, lv_indev_gesture_type_t type)``: Get the -state of the gesture. It can be one of those: + state of the gesture. It can be one of those: - ``LV_INDEV_GESTURE_STATE_NONE``: The gesture is not active. - ``LV_INDEV_GESTURE_STATE_RECOGNIZED``: The gesture is recognized and can be used. diff --git a/docs/src/details/widgets/image.rst b/docs/src/details/widgets/image.rst index 8ded0a4864..3af1fd5b64 100644 --- a/docs/src/details/widgets/image.rst +++ b/docs/src/details/widgets/image.rst @@ -1,7 +1,5 @@ .. _lv_image: -.. |deg| unicode:: U+000B0 .. DEGREE SIGN - ================ Image (lv_image) ================ @@ -9,6 +7,8 @@ Image (lv_image) Overview ******** +.. |deg| unicode:: U+000B0 .. DEGREE SIGN + Images are Widgets that display images from flash (as arrays) or from files. Images can display symbols (``LV_SYMBOL_...``) as well. diff --git a/examples/widgets/canvas/index.rst b/examples/widgets/canvas/index.rst index 8212146814..d4d210f4be 100644 --- a/examples/widgets/canvas/index.rst +++ b/examples/widgets/canvas/index.rst @@ -1,4 +1,3 @@ - Drawing on the Canvas and rotate -------------------------------- @@ -62,10 +61,10 @@ Draw Fancy Letter Effects ------------------------- .. lv_example:: widgets/canvas/lv_example_canvas_10 -:language: c + :language: c Draw Fancy Letter Effects 2 --------------------------- .. lv_example:: widgets/canvas/lv_example_canvas_11 -:language: c + :language: c