STATUS bits
Declared in: API\core\coreTypes.h
Included by: zmodeler.h
Description
Several definitions of status bits. These status bits can be bitwise-ored to describe
status of some object, element, tool, interface item or something else, that can have
a visual or functional "status"
#define STATUS_ENABLED 0x00000001
#define STATUS_ACTIVE 0x00000002
#define STATUS_HIDDEN 0x00000004
#define STATUS_SELECTED 0x00000008
#define STATUS_WAITING 0x00000010
#define STATUS_DEFFERED 0x00000020
Values and meaning
- STATUS_ENABLED
- Availability status. When this bit is set, scene element or
user interface element can take user input and interact with user.
- STATUS_ACTIVE
- Activity status. When this bit is set, scene element is
highlighted with mouse cursor. Interface element with this status on it is considered
to be hot-highlighted.
- STATUS_HIDDEN
- Invisibility status. When this bit is set, scene element is
invisible and not affected by tools and does not interact with user. User interface
elements with this bit are not displayed (e.g. toolbar button is hidden by customization).
- STATUS_SELECTED
- Selection status. When this bit is set, scene element is
selected with any of selection tools and can be considered as highlighted if user applies
tool in selected mode. User interface
elements with this bit are displayed as selected (e.g. toolbar button is pressed; menu
item has a checkmark near it; and so on).
- STATUS_WAITING
- An item with this status is in a waiting state. Not used yet.
- STATUS_DEFFERED
- An item with this status is deffered for some time. Not used yet.
Scene elements status
All scene elements are derived from
ZEntityBase native type and it has a
status quering function. Thus, you can check status bits on scene nodes, vertices
and such.
User interface elements and tools status
Elements, tools and objects status is available via
IStatus interface. It provides functions to get, set and change status.
See Also:
- namespace core overview
- IStatus interface
- ZEntityBase::status function