GEOS SDK TechDocs
|
|
1 VisContent Instance Data
|
1.2 Fields That Affect the View
VCNI_attrs, MSG_VIS_CONTENT_SET_ATTRS, MSG_VIS_CONTENT_GET_ATTRS
The
VCNI_attrs
field is a record of
VisContentAttrs
that contains several attributes which affect how the content object interacts with the view and with the visible object tree. You can set these attributes with
MSG_VIS_CONTENT_SET_ATTRS
dynamically, and you can retrieve them with
MSG_VIS_CONTENT_GET_ATTRS
.
The flags in this field are shown below. None of them is set by default.
VCNA_WINDOW_COORDINATE_MOUSE_EVENTS
This flag must be set if VCNA_LARGE_DOCUMENT_MODEL is set. It indicates that the associated GenView will pass input events with window coordinates rather than document coordinates. The default handlers in the content object will then automatically translate the events into document coordinates.
MSG_VIS_VUP_ALTER_INPUT_FLOW
. Large content objects should not set this flag in their Goc declarations.
MSG_GEN_VIEW_SET_DOC_BOUNDS
.
MSG_META_CONTENT_VIEW_ORIGIN_CHANGED
to the content when the user interacts with the scroller. The UI will use this flag to invalidate the correct region of the content. This should be set when
ATTR_GEN_VIEW_DO_NOT_WIN_SCROLL
is set in the GenView. See the GenView chapter for full information on view scrolling.
void MSG_VIS_CONTENT_SET_ATTRS(
VisContentAttrs attrsToSet,
VisContentAttrs attrsToClear);
This message sets the
VCNI_attrs
field of the content object according to the passed values.
Source: Unrestricted.
Destination: Any VisContent object.
Parameters:
attrsToSet
This is a record of
VisContentAttrs
to set. A flag set in this field will be set in the object's
VCNI_attrs
field.
attrsToClear
This is a record of
VisContentAttrs
to clear. A flag set in this field will be cleared in the object's
VCNI_attrs
field. This parameter takes precedence over
attrsToSet
; that is, if a flag is set in both parameters, it will end up cleared.
Return: Nothing.
Interception: Unlikely.
VisContentAttrs MSG_VIS_CONTENT_GET_ATTRS();
This message returns the current contents of the object's
VCNI_attrs
field, a record of
VisContentAttrs
.
Source: Unrestricted.
Destination: Any VisContent object.
Parameters: None.
Return: A record of
VisContentAttrs
reflecting the flags currently set in the object's
VCNI_attrs
field.
Interception: Unlikely.
GEOS SDK TechDocs
|
|
1 VisContent Instance Data
|
1.2 Fields That Affect the View