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 following resources are defined by the ViewPort object class.

NameTypeDefaultAccess
XmNobjectObjectNULLCG
XmNdestroyObjectBooleanFalseCG


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 (...)

Widgetparent Parent of new ViewPort object.
char *nameName of new ViewPort object.
ArgListarglistList of resource/value items.
CardinalargcountNumber of items in arglist.


Macros

Macro XintIsViewPort returns True if the specified object is a ViewPort object.

     Boolean XintIsViewPort (Object object);