Skip to Content
Volume 6A: Motif Programming Manual
book

Volume 6A: Motif Programming Manual

by David Brennan, Dan Heller, Paula Ferguson
September 1993
Intermediate to advanced
1014 pages
28h 26m
English
O'Reilly Media, Inc.
Content preview from Volume 6A: Motif Programming Manual
The XmStringDrawUnderline() routine takes the same parameters as XmStringDraw() with one addition.
The last parameter specifies the portion of the compound string that should be underlined. A compound string can be
wholly or partially underlined depending on whether the last parameter specifies the entire compound string or only a
substring of the string parameter.
It may be necessary to get dimensional information about a compound string in order to know where to place it within
the window when it is drawn. You may also want this data to determine the optimal or desired width and height of a
widget in case you have to provide a geometry callback method. When a call to XtQueryGeometry is made, a
widget that contains compound strings may need to tell the calling function the dimensions it needs to render its
compound strings adequately. Motif provides the following routines to help you determine compound string
dimensions:
XmStringBaseLine()
XmStringExtent()
XmStringHeight()
XmStringWidth()
Each of these functions takes fontlist (XmFontList) and string (XmString) parameters. The font list is
dependent on the widget associated with the string, but there is no requirement that you must use a string that is
associated with a widget. If you just want to get the dimensions of a particular compound string rendered using an
arbitrary font or font set, you can create a font list manually, as described in Section #sfontlist.
XmStringBaseline() returns the number of pixels between the top of the character ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Volume 7A: XView Programming Manual

Volume 7A: XView Programming Manual

Dan Heller

Publisher Resources

ISBN: 9780596000431