Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xdefault(3) [hpux man page]

XDefault()																XDefault()

Name
  XDefaultColormap,  XDefaultColormapOfScreen, XDefaultDepth, XDefaultDepthOfScreen, XDefaultGC, XDefaultGCOfScreen, XDefaultRootWindow, XDe-
  faultScreen,	XDefaultScreenOfDisplay,  XDefaultVisual,  XDefaultVisualOfScreen,  DefaultColormap,  DefaultColormapOfScreen,	DefaultDepth,
  DefaultDepthOfScreen,  DefaultGC,  DefaultGCOfScreen, DefaultRootWindow, DefaultScreen, DefaultScreenOfDisplay, DefaultVisual, DefaultVisu-
  alOfScreen - get information on server defaults.

Synopsis
  Colormap XDefaultColormap(display, screen_number)
	   Display *display;
	   int screen_number;
  Colormap XDefaultColormapOfScreen(screen)
	   Screen *screen;
  int XDefaultDepth(display, screen_number)
	   Display *display;
	   int screen_number;
  int XDefaultDepthOfScreen(screen)
	   Screen *screen;
  GC XDefaultGC(display, screen_number)
	   Display *display;
	   int screen_number;
  GC XDefaultGCOfScreen(screen)
	   Screen *screen;
  Window XDefaultRootWindow(display)
	   Display *display;
  int XDefaultScreen(display)
	   Display *display;
  Screen *XDefaultScreenOfDisplay(display)
	   Display *display;
  Visual *XDefaultVisual(display, screen_number)
	   Display *display;
	   int screen_number;
  Visual *XDefaultVisualOfScreen(screen)
	   Screen *screen;

Arguments
  display   Specifies a connection to an X server; returned from XOpenDisplay().

  screen_number
	    Specifies the appropriate screen number on the host server.

  screen    Specifies the appropriate Screen structure.

Description
  This page describes several pairs of functions such as such as XDefaultColormap() and XDefaultColormapOfScreen().  The only  difference  is
  the arguments: one takes a Display pointer and integer screen number, while the other takes a Screen pointer.

  XDefaultScreen()  returns  the default screen number referenced by the XOpenDisplay() function.  XDefaultScreenOfDisplay() return a pointer
  to the Screen structure of the default screen.

  XDefaultColormap() and XDefaultColormapOfScreen() return the default colormap ID on the specified  screen.   Most  routine  allocations  of
  color should be made out of this colormap.

  XDefaultDepth()  and	XDefaultDepthOfScreen() return the depth (number of planes) of the root window of the specified screen.  Other depths
  may also be supported on this screen (see XMatchVisualInfo()).

  XDefaultGC() and XDefaultGCOfScreen() return the default graphics context of the specified screen, which has the same  depth	as  the  root
  window of the screen.  The GC must never be freed.

  XDefaultRootWindow() returns the root window of the default screen.

  XDefaultVisual() and XDefaultVisualOfScreen() return the default visual of the specified screen.

  The  C  language  macros  DefaultColormap(),	DefaultColormapOfScreen(),  DefaultDepth(), DefaultDepthOfScreen(), DefaultGC(), DefaultGCOf-
  Screen(), DefaultRootWindow(), DefaultScreen(), DefaultScreenOfDisplay(), DefaultVisual(), and DefaultVisualOfScreen() are  equivalent  and
  slightly more efficient.

See Also
  XOpenDisplay().

Xlib - Macro Equivalents														XDefault()

Check Out this Related Man Page

AllPlanes(3X11) 						     MIT X11R4							   AllPlanes(3X11)

Name
       AllPlanes, BlackPixel, WhitePixel, ConnectionNumber, DefaultColormap, DefaultDepth, XListDepths, DefaultGC, DefaultRootWindow, Default-
       ScreenOfDisplay, DefaultScreen, DefaultVisual, DisplayCells, DisplayPlanes, DisplayString, LastKnownRequestProcessed, NextRequest, Proto-
       colVersion, ProtocolRevision, QLength, RootWindow, ScreenCount, ScreenOfDisplay, ServerVendor, VendorRelease - Display macros

Syntax
       AllPlanes

       BlackPixel(display, screen_number)

       WhitePixel(display, screen_number)

       ConnectionNumber(display)

       DefaultColormap(display, screen_number)

       DefaultDepth(display, screen_number)

       int *XListDepths(display, screen_number, count_return)
	  Display *display;
	  int screen_number;
	  int *count_return;

       DefaultGC(display, screen_number)

       DefaultRootWindow(display)

       DefaultScreenOfDisplay(display)

       DefaultScreen(display)

       DefaultVisual(display, screen_number)

       DisplayCells(display, screen_number)

       DisplayPlanes(display, screen_number)

       DisplayString(display)

       LastKnownRequestProcessed(display)

       NextRequest(display)

       ProtocolVersion(display)

       ProtocolRevision(display)

       QLength(display)

       RootWindow(display, screen_number)

       ScreenCount(display)

       ScreenOfDisplay(display, screen_number)

       ServerVendor(display)

       VendorRelease(display)

Arguments
       display	 Specifies the connection to the X server.

       screen_number
		 Specifies the appropriate screen number on the host server.

       count_return
		 Returns the number of depths.

Description
       The macro returns a value with all bits set to 1 suitable for use in a plane argument to a procedure.

       The macro returns the black pixel value for the specified screen.

       The macro returns the white pixel value for the specified screen.

       The macro returns a connection number for the specified display.

       The macro returns the default colormap ID for allocation on the specified screen.

       The macro returns the depth (number of planes) of the default root window for the specified screen.

       The function returns the array of depths that are available on the specified screen.  If the specified screen_number is valid and suffi-
       cient memory for the array can be allocated, sets count_return to the number of available depths.  Otherwise, it does not set count_return
       and returns NULL.  To release the memory allocated for the array of depths, use

       The macro returns the default GC for the root window of the specified screen.

       The macro returns the root window for the default screen.

       The macro returns the default screen of the specified display.

       The macro returns the default screen number referenced in the routine.

       The macro returns the default visual type for the specified screen.

       The macro returns the number of entries in the default colormap.

       The macro returns the depth of the root window of the specified screen.

       The macro returns the string that was passed to when the current display was opened.

       The macro extracts the full serial number of the last request known by Xlib to have been processed by the X server.

       The macro extracts the full serial number that is to be used for the next request.

       The macro returns the major version number(11) of the X protocol associated with the connected display.

       The macro returns the minor protocol revision number of the X server.

       The macro returns the length of the event queue for the connected display.

       The macro returns the root window.

       The macro returns the number of available screens.

       The macro returns a pointer to the screen of the specified display.

       The macro returns a pointer to a null-terminated string that provides some identification of the owner of the X server implementation.

       The macro returns a number related to a vendor's release of the X server.

See Also
       BlackPixelOfScreen(3X11), ImageByteOrder(3X11), IsCursorKey(3X11), XOpenDisplay(3X11)
       X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys

																   AllPlanes(3X11)
Man Page