sincerely Singaporean

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

SGWType

see header file

see source file

class SGWType;

part of SGEXTN module SG_Widgets

provides infromation about the type of a SGWidget ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ UI element

detailed description

list of all including inherited members

implementation details

preprocessor file inclusion directive: #include ‹SGWType.h›

CMake target for BuildLah: SGEXTN::SG_Widgets

see this link for more information about BuildLah

parent class: (none)

children classes: (none)

instance member variables

enum Type{ Root, Parent, StatusBar, BlankWidget, PageBackground, TextLabel, IconLabel, LongLabel, SequentialLongLabel, TextButton, IconButton, TextInput, LongInput, ScrollView, SequentialScrollView, ColourPicker, SingleTouchReceiver, MultiTouchReceiver, CustomRenderer, Undefined };

static member functions

static bool isBackground(SGWType::Type x);

static bool isButton(SGWType::Type x);

static bool isDisplayText(SGWType::Type x);

static bool isInputField(SGWType::Type x);

Detailed Description

SGWType provides an enum describing the type of a SGWidget ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ UI element. This can be used to static_cast SGWWidget pointers to a subclass safely.

Implementation Details

provides an enum

enum Type{ Root, Parent, StatusBar, BlankWidget, PageBackground, TextLabel, IconLabel, LongLabel, SequentialLongLabel, TextButton, IconButton, TextInput, LongInput, ScrollView, SequentialScrollView, ColourPicker, SingleTouchReceiver, MultiTouchReceiver, CustomRenderer, Undefined };

Used to indicate the type of a SGWidget ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ UI element.

static bool isBackground(SGWType::Type x);

Returns if a UI element with SGWType x is a subclass of SGWBackground.

static bool isButton(SGWType::Type x);

Returns if a UI element with SGWType x is a subclass of SGWButton.

static bool isDisplayText(SGWType::Type x);

Returns if a UI element with SGWType x is a subclass of SGWLabel.

static bool isInputField(SGWType::Type x);

Returns if a UI element with SGWType x is a subclass of SGWInput.

©2025 05524F.sg (Singapore)

contact 05524F / report a bug / make a suggestion

about 05524F SINGAPORE values

list of 05524F projects