XQueryBestSize
NAMESYNTAX
ARGUMENTS
DESCRIPTION
DIAGNOSTICS
SEE ALSO
NAME
XQueryBestSize, XQueryBestTile, XQueryBestStipple − determine efficient sizes
SYNTAX
Status XQueryBestSize(Display *display, int class, Drawable which_screen, unsigned int width, unsigned int height, unsigned int *width_return, unsigned int *height_return); | |
Status XQueryBestTile(Display *display, Drawable which_screen, unsigned int width, unsigned int height, unsigned int *width_return, unsigned int *height_return); | |
Status XQueryBestStipple(Display *display, Drawable which_screen, unsigned int width, unsigned int height, unsigned int *width_return, unsigned int *height_return); |
ARGUMENTS
class |
Specifies the class that you are interested in. You can pass TileShape, CursorShape, or StippleShape. | ||
display |
Specifies the connection to the X server. | ||
width |
|||
height |
Specify the width and height. |
which_screen
Specifies any drawable on the screen.
width_return
height_return
Return the width and height of the object best supported by the display hardware.
DESCRIPTION
The XQueryBestSize function returns the best or closest size to the specified size. For CursorShape, this is the largest size that can be fully displayed on the screen specified by which_screen. For TileShape, this is the size that can be tiled fastest. For StippleShape, this is the size that can be stippled fastest. For CursorShape, the drawable indicates the desired screen. For TileShape and StippleShape, the drawable indicates the screen and possibly the window class and depth. An InputOnly window cannot be used as the drawable for TileShape or StippleShape, or a BadMatch error results.
XQueryBestSize can generate BadDrawable, BadMatch, and BadValue errors.
The XQueryBestTile function returns the best or closest size, that is, the size that can be tiled fastest on the screen specified by which_screen. The drawable indicates the screen and possibly the window class and depth. If an InputOnly window is used as the drawable, a BadMatch error results.
XQueryBestTile can generate BadDrawable and BadMatch errors.
The XQueryBestStipple function returns the best or closest size, that is, the size that can be stippled fastest on the screen specified by which_screen. The drawable indicates the screen and possibly the window class and depth. If an InputOnly window is used as the drawable, a BadMatch error results.
XQueryBestStipple can generate BadDrawable and BadMatch errors.
DIAGNOSTICS
BadMatch |
An InputOnly window is used as a Drawable. |
BadDrawable
A value for a Drawable argument does not name a defined Window or Pixmap.
BadMatch |
The values do not exist for an InputOnly window. | ||
BadValue |
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. |
SEE ALSO
XCreateGC(3),
XSetArcMode(3), XSetClipOrigin(3), XSetFillStyle(3),
XSetFont(3), XSetLineAttributes(3), XSetState(3),
XSetTile(3)
Xlib − C Language X Interface
More Linux Commands
manpages/Tcl_UtfBackslash.3.html
Tcl_UtfBackslash(3) - routines for manipulating UTF-8 string
These routines convert between UTF-8 strings and Tcl_UniChars. A Tcl_UniChar is a Unicode character represented as an unsigned, fixed-size quantity. A UTF-8 cha
manpages/free_hugepages.2.html
free_hugepages(2) - allocate or free huge pages (Man Page)
The system calls alloc_hugepages() and free_hugepages() were introduced in Linux 2.5.36 and removed again in 2.5.54. They existed only on i386 and ia64 (when bu
manpages/mount.ntfs-3g.8.html
mount.ntfs-3g(8) - Third Generation Read/Write NTFS Driver
ntfs-3g is an NTFS driver, which can create, remove, rename, move files, directories, hard links, and streams; it can read and write files, including streams, s
manpages/ldap_sort_strcasecmp.3.html
ldap_sort_strcasecmp(3) - LDAP sorting routines (deprecated)
The ldap_sort_entries(), ldap_sort_values(), and ldap_sort_strcasecmp() are deprecated. Deprecated interfaces generally remain in the library. The macro LDAP_DE
manpages/defer.8.html
defer(8) - Postfix delivery status reports - Linux man page
The bounce(8) daemon maintains per-message log files with delivery status information. Each log file is named after the queue file that it corresponds to, and i
manpages/pia.1.html
pia(1) play media files (Commands - Linux manual page)......
pia is a small X11 tool which plays movie files. OPTIONS pia understands the usual toolkit options (-geometry + friends). Additional options are: -h display hel
manpages/cfgetispeed.3.html
cfgetispeed(3) - get and set terminal attributes, line contr
The termios functions describe a general terminal interface that is provided to control asynchronous communications ports. The termios structure Many of the fun
manpages/famd.8.html
famd(8) - The File Alteration Monitor (FAM) daemon (ManPage)
FAM, the File Alteration Monitor, is a subsystem that applications can use to be notified when specific files or directories are changed. It is intended as a re
manpages/fchmod.2.html
fchmod(2) - change permissions of a file - Linux man page...
The chmod() and fchmod() system calls change the permissions of a file. They differ only in how the file is specified: * chmod() changes the permissions of the
manpages/gnutls_auth_client_get_type.3.html
gnutls_auth_client_get_type(3) - API function (Man Page)....
Returns the type of credentials that were used for client authentication. The returned information is to be used to distinguish the function used to access auth
manpages/Tk_MoveWindow.3.html
Tk_MoveWindow(3) - change window configuration or attributes
These procedures are analogous to the X library procedures with similar names, such as XConfigureWindow. Each one of the above procedures calls the correspondin
manpages/gnutls_openpgp_crt_init.3.html
gnutls_openpgp_crt_init(3) - API function - Linux man page
gnutls_openpgp_crt_init.3 - This function will initialize an OpenPGP key structure. RETURNS GNUTLS_E_SUCCESS on success, or an error code. REPORTING BUGS Report
