Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XQBSize(3X) — AOS 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XCreateGC(3X)

XSetArcMode(3X)

XSetClipOrigin(3X)

XSetFillStyle(3X)

XSetFont(3X)

XSetLineAttributes(3X)

XSetState(3X)

XSetTile(3X)

XQueryBestSize(3X)  —  X Version 11

NAME

XQueryBestSize, XQueryBestTile, XQueryBestStipple − determine efficient sizes

SYNTAX

Status XQueryBestSize(display, class, which_screen, width, height, width_return, height_return)
      Display ∗display;
      int class;
      Drawable which_screen;
      unsigned int width, height;
      unsigned int ∗width_return, ∗height_return;

Status XQueryBestTile(display, which_screen, width, height, width_return, height_return)
      Display ∗display;
      Drawable which_screen;
      unsigned int width, height;
      unsigned int ∗width_return, ∗height_return;

Status XQueryBestStipple(display, which_screen, width, height, width_return, height_return)
      Display ∗display;
      Drawable which_screen;
      unsigned int width, height;
      unsigned int ∗width_return, ∗height_return;

ARGUMENTS

classSpecifies the class that you are interested in.  You can pass one of these constants: TileShape, CursorShape, or StippleShape.

displaySpecifies the connection to the X server. 

width

heightSpecify the width and height. 

which_screenSpecifies any drawable on a screen. 

width_return

height_return
Returns 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. .PN 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. .PN 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. .PN 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(3X), XSetArcMode(3X), XSetClipOrigin(3X), XSetFillStyle(3X), XSetFont(3X), XSetLineAttributes(3X), XSetState(3X), XSetTile(3X)
Xlib − C Language X Interface

1 March 1988

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026