xcreatefontcursor.html
来自「linux图形界面x liberary手册」· HTML 代码 · 共 88 行
HTML
88 行
<HTML><HEAD><TITLE>Xlib Programming Manual: XCreateFontCursor</TITLE></HEAD><BODY><H1 ALIGN=center>XCreateFontCursor</H1><H2>Syntax</H2><!.IN "XCreateFontCursor" "" "@DEF@"><CODE><PRE>#include <X11/cursorfont.h><A HREF="cursor.html">Cursor</A> XCreateFontCursor(<B>display</B>, <B>shape</B>) <A HREF="../display/opening.html#Display">Display</A> *<B>display</B>; unsigned int <B>shape</B>;</PRE></CODE><H2>Arguments</H2><TABLE><TR><TD> <B>display</B><TD> Specifies the connection to the X server.<TR><TD> <B>shape</B><TD> Specifies the shape of the cursor.</TABLE><H2>Description</H2>X provides a set of standard cursor shapes in a special font namedcursor.Applications are encouraged to use this interface for their cursorsbecause the font can be customized for the individual display type.The shape argument specifies which glyph of the standard fontsto use.<P>The hotspot comes from the information stored in the cursor font.The initial colors of a cursor are a black foreground and a whitebackground (see<B><A HREF="XRecolorCursor.html">XRecolorCursor()</A></B>).For further information about cursor shapes,see "<A HREF="../appendix/b/">X Font Cursors</A>".<P><B>XCreateFontCursor()</B>can generate<B>BadAlloc</B>and<B>BadValue</B> errors.<H2>Diagnostics</H2><TABLE><TR><TD><B>BadAlloc</B><TD> The server failed to allocate the requested source or server memory.<TR><TD><B>BadValue</B><TD> Some numeric value falls outside the range of values accepted by the request. Unless a specific range is specified for an argument, the full range defined by the argument's type is accepted. Any argument defined as a set of alternatives can generate this error.</TABLE><H2>See also</H2><B><A HREF="XCreateGlyphCursor.html">XCreateGlyphCursor()</A></B>,<B><A HREF="XCreatePixmapCursor.html">XCreatePixmapCursor()</A></B>,<B><A HREF="../window/XDefineCursor.html">XDefineCursor()</A></B>,<B><A HREF="../graphics/font-metrics/XLoadFont.html">XLoadFont()</A></B>,<B><A HREF="XRecolorCursor.html">XRecolorCursor()</A></B>,"<A HREF="cursor.html">Creating, Recoloring, and Freeing Cursors</A>".<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 + =
减小字号Ctrl + -
显示快捷键?