12.07.2015 Views

Athena Widget Set - C Language Interface - X Consortium ... - X.Org

Athena Widget Set - C Language Interface - X Consortium ... - X.Org

Athena Widget Set - C Language Interface - X Consortium ... - X.Org

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Composite and Constraint<strong>Widget</strong>sName Class Type Notes Default Valuey Position Position 0_reportCallbackA list of functions to invoke whenever the managedchild widget changes size or position.Layout SemanticsThe Porthole widget allows its managed child to request any size that is as large orlarger than the Porthole itself and any location so long as the child still obscures allof the Porthole. This widget typically is used with a Panner widget.Porthole CallbacksThe functions registered on the reportCallback list are invoked whenever the managedchild changes size or position:void ReportProc( porthole, client_data, report);portholeclient_dataSpecifies the Porthole widget.Specifies the client data.reportTree <strong>Widget</strong>Specifies a pointer to an XawPannerReport structure containing thelocation and size of the slider and the size of the canvas.ResourcesApplication Header file Class Header file Class tree<strong>Widget</strong>ClassClass Name TreeSuperclass ConstraintThe Tree widget provides geometry management of arbitrary widgets arranged ina directed, acyclic graph (i.e., a tree). The hierarchy is constructed by attaching aconstraint resource called treeParent to each widget indicating which other nodein the tree should be treated as the widget's superior. The structure of the tree isshown by laying out the nodes in the standard format for tree diagrams with linesdrawn connecting each node with its children.The Tree sizes itself according to the needs of its children and is not intended to beresized by its parent. Instead, it should be placed inside another composite widget(such as the Porthole or Viewport) that can be used to scroll around in the tree.When creating a Tree widget instance, the following resources are retrieved fromthe argument list or from the resource database:121

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!