ViewPort Object Class
Overview
The ViewPort object class is used to create another view of an object in a
different widget. When it is created, a ViewPort object is fully linked to
the original object, so that any changes in either the original object or
the viewport are automatically propagated to the other.
Most of the attributes of the original object are automatically propagated to
the viewport object. The only exception is Graphic resource XmNclipGrid, which
can be set independently on the ViewPort object.
Inherited Behavior and Resources
The ViewPort object class inherits behavior and resources from the Xt Object
and INT Graphic classes.
- The class pointer is xintViewPortObjectClass.
- The class name is XintViewPort.
- The header file is included as <Xint/ViewPort.h>.
The following resources are defined by the ViewPort object class.
XmNobject
Specifies the ID of the object for which a new view is to be created.
XmNdestroyObject
Specifies whether the object, specified using resource XmNobject, is destroyed
when the ViewPort object is destroyed.
Defined Functions
The following function is defined for creating a ViewPort object.
XintCreateViewPort
The function XintCreateViewPort creates a ViewPort object.
Object XintCreateViewPort (...)
| Widget | parent | Parent of new ViewPort object.
|
| char * | name | Name of new ViewPort object.
|
| ArgList | arglist | List of resource/value items.
|
| Cardinal | argcount | Number of items in arglist.
|
Macros
Macro XintIsViewPort returns True if the specified object is a ViewPort object.
Boolean XintIsViewPort (Object object);