feat(docs): widget proofread wrap-up (#7405)
Co-authored-by: Liam <30486941+liamHowatt@users.noreply.github.com>
This commit is contained in:
@@ -3,13 +3,13 @@ Windows Display/Inputs driver
|
||||
=============================
|
||||
|
||||
Overview
|
||||
--------
|
||||
********
|
||||
|
||||
The **Windows** display/input `driver <https://github.com/lvgl/lvgl/src/drivers/windows>`__ offers support for simulating the LVGL display and keyboard/mouse inputs in a Windows Win32 window.
|
||||
|
||||
The main purpose for this driver is for testing/debugging the LVGL application in a **Windows** simulation window via **simulator mode**, or developing a standard **Windows** desktop application with LVGL via **application mode**.
|
||||
|
||||
Here are the **similarity** for simulator mode and application mode.
|
||||
These are the **similarities** between simulator mode and application mode.
|
||||
|
||||
- Support LVGL pointer, keypad and encoder devices integration.
|
||||
- Support Windows touch input.
|
||||
@@ -17,35 +17,38 @@ Here are the **similarity** for simulator mode and application mode.
|
||||
- Support Per-monitor DPI Aware (both V1 and V2).
|
||||
- Provide HWND-based interoperability for other Windows UI infrastructures.
|
||||
|
||||
Here are the **differences** for simulator mode and application mode.
|
||||
These are the **differences** between simulator mode and application mode.
|
||||
|
||||
Simulator Mode
|
||||
^^^^^^^^^^^^^^
|
||||
--------------
|
||||
|
||||
- Designed for LVGL simulation scenario.
|
||||
- Keep the LVGL display resolution all time for trying best to simulate UI layout which will see in their production devices.
|
||||
- When Windows DPI scaling setting is changed, Windows backend will stretch the display content.
|
||||
- Designed for LVGL device-simulation scenario --- simulates LVGL rendering to a hardware display panel.
|
||||
- Keeps LVGL display resolution constant in order to best simulate UI layout which will will be seen in production devices.
|
||||
- When Windows DPI scaling setting is changed, Windows backend will stretch display content.
|
||||
|
||||
Application Mode
|
||||
^^^^^^^^^^^^^^^^
|
||||
----------------
|
||||
|
||||
- Designed for Windows desktop application development scenario.
|
||||
- Have the Window resizing support and LVGL display resolution will be changed.
|
||||
- When Windows DPI scaling setting is changed, the LVGL display DPI value will also be changed.
|
||||
- Designed for Windows desktop application-development scenario.
|
||||
- Has Window resizing support and LVGL display resolution is changed dynamically.
|
||||
- When Windows DPI scaling setting is changed, LVGL display DPI value is also changed.
|
||||
- The resolution you set for lv_windows_create_display is the window size instead of window client size for following the convention of other Windows desktop UI infrastructures.
|
||||
- The applications based on this mode should adapt the LVGL display resolution changing for supporting window resizing properly.
|
||||
|
||||
Prerequisites
|
||||
-------------
|
||||
*************
|
||||
|
||||
The minimum Windows OS requirement for this driver is Windows Vista RTM.
|
||||
|
||||
If you use Windows API shim libraries like `YY-Thunks <https://github.com/Chuyu-Team/YY-Thunks>`__, the tested minimum Windows OS requirement for this driver is Windows XP RTM.
|
||||
If you use Windows API shim libraries like `YY-Thunks
|
||||
<https://github.com/Chuyu-Team/YY-Thunks>`__, the tested minimum Windows OS
|
||||
requirement for this driver is Windows XP RTM.
|
||||
|
||||
According to the Windows GDI API this driver used. Maybe the minimum Windows OS requirement limitation for this driver is Windows 2000 RTM.
|
||||
According to the Windows GDI API this driver used, it is possible the minimum Windows OS
|
||||
requirement limitation for this driver is Windows 2000 RTM.
|
||||
|
||||
Configure Windows driver
|
||||
------------------------
|
||||
Configure Windows Driver
|
||||
************************
|
||||
|
||||
Enable the Windows driver support in lv_conf.h, by cmake compiler define or by KConfig
|
||||
|
||||
@@ -54,7 +57,7 @@ Enable the Windows driver support in lv_conf.h, by cmake compiler define or by K
|
||||
#define LV_USE_WINDOWS 1
|
||||
|
||||
Usage
|
||||
-----
|
||||
*****
|
||||
|
||||
.. code-block:: c
|
||||
|
||||
|
||||
Reference in New Issue
Block a user