From be82d622323c2770088c747c1657d26f5456f0e1 Mon Sep 17 00:00:00 2001 From: Pascal Thomet Date: Mon, 8 Jan 2024 18:51:35 +0100 Subject: [PATCH] Update docs / 2024-01-08 / 18:51:34 --- docs/book/_sources/doc_api.md | 12 +++++++----- docs/book/doc_api.html | 10 ++++++---- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/docs/book/_sources/doc_api.md b/docs/book/_sources/doc_api.md index 44b5b99e..b4bb63e9 100644 --- a/docs/book/_sources/doc_api.md +++ b/docs/book/_sources/doc_api.md @@ -29,13 +29,15 @@ __HelloImGui::GetRunnerParams()__ will return the runnerParams of the current a # Place widgets in a DPI-aware way -Special care must be taken in order to correctly handle screen with high DPI (for example, almost all recent laptops screens). +Special care must be taken in order to correctly handle screen with high DPI + (for example, almost all recent laptops screens). -Using ImVec2 with fixed values is *almost always a bad idea* if you intend your application to be used on high DPI screens! - Otherwise, widgets might be misplaced or too small on different screens and/or OSes. +Using ImVec2 with fixed values is *almost always a bad idea* if you intend your +application to be used on high DPI screens! +Otherwise, widgets might be misplaced or too small on different screens and/or OSes. -Instead you should use scale your widgets and windows relatively to the font size, as is done -with the [em CSS Unit](https://lyty.dev/css/css-unit.html). +Instead you should use scale your widgets and windows relatively to the font size, +as is done with the [em CSS Unit](https://lyty.dev/css/css-unit.html). ```cpp diff --git a/docs/book/doc_api.html b/docs/book/doc_api.html index a2fbaf74..5f62f281 100644 --- a/docs/book/doc_api.html +++ b/docs/book/doc_api.html @@ -446,11 +446,13 @@

Run Application

Place widgets in a DPI-aware way#

-

Special care must be taken in order to correctly handle screen with high DPI (for example, almost all recent laptops screens).

-

Using ImVec2 with fixed values is almost always a bad idea if you intend your application to be used on high DPI screens! +

Special care must be taken in order to correctly handle screen with high DPI +(for example, almost all recent laptops screens).

+

Using ImVec2 with fixed values is almost always a bad idea if you intend your +application to be used on high DPI screens! Otherwise, widgets might be misplaced or too small on different screens and/or OSes.

-

Instead you should use scale your widgets and windows relatively to the font size, as is done -with the em CSS Unit.

+

Instead you should use scale your widgets and windows relatively to the font size, +as is done with the em CSS Unit.

//  __HelloImGui::EmToVec2()__ returns an ImVec2 that you can use to size
 //  or place your widgets in a DPI independent way.
 //  Values are in multiples of the font size (i.e. as in the em CSS unit).