sincerely Singaporean

If you have not done so, read this full tutorial on how to use SGEXTN to build an application.

SGXResizer

see header file

see source file

class SGXResizer;

part of SGEXTN module SG_Widgets

allows conversion between pixels and w-distance ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ used by SGWidget ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾.

detailed description

list of all including inherited members

implementation details

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 member functions

static float getRenderSpaceHeight();

static float getRenderSpaceWidth();

static float getSizeUnit();

Detailed Description

SGXResizer allows conversion of w-distance ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ to pixels by providing the w-distance ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ base units. However, all UI layout should still use w-distance ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾.

Implementation Details

Outputs w-distance ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ data.

static float getRenderSpaceHeight();

Returns the render space height, which is the height of SGWWidget::parentWidget, in pixels.

static float getRenderSpaceWidth();

Returns the render space width, which is the width of SGWWidget::parentWidget, in pixels.

static float getSizeUnit();

Returns 1 w-distance ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ size unit in pixels.

©2025 05524F.sg (Singapore)

contact 05524F / report a bug / make a suggestion

about 05524F SINGAPORE values

list of 05524F projects