⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 selection.html

📁 linux图形界面x liberary手册
💻 HTML
字号:
<HTML><HEAD><TITLE>Xlib Programming Manual: Selections</TITLE></HEAD><BODY><H1 ALIGN=center>4.5 Selections</H1><!.IN "Selection">Selections are one method used by applications to exchange data.By using the property mechanism,applications can exchange data of arbitrary types and can negotiatethe type of the data.A selection can be thought of as an indirect property with a dynamic type.That is, rather than having the property stored in the X server,the property is maintained by some client (the owner).A selection is global in nature (considered to belong to the user but be maintained by clients) rather than being private to a particular window subhierarchy or a particular set of clients.<P>Xlib provides functions that you can use to set, get, or request conversionof selections.This allows applications to implement the notion of current selection,which requires that notification be sent to applications when they no longer own the selection.Applications that support selection often highlight the current selectionand so must be informed when another application hasacquired the selection so that they can unhighlight the selection.<P>When a client asks for the contents ofa selection, it specifies a selection target type.This target typecan be used to control the transmitted representation of the contents.For example, if the selection is ``the last thing the user clicked on''and that is currently an image, then the target type might specifywhether the contents of the image should be sent in XY format or Z format.<P>The target type can also be used to control the class ofcontents transmitted, for example, asking for the ``looks'' (fonts, linespacing, indentation, and so forth) of a paragraph selection, not thetext of the paragraph.The target type can also be used for otherpurposes.The protocol does not constrain the semantics.<P>To set the selection owner, use <B><A HREF="XSetSelectionOwner.html">XSetSelectionOwner()</A></B>.<P>To return the selection owner, use <B><A HREF="XGetSelectionOwner.html">XGetSelectionOwner()</A></B>.<P>To request conversion of a selection, use <B><A HREF="XConvertSelection.html">XConvertSelection()</A></B>.<H5 ALIGN=right><I>Next Chapter: <A HREF="../pixmap-and-cursor/">Pixmap and Cursor Functions</A></I></H5><HR><ADDRESS><A HREF="http://tronche.com/">Christophe Tronche</A>, <A HREF="mailto:ch.tronche@computer.org">ch.tronche@computer.org</A></ADDRESS></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -