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.

MenusSme ObjectResourcesApplication Header file Class Header file Class smeObjectClassClass Name SmeSuperclass RectObjThe Sme object is the base class for all menu entries. While this object is mainlyintended to be subclassed, it may be used in a menu to add blank space betweenmenu entries.The resources associated with the SmeLine object are defined in this section, and affectonly the single menu entry specified by this object. There are no new resourcesadded for this class, as it picks up all its resources from the RectObj class.Name Class Type Notes Default ValueBoolean Truecallback Callback XtCallbackList NULLancestorSensitiveAncestorSensitivedestroy-CallbackCallback XtCallbackList NULLheight Height Dimension 0international International Boolean C Falsesensitive Sensitive Boolean Truewidth Width Dimension 1Keep in mind that the SimpleMenu widget will force all menu items to be the widthof the widest entry.Subclassing the Sme ObjectTo Create a new Sme object class you will need to define three class methods. Thesemethods allow the SimpleMenu to highlight and unhighlight the menu entry as thepointer cursor moves over it, as well as notify the entry when the user has selectedit. All of these methods may be inherited from the Sme object, although the defaultsemantics are not very interesting.Highlight(\|)Unhighlight(\|)Called to put the menu entry into the highlightedstate.Called to return the widget to its normal (unhighlighted)state.59

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

Saved successfully!

Ooh no, something went wrong!