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
unsigned long length;
int private_id;
int *data_id;
XmClipboardCopy() copies the data in buffer to the clipboard. The format of the data is described by the
format_name parameter. This value is not a type, but a string -describing the type. For example, "STRING"
indicates that the data is a text string. The length parameter is the size of the data. Text strings, can use strlen
(data).
The item_id parameter is the ID returned by XmClipboardStartCopy(). The data_id parameter returns the
format ID. You may pass NULL for this parameter if you are not interested in the value, however you may need it for
other functions. For example, you will need it if you wish to withdraw an item from the clipboard. We will discuss
this issue later when we talk about registration by name. The private_id parameter is an arbitrary number that is
application−defined. The value is passed back to various functions, including those that handle calling by name, so we
will address it further in Section #sclipbyname.
When copying is done, XmClipboardEndCopy() is called to free the internal data structures associated with the
clipboard item. The routine takes the following form:
int
XmClipboardEndCopy(display, window, item_id)
Display *display;
Window window;
long item_id;
The item_id parameter is the ID returned by the call to XmClipboardStartCopy().
The clipboard copy functions return one of three status values: ClipboardSuccess, ClipboardLocked, or
ClipboardFail. If the client is successful in gaining access to the ...
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