Skip to content

Selection Functions

To use the functions defined in this section, you should include the header file <X11/Xmu/StdSel.h> and link against the libXmu library.

Boolean XmuConvertStandardSelection(Widget w, Time time, Atom *selection, Atom *target, Atom *type, XPointer value, unsigned long *length, int *format);
Boolean XmuConvertStandardSelection(Widget w, Time time, Atom *selection, Atom *target, Atom *type, XPointer value, unsigned long *length, int *format);

w

specifies the widget which currently owns the selection

time

specifies the time at which the selection was established

selection

this argument is ignored

target

specifies the target type of the selection

type

returns the property type of the converted value

value

returns the converted value

length

returns the number of elements in the converted value

format

returns the size in bits of the elements

This function converts the following standard selections: CLASS, CLIENT_WINDOW, DECNET_ADDRESS, HOSTNAME, IP_ADDRESS, NAME, OWNER_OS, TARGETS, TIMESTAMP, and USER. It returns True if the conversion was successful, else it returns False.