sincerely Singaporean

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

SGWPageBackground

see header file

see source file

class SGWPageBackground;

part of SGEXTN module SG_Widgets

non scrollable background for SGWidget ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ UI pages

detailed description

list of all including inherited members

implementation details

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)

instance member functions

SGWPageBackground(SGWWidget* parent, float x1, float x0, float y1, float y0, float w1, float w0, float h1, float h0);

Detailed Description

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.

Implementation Details

Stores information about the SGWPageBackground.

SGWPageBackground(SGWWidget* parent, float x1, float x0, float y1, float y0, float w1, float w0, float h1, float h0);

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)

contact 05524F / report a bug / make a suggestion

about 05524F SINGAPORE values

list of 05524F projects