Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XtMoveWidge(3x) — HP-UX 9.10

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XtConfigureWidget(1)

XtMakeGeometryRequest(1)

XtResizeWidget(1)

 

NAME

XtMoveWidget − move a widget within its parent. 

Synopsis

void XtMoveWidget(w, x, y)

    Widget w;
    Position x;
    Position y;

Inputs

wSpecifies the widget to be moved; must be of class RectObj or any subclass thereof. 

x, ySpecify the new widget x and y coordinates. 

Description

XtMoveWidget() returns immediately if the specified geometry fields for the widget are the same as the current values.  Otherwise, XtMoveWidget() writes the new x and y values into the widget and, if the widget is realized, issues an Xlib XMoveWindow() call on the widget’s window. 

Usage

XtMoveWidget() should only be used in widget code when a parent widget wants to move one of its children.  If an application wants to move a widget, it should set the XtNx and XtNy resources on the widget.  If a widget wants to move itself, it must request that change of its parent by calling XtMakeGeometryRequest().  To move and resize a child widget, use XtConfigureWidget().  To simply resize a child widget, use XtResizeWidget(). 

See Also

XtConfigureWidget(1), XtMakeGeometryRequest(1), XtResizeWidget(1). 

Copyright O’Reilly & Assoc.  —  X Toolkit Intrinsics Reference Manual © O’Reilly & Associates

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026