GEOS SDK TechDocs
|
|
3.4 VI_optFlags
|
3.6 VI_specAttrs
VI_geoAttrs, MSG_VIS_SET_GEO_ATTRS, MSG_VIS_GET_GEO_ATTRS
The
VI_geoAttrs
field is a
VisGeoAttrs
record of eight flags that determine the state of the object's geometry. They can be set and reset during execution to dynamically change the geometry behavior of the object. None of the flags is set by default. To set the flags, send the object a
MSG_VIS_SET_GEO_ATTRS
. The flags can be retrieved with a
MSG_VIS_GET_GEO_ATTRS
. The eight flags in this record are listed below.
MSG_VIS_RESET_TO_INITIAL_SIZE
.
HINT_INITIAL_SIZE
or
HINT_FIXED_SIZE
).
MSG_VIS_NOTIFY_GEOMETRY_VALID
. This flag may be used by visual objects for calculations or other sizing once geometry is redone but before redrawing occurs.
MSG_VIS_SET_POSITION
and
MSG_VIS_POSITION_BRANCH
. This flag provides an optimization that allows static calls to the geometry manager.
VisClass
or
VisCompClass
center message to calculate the object's center. Unless an object is using some unusual centering behavior, it should have this flag set. This flag allows the geometry manager to speed up calculations for normal center behavior.void MSG_VIS_SET_GEO_ATTRS(
VisGeoAttrs attrsToSet,
VisGeoAttrs attrsToClear,
VisUpdateMode updateMode);
This message causes the object to set its
VI_geoAttrs
field to the values passed. The
attrsToSet
parameter will be OR-ed with
VI_geoAttrs
, 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 end up cleared. Many of the attributes in this record are used only by Specific UI libraries and should not be altered by applications.
Source: Unrestricted.
Destination: Any visible object.
Parameters:
attrsToSet
A record of
VisGeoAttrs
indicating which flags are to be set for the object.
attrsToClear
VisGeoAttrs
indicating which flags are to be cleared for the object (a flag set in
attrsToClear
will be cleared in
VI_geoAttrs
).
updateMode
VisUpdateMode
indicating when the object should be visually updated on the screen.Return: Nothing.
Interception: Unlikely.
VisGeoAttrs MSG_VIS_GET_GEO_ATTRS();
This message returns a visible object's current
VI_geoAttrs
field.
Source: Unrestricted.
Destination: Any visible object.
Parameters: None.
Return: A record of type
VisGeoAttrs
reflecting the flags currently set in the object's
VI_geoAttrs
field.
Interception: Unlikely.
GEOS SDK TechDocs
|
|
3.4 VI_optFlags
|
3.6 VI_specAttrs