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.

MenusleftBitmaprightBitmapThis is a name of a bitmap to display in the left or right margin of themenu entry. All 1's in the bitmap will be rendered in the foregroundcolor, and all 0's will be drawn in the background color of the SimpleMenuwidget. It is the programmers' responsibility to make surethat the menu entry is tall enough, and the appropriate margin wideenough to accept the bitmap. If care is not taken the bitmap mayextend into another menu entry, or into this entry's label.leftMarginrightMarginThis is the amount of space (in pixels) that will be left between theedge of the menu entry and the label string.vertSpaceSmeLine ObjectThis is the amount of vertical padding, expressed as a percentage ofthe height of the font, that is to be placed around the label of a menuentry.. The label and bitmaps are always centered vertically withinthe menu. The default value for this resource (25) causes the defaultheight to be 125% of the height of the font.ResourcesApplication Header file Class Header file Class smeLineObjectClassClass Name SmeLineSuperclass SmeThe SmeLine object is used to add a horizontal line or menu separator to a menu.Since each SmeLine is an independent object, the application is able to change thecolor, height, and other attributes of the SmeLine objects on an entry by entry basis.This object is not selectable, and will not highlight when the pointer cursor is over it.The resources associated with the SmeLine object are defined in this section, andaffect only the single menu entry specified by this object.Name Class Type Notes Default Valuedestroy-CallbackCallback XtCallbackList NULLforeground Foreground Pixel XtDefault-Foregroundheight Height Dimension lineWidth62

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

Saved successfully!

Ooh no, something went wrong!