Scroll to navigation

XSetSelectionOwner(3X11) XLIB FUNCTIONS XSetSelectionOwner(3X11)

̾??

XSetSelectionOwner, XGetSelectionOwner, XConvertSelection - ???????ɥ????쥯?????????????

????

XSetSelectionOwner(display, selection, owner, time)
Display *display;
Atom selection;
Window owner;
Time time;

Window XGetSelectionOwner(display, selection)
Display *display;
Atom selection;

XConvertSelection(display, selection, target, property, requestor, time)
Display *display;
Atom selection, target;
Atom property;
Window requestor;
Time time;

??????

X ?????Фؤ???³?????ꤹ?롣
???ꤵ?줿???쥯?????󥢥ȥ??ν?ͭ?Ԥ????ꤹ?롣 ???????ɥ??? None ???Ϥ????Ȥ??Ǥ??롣
?ץ??ѥƥ?̾?????ꤹ?롣 None ???Ϥ????Ȥ??Ǥ??롣
?׵??Ԥ????ꤹ?롣
???쥯?????󥢥ȥ??????ꤹ?롣
???????åȤΥ??ȥ??????ꤹ?롣
???֤????ꤹ?롣 ?????ॹ?????פ? CurrentTime ???Ϥ????Ȥ??Ǥ??롣 ?ؿ? XSetSelectionOwner ?ϡ????ꤷ?????쥯???????ν?ͭ?ԤȺǽ????????֤??ѹ????롣 ???ꤷ?????֤??????ꤷ?????쥯???????θ??ߤκǽ????????֤??????ᤤ?????? X ?????Фθ??߻??????????٤??????ˤϡ????δؿ??ϲ??⤷?ʤ??? ?????Ǥʤ??????ˤϡ??ǽ????????֤ϻ??ꤵ?줿???֤˥??åȤ??졢 CurrentTime ??X?????Фθ??߻??????֤??????????롣 ??ͭ?ԤΥ??????ɥ??? None ?????ꤵ?줿?????ˤϡ????쥯???????ν?ͭ?Ԥ? None (?Ĥޤ???ͭ??̵??)?Ȥʤ롣 ?????Ǥʤ????硢???쥯???????ν?ͭ?Ԥ??׵????Ԥä????饤?????Ȥˤʤ롣

?⤷????????ͭ??(???饤?????Ȥ? None) ???????ߤΥ??쥯????????ͭ?ԤȰۤʤꡢ???ĸ??ߤν?ͭ?Ԥ? None ?Ǥʤ????С????ߤν?ͭ?Ԥˤ? SelectionClear ???٥??Ȥ????????롣 ???쥯???????ν?ͭ?ԤˤʤäƤ??륯?饤?????Ȥ????ǽ?λ????(?Ĥޤ???³ ???Ĥ???)?????ꥯ?????Ȥǻ??ꤵ?줿??ͭ?ԤΥ??????ɥ????????˴????줿 ?????ˤϡ????쥯???????ν?ͭ?Ԥϼ?ưŪ?? None ?????뤬???ǽ????????֤Ϥ??αƶ????????ʤ??? ???쥯???????Υ??ȥ??? X ?????Фˤϲ??ᤵ???ʤ??? XGetSelectionOwner ?Ͻ?ͭ?ԤΥ??????ɥ????֤??????????? SelectionRequest ?????? SelectionClear ???٥??Ȥ????Τ????롣 ???쥯???????? X ?????Фˤ?????????Ū?˰??????롣

XSetSelectionOwner ?ϥ??顼 BadAtom ???뤤?? BadWindow ?򵯤??????Ȥ????롣

?ؿ? XGetSelectionOwner ?ϡ????ꤷ?????쥯???????򸽺߽?ͭ???Ƥ??륦?????ɥ??˴?Ϣ?Ť????줿???? ???ɥ?ID???֤??? ???쥯?????󤬻??ꤵ???Ƥ??ʤ??????ˤϡ??ؿ??????? None ???֤??? ?⤷ None ???֤??줿???硢???쥯???????ν?ͭ?ԤϤ??ʤ???

XGetSelectionOwner ?ϥ??顼 BadAtom ?򵯤??????Ȥ????롣

XConvertSelection ?ϡ????ꤷ?????쥯?????󤬻??ꤷ???????Ѵ??????뤳?Ȥ??׵᤹?롣

  • ???ꤷ?????쥯???????˽?ͭ?Ԥ????????硢X ?????Ф? SelectionRequest ?򤽤ν?ͭ?Ԥ????롣
  • ???ꤵ?줿???쥯???????ν?ͭ?Ԥ????ʤ????硢X ?????Ф? ?ץ??ѥƥ??? None ?????ꤷ?? SelectionNotify ???٥??Ȥ??׵??Ԥ????롣

???????Ϥ??????Υ??٥??ȤǤ??ѹ????줺?????????롣 ͽ???????????Ƥ??륢?ȥ??Ȥ??Ƥ? PRIMARY ?? SECONDARY ??2?Ĥ????롣

XConvertSelection ?ϥ??顼 BadAtom, BadWindow ?򵯤??????Ȥ????롣

?֤???

?????? Atom ???Ф????ͤ????????????Ƥ??? Atom ???ؤ??Ƥ??ʤ???
?????? Window ???Ф????ͤ????????????Ƥ??? Window ???ؤ??Ƥ??ʤ???

??Ϣ????

Xlib - C Language X Interface

Release 6.5 X Version 11