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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Simple <strong>Widget</strong>sSimple <strong>Widget</strong>\ * resource value by reference.\ */Xt<strong>Set</strong>Arg(args[0], XtNshown, &top);}else {/*\ * Convince C not to perform an automatic conversion, which\ * would truncate 0.5 to 0.\ */XtArgVal * l_top = (XtArgVal *) &top;Xt<strong>Set</strong>Arg(args[0], XtNshown, *l_top);}Application Header file Class Header file Class simple<strong>Widget</strong>ClassClass Name SimpleSuperclass CoreResourcesThe Simple widget is not very useful by itself, as it has no semantics of its own. Itmain purpose is to be used as a common superclass for the other simple <strong>Athena</strong>widgets. This widget adds six resources to the resource list provided by the Corewidget and its superclasses.When creating a Simple widget instance, the following resources are retrieved fromthe argument list or from the resource database:Name Class Type Notes Default Valueaccelerators Accelerators AcceleratorTableancestorSensitiveAncestorSensitiveNULLBoolean D Truebackground Background Pixel XtDefault-Backgroundbackground-PixmapPixmap Pixmap XtUnspecifiedPixmapborderColor BorderColor Pixel XtDefault-Foreground48

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

Saved successfully!

Ooh no, something went wrong!