Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
UppHub
Status & Roadmap
FAQ
Authors & License
Forums
Funding U++
Search on this site











SourceForge.net Logo

SourceForge.net Logo

GitHub Logo

Discord Logo

Function to support actual resolution

 

This set of function is designed to simplify writing code where screen coordinates are correctly computed based on current dialog scale factor.

 


 

int Zx(int cx)

Same as Ctrl::HorzLayoutZoom(cx).

 


 

int Zxf(double cx)

Same as Ctrl::HorzLayoutZoomf(cx).

 


 

int Zy(int cy)

Same as Ctrl::VertLayoutZoom(cy).

 


 

Size Zsz(int cx, int cy)

Same as Size(Zx(cx), Zy(cy)).

 


 

Size Zsz(Size sz)

Same as Size(Zx(sz.cx), Zy(sz.cy)).

 


 

Font FontZ(int face, int height)

Returns font with height rescaled by vertical zoom factor. Same as Font(face, Ctrl::VertLayoutZoom(height).

 


 

Font StdFontZ(int height)

Returns standard GUI font with height rescaled by vertical zoom factor. Same as FontZ(Font::STDFONT, height).

 


 

Font SansSerifZ(int height)

Font ArialZ(int height)

Same as FontZ(Font::SANSSERIF, height).

 


 

Font SerifZ(int height)

Font RomanZ(int height)

Same as FontZ(Font::SERIF, height).

 


 

Font MonospaceZ(int height)

Font CourierZ(int height)

Same as FontZ(Font::MONOSPACE, height).

 

 

Do you want to contribute?