sincerely
Singaporean
If you have not done so, read this full tutorial on how to use SGEXTN to build an application.
class SGXResizer;
part of SGEXTN module SG_Widgets
allows conversion between pixels and w-distance ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ used by SGWidget ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾.
list of all including inherited members
preprocessor file inclusion directive: #include ‹SGXResizer.h›
CMake target for BuildLah: SGEXTN::SG_Widgets
see this link for more information about BuildLah
parent class: (none)
children classes: (none)
static float getRenderSpaceHeight();
static float getRenderSpaceWidth();
static float getSizeUnit();
SGXResizer allows conversion of w-distance ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ to pixels by providing the w-distance ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ base units. However, all UI layout should still use w-distance ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾.
Outputs w-distance ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ data.
Returns the render space height, which is the height of SGWWidget::parentWidget, in pixels.
Returns the render space width, which is the width of SGWWidget::parentWidget, in pixels.
Returns 1 w-distance ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ size unit in pixels.
©2025 05524F.sg (Singapore)