GEOS SDK TechDocs
|
|
3.2 VI_typeFlags
|
3.4 VI_optFlags
VI_attrs, MSG_VIS_GET_ATTRS, MSG_VIS_SET_ATTRS
The
VI_attrs
field is a record of eight flags (
VisAttrs
)that determine the general visible attributes of the object. These attributes may be changed on the fly and often are. Applications that don't involve visible tree operations (adding, removing, or moving branches) probably will not change these attributes dynamically.
To set the flags after the object has been instantiated, send it a
MSG_VIS_SET_ATTRS
with the appropriate flags to be set. To retrieve the
VI_attrs
record, send the object a
MSG_VIS_GET_ATTRS
. The VA_REALIZED flag may not be changed with
MSG_VIS_SET_ATTRS
.
The eight flags of the
VisAttrs
record are listed below:
VI_typeFlags
) and is ignored for other objects. If set, it indicates that the visible branch headed by this object can be made visible as soon as it is linked visibly to another visible branch. For example, a window group object may have this bit set and not be on the screen if its parent window group is not set VA_VISIBLE; as soon as the parent window group becomes VA_VISIBLE, though, the entire branch will become visible.
VI_bounds
field will automatically be marked invalid.
MSG_VIS_SET_ATTRS
resets the flag, the object will retain the mouse grab until it is released or preempted normally.
VI_bounds
field changes. The old bounds are stored in a TEMP_VIS_OLD_BOUNDS vardata field.
MSG_VIS_SET_ATTRS
; it may only be changed by
MSG_VIS_OPEN
(which sets the flag) and
MSG_VIS_CLOSE
(which resets it).void MSG_VIS_SET_ATTRS(
VisAttrs attrsToSet,
VisAttrs attrsToClear,
VisUpdateMode updateMode);
This message sets the object's
VI_attrs
field to the values passed. The
attrsToSet
parameter will be OR-ed with
VI_attrs
, and the
attrsToClear
parameter will be logically inverted and then AND-ed with the field. The clear operation will occur after the set, and therefore a flag set in both parameters will be cleared. The
updateMode
parameter indicates when the visual update of the object should occur after the new attributes have been set.
Source: Unrestricted.
Destination: Any visible object.
Parameters:
attrsToSet
A record of
VisAttrs
indicating which flags are to be set for the object.
attrsToClear
VisAttrs
indicating which flags are to be cleared for the object (a flag set in
attrsToClear
will be cleared in
VI_attrs
).
updateMode
VisUpdateMode
indicating when the object should be visually updated on the screen.Return: Nothing.
Interception: Unlikely.
Warnings: Not all flags in the
VI_attrs
record may be set with this message.
VisAttrs MSG_VIS_GET_ATTRS();
This message returns a visible object's current
VI_attrs
field.
Source: Unrestricted.
Destination: Any visible object.
Parameters: None.
Return: A byte of type
VisAttrs
representing the current flags set in the object's
VI_attrs
field.
Interception: Unlikely.
GEOS SDK TechDocs
|
|
3.2 VI_typeFlags
|
3.4 VI_optFlags