Om
1.0.0
A universal framework for multimedia simulation
|
A class that encapsulates the different boolean flags that a GUI object can have. More...
#include <omGraphicsGUIObjectFlags.h>
Public Types | |
enum | Flag { VISIBLE = (1 << 0), CLIPPING = (1 << 1), SHADOW = (1 << 2), FILL_PARENT_X = (1 << 3), FILL_PARENT_Y = (1 << 4), FILL_PARENT_Z = (1 << 5), FILL_PARENT = FILL_PARENT_X | FILL_PARENT_Y | FILL_PARENT_Z, FOCUS = (1 << 6), HAS_FOCUS = (1 << 31), DEFAULT = VISIBLE | FOCUS, UNDEFINED = 0 } |
An enum that specifies the different GUI object flags. More... | |
Public Member Functions | |
GUIObjectFlags () | |
Create a new GUI object flags object with no flags set. More... | |
GUIObjectFlags (Flag flag) | |
Create a new GUI object flags object with the specified flag value initially set. More... | |
GUIObjectFlags (UInt32 newFlags) | |
Create a new GUI object flags object with the specified initial combined flags value. More... | |
operator UInt32 () const | |
Convert this GUI object flags object to an integer value. More... | |
Bool | isSet (Flag flag) const |
Return whether or not the specified flag value is set for this flags object. More... | |
Bool | isSetAny (Flag flag) const |
Return whether or not the any of the specified flag's bits are set for this flags object. More... | |
void | set (Flag flag, Bool newIsSet) |
Set whether or not the specified flag value is set for this flags object. More... | |
A class that encapsulates the different boolean flags that a GUI object can have.
These flags provide boolean information about a certain GUI object. Flags are indicated by setting a single bit of a 32-bit unsigned integer to 1.
Enum values for the different flags are defined as members of the class. Typically, the user would bitwise-OR the flag enum values together to produce a final set of set flags.
An enum that specifies the different GUI object flags.
|
inline |
Create a new GUI object flags object with no flags set.
|
inline |
Create a new GUI object flags object with the specified flag value initially set.
|
inline |
Create a new GUI object flags object with the specified initial combined flags value.
|
inline |
Convert this GUI object flags object to an integer value.
This operator is provided so that the GUIObjectFlags object can be used as an integer value for bitwise logical operations.
Return whether or not the specified flag value is set for this flags object.
Return whether or not the any of the specified flag's bits are set for this flags object.
Set whether or not the specified flag value is set for this flags object.