![]() |
UNIVERS
15.3
UNIVERS base processing software API
|
#include <ZmSelection.H>
Public Member Functions | |
| ZmSelection (Widget w, Atom name=XA_PRIMARY) | |
| virtual | ~ZmSelection () |
| virtual void | highlight_data (bool flag) |
| virtual bool | publish_data (const char *text, Time timestamp) |
| virtual void | unpublish_data (Time timestamp) |
| virtual bool | request_data (char *&text, Time timestamp) |
Protected Attributes | |
| struct { | |
| Atom type | |
| XtPointer data | |
| unsigned long size | |
| int format | |
| } | im_buf |
| struct { | |
| Atom type | |
| XtPointer data | |
| unsigned long size | |
| int format | |
| } | ex_buf |
| bool | bPaste |
| Atom | aName |
| Atom | aData |
| Widget | wToplevel |
Object for providing and requesting selection (clipboard).
| ZmSelection::ZmSelection | ( | Widget | w, |
| Atom | name = XA_PRIMARY |
||
| ) |
Create selection provider/requester object. It supposed to be the only one for an application.
|
virtual |
Destroy the object.
|
virtual |
Method for visual highlighting of selected data. True means an request to highlight, false means to reset highlighting. An application may ignore this order.
Reimplemented in ZmTableTool.
|
virtual |
Make a selection of given text data at given moment (usually, obtained from pCallData->event->xkey.time). Return true in case of success and false otherwise.
|
virtual |
Request data of XA_STRING type at given moment (usually, obtained from pCallData->event->xkey.time). In case of success pasted text is allocated by malloc() and zero terminated.
|
virtual |
Recall published data.
|
protected |
Atom for property used as a data buffer.
|
protected |
Stored selection name (XA_PRIMARY or XA_SECONDARY)
|
protected |
Flag of the ready pasted data.
| XtPointer ZmSelection::data |
Data themselves
| int ZmSelection::format |
8, 16 or 32 depending data
| struct { ... } ZmSelection::im_buf |
Data prepared for import/export.
| unsigned long ZmSelection::size |
Size of data in bytes
| Atom ZmSelection::type |
Type of the data
|
protected |
Stored top-level widget.
1.8.5