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











SourceForge.net 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 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).

 

 

Last edit by cxl on 10/08/2015. Do you want to contribute?. T++