1XQueryBestSize(3) XLIB FUNCTIONS XQueryBestSize(3)
2
3
4
6 XQueryBestSize, XQueryBestTile, XQueryBestStipple - determine efficient
7 sizes
8
10 Status XQueryBestSize(Display *display, int class, Drawable
11 which_screen, unsigned int width, unsigned int height, unsigned
12 int *width_return, unsigned int *height_return);
13
14 Status XQueryBestTile(Display *display, Drawable which_screen, unsigned
15 int width, unsigned int height, unsigned int *width_return,
16 unsigned int *height_return);
17
18 Status XQueryBestStipple(Display *display, Drawable which_screen,
19 unsigned int width, unsigned int height, unsigned int
20 *width_return, unsigned int *height_return);
21
23 class Specifies the class that you are interested in. You can pass
24 TileShape, CursorShape, or StippleShape.
25
26 display Specifies the connection to the X server.
27
28 width
29 height Specify the width and height.
30
31 which_screen
32 Specifies any drawable on the screen.
33
34 width_return
35 height_return
36 Return the width and height of the object best supported by
37 the display hardware.
38
40 The XQueryBestSize function returns the best or closest size to the
41 specified size. For CursorShape, this is the largest size that can be
42 fully displayed on the screen specified by which_screen. For Tile‐
43 Shape, this is the size that can be tiled fastest. For StippleShape,
44 this is the size that can be stippled fastest. For CursorShape, the
45 drawable indicates the desired screen. For TileShape and StippleShape,
46 the drawable indicates the screen and possibly the window class and
47 depth. An InputOnly window cannot be used as the drawable for Tile‐
48 Shape or StippleShape, or a BadMatch error results.
49
50 XQueryBestSize can generate BadDrawable, BadMatch, and BadValue errors.
51
52 The XQueryBestTile function returns the best or closest size, that is,
53 the size that can be tiled fastest on the screen specified by
54 which_screen. The drawable indicates the screen and possibly the win‐
55 dow class and depth. If an InputOnly window is used as the drawable, a
56 BadMatch error results.
57
58 XQueryBestTile can generate BadDrawable and BadMatch errors.
59
60 The XQueryBestStipple function returns the best or closest size, that
61 is, the size that can be stippled fastest on the screen specified by
62 which_screen. The drawable indicates the screen and possibly the win‐
63 dow class and depth. If an InputOnly window is used as the drawable, a
64 BadMatch error results.
65
66 XQueryBestStipple can generate BadDrawable and BadMatch errors.
67
69 BadMatch An InputOnly window is used as a Drawable.
70
71 BadDrawable
72 A value for a Drawable argument does not name a defined Win‐
73 dow or Pixmap.
74
75 BadMatch The values do not exist for an InputOnly window.
76
77 BadValue Some numeric value falls outside the range of values accepted
78 by the request. Unless a specific range is specified for an
79 argument, the full range defined by the argument's type is
80 accepted. Any argument defined as a set of alternatives can
81 generate this error.
82
84 XCreateGC(3), XSetArcMode(3), XSetClipOrigin(3), XSetFillStyle(3),
85 XSetFont(3), XSetLineAttributes(3), XSetState(3), XSetTile(3)
86 Xlib - C Language X Interface
87
88
89
90X Version 11 libX11 1.6.4 XQueryBestSize(3)