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

📄 xquerybestsize.html

📁 linux图形界面x liberary手册
💻 HTML
字号:
<HTML><HEAD><TITLE>Xlib Programming Manual: XQueryBestSize</TITLE></HEAD><BODY><H1 ALIGN=center>XQueryBestSize</H1><H2>Syntax</H2><!.IN "XQueryBestSize" "" "@DEF@"><CODE><PRE><B><A HREF="../../introduction/errors.html#Status">Status</A></B> XQueryBestSize(<B>display</B>, <B>class</B>, <B>which_screen</B>, <B>width</B>, <B>height</B>, <B>width_return</B>, <B>height_return</B>)       <A HREF="../../display/opening.html#Display">Display</A> *<B>display</B>;      int <B>class</B>;      Drawable <B>which_screen</B>;      unsigned int <B>width</B>, <B>height</B>;      unsigned int *<B>width_return</B>, *<B>height_return</B>;</PRE></CODE><H2>Arguments</H2><TABLE><TR><TD> <B>display</B><TD> Specifies the connection to the X server.<TR><TD> <B>class</B><TD> Specifies the class that you are interested in.You can pass <B>TileShape</B>, <B>CursorShape</B>, or <B>StippleShape</B>.<TR><TD> <B>which_screen</B><TD> Specifies any drawable on the screen.<TR><TD> <B>width</B><BR>	<B>height</B><TD> Specify the width and height.<TR><TD> <B>width_return</B><BR>	<B>height_return</B><TD> Return the width and height of the object best supported by the display hardware.</TABLE><H2>Description</H2>The<B>XQueryBestSize()</B>function returns the best or closest size to the specified size.For <B>CursorShape</B>,this is the largest size that can be fully displayed on the screen specified bywhich_screen.For <B>TileShape</B>,this is the size that can be tiled fastest.For <B>StippleShape</B>,this is the size that can be stippled fastest.For <B>CursorShape</B>,the drawable indicates the desired screen.For <B>TileShape</B>and <B>StippleShape</B>,the drawable indicates the screen and possibly the window class and depth.An <B><A HREF="../../window/create.html#InputClass">InputOnly</A></B> window cannot be used as the drawable for <B>TileShape</B>or <B>StippleShape</B>,or a<B>BadMatch</B>error results.<P><B>XQueryBestSize()</B>can generate<B>BadDrawable</B>,<B>BadMatch</B>,and <B>BadValue</B> errors.<H2>Diagnostics</H2><TABLE><TR><TD><B>BadDrawable</B><TD>A value for a Drawable argument does not name a    defined Window or Pixmap.<TR><TD><B>BadMatch</B><TD>An<B><A HREF="../../window/create.html#InputClass">InputOnly</A></B>window is used as a Drawable.<TR><TD><B>BadMatch</B><TD>Some argument or pair of arguments has the correct type and range but fails    to match in some other way required by the request.      <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="../XCreateGC.html">XCreateGC()</A></B>,<B><A HREF="XQueryBestTile.html">XQueryBestTile()</A></B>,<B><A HREF="XQueryBestStipple.html">XQueryBestStipple()</A></B>,<B><A HREF="XSetArcMode.html">XSetArcMode()</A></B>,<B><A HREF="XSetClipOrigin.html">XSetClipOrigin()</A></B>,<B><A HREF="XSetFillStyle.html">XSetFillStyle()</A></B>,<B><A HREF="XSetFont.html">XSetFont()</A></B>,<B><A HREF="XSetLineAttributes.html">XSetLineAttributes()</A></B>,<B><A HREF="XSetState.html">XSetState()</A></B>,<B><A HREF="XSetTile.html">XSetTile()</A></B>,"<A HREF="fill-tile-and-stipple.html">Setting the Fill Tile and Stipple</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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -