DPI scaling and screen size utilities for wxWidgets windows.
More...
|
| int | Scale (wxWindow *win, int px) |
| | Scales a pixel value from logical to physical units for the given window.
|
| wxSize | Scale (wxWindow *win, const wxSize &size) |
| | Scales a size from logical to physical units for the given window.
|
| wxSize | GetScreenSize () |
| | Returns the primary display size in pixels.
|
| wxSize | GetScreenSize (wxWindow *win) |
| | Returns the screen size for the display containing the given window.
|
DPI scaling and screen size utilities for wxWidgets windows.
◆ GetScreenSize() [1/2]
| wxSize EmberUI::DPI::GetScreenSize |
( |
| ) |
|
|
inline |
Returns the primary display size in pixels.
Definition at line 16 of file DPI.h.
◆ GetScreenSize() [2/2]
| wxSize EmberUI::DPI::GetScreenSize |
( |
wxWindow * | win | ) |
|
|
inline |
Returns the screen size for the display containing the given window.
Definition at line 23 of file DPI.h.
◆ Scale() [1/2]
| wxSize EmberUI::DPI::Scale |
( |
wxWindow * | win, |
|
|
const wxSize & | size ) |
|
inline |
Scales a size from logical to physical units for the given window.
Definition at line 13 of file DPI.h.
◆ Scale() [2/2]
| int EmberUI::DPI::Scale |
( |
wxWindow * | win, |
|
|
int | px ) |
|
inline |
Scales a pixel value from logical to physical units for the given window.
Definition at line 11 of file DPI.h.