sincerely
Singaporean
If you have not done so, read this full tutorial on how to use SGEXTN to build an application.
class SGWPageBackground;
part of SGEXTN module SG_Widgets
non scrollable background for SGWidget ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ UI pages
list of all including inherited members
preprocessor file inclusion directive: #include ‹SGWPageBackground.h›
CMake target for BuildLah: SGEXTN::SG_Widgets
see this link for more information about BuildLah
parent class: SGWBackground
children classes: (none)
SGWPageBackground(SGWWidget* parent, float x1, float x0, float y1, float y0, float w1, float w0, float h1, float h0);
SGWPageBackground is used as the background for SGWidget ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ UI pages as it works with SGWBackground::enable and SGWBackground::disable. It also blocks touch events, unlike SGWBlankWidget. If scrolling is desired, use either SGWScrollView or SGWSequentialScrollView. If blocking touch events is not necessary, use SGWBlankWidget instead.
Stores information about the SGWPageBackground.
Creates a SGWPageBackground with parent SGWidget ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ parent and w-distance ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ coordinates (x1, x0, y1, y0, w1, w0, h1, h0).
parent being nullptr is undefined behaviour.
To avoid use after free bugs, deleting a SGWBackground directly will cause a crash. Use SGWBackground::disable or SGWWidget::deleteWidget to delete it safely.
©2025 05524F.sg (Singapore)