Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xtsetwmcolormapwindows(3) [hpux man page]

XtSetWMColormapWindows()												  XtSetWMColormapWindows()

Name
  XtSetWMColormapWindows - set WM_COLORMAP_WINDOWS property to inform window manager of custom colormaps.

Synopsis
  void XtSetWMColormapWindows(widget, list, count)
	   Widget widget;
	   Widget* list;
	   Cardinal count;

Inputs
  widget    Specifies  the  widget  on	whose  window the WM_COLORMAP_WINDOWS property will be stored.	Must be of class Core or any subclass
	    thereof.

  list	    Specifies a list of widgets whose windows are to be listed in the WM_COLORMAP_WINDOWS property.

  count     Specifies the number of widgets in list.

Availability
  Release 4 and later.

Description
  XtSetWMColormapWindows() returns immediately if widget is not realized or if count is 0.  Otherwise, XtSetWMColormapWindows() constructs an
  ordered list of windows by examining each widget in the list in turn and:

  o  Ignoring the widget if it is not realized or

  o  Adding the widget's window to the window list if the widget is realized and if its colormap resource differs from the colormap resources
     of all widgets whose windows are already on the window list.

  Finally, XtSetWMColormapWindows() stores the resulting window list in the WM_COLORMAP_WINDOWS property on the  specified  widget's  window.
  This tells the window manager which windows have a custom colormap, so that the window manager can install these colormaps at the appropri-
  ate time.

  See section 4.1.8 of the Inter-Client Communications Conventions Manual for details on the meaning of the WM_COLORMAP_WINDOWS property.

Usage
  Only applications that make sophisticated use of color and use multiple colormaps will ever need to call this function.

Xt - Properties 													  XtSetWMColormapWindows()

Check Out this Related Man Page

XSetWMColormapWindows(3X11)					     MIT X11R4					       XSetWMColormapWindows(3X11)

Name
       XSetWMColormapWindows, XGetWMColormapWindows - set or read a window's WM_COLORMAP_WINDOWS property

Syntax
       Status XSetWMColormapWindows(display, w, colormap_windows, count)
	  Display *display;
	  Window w;
	  Window *colormap_windows;
	  int count;

       Status XGetWMColormapWindows(display, w, colormap_windows_return, count_return)
	  Display *display;
	  Window w;
	  Window **colormap_windows_return;
	  int *count_return;

Arguments
       display	 Specifies the connection to the X server.

       colormap_windows
		 Specifies the list of windows.

       colormap_windows_return
		 Returns the list of windows.

       count	 Specifies the number of windows in the list.

       count_return
		 Returns the number of windows in the list.

       w	 Specifies the window.

Description
       The function replaces the WM_COLORMAP_WINDOWS property on the specified window with the list of windows specified by the colormap_windows
       argument.  It the property does not already exist, sets the WM_COLORMAP_WINDOWS property on the specified window to the list of windows
       specified by the colormap_windows argument.  The property is stored with a type of WINDOW and a format of 32.  If it cannot intern the
       WM_COLORMAP_WINDOWS atom, returns a zero status.  Otherwise, it returns a non-zero status.

       can generate and errors.

       The function returns the list of window identifiers stored in the WM_COLORMAP_WINDOWS property on the specified window.	These identifiers
       indicate the colormaps that the window manager may need to install for this window.  If the property exists, is of type WINDOW, is of for-
       mat 32, and the atom WM_COLORMAP_WINDOWS can be interned, sets the windows_return argument to a list of window identifiers, sets the
       count_return argument to the number of elements in list, and returns a non-zero status.	Otherwise, it sets neither of the return arguments
       and returns a zero status.  To release the list of window identifiers, use

       can generate a error.

Properties
       WM_COLORMAP_WINDOWS
		 List of window IDs that may need a different colormap than that of their top-level window.

Diagnostics
       The server failed to allocate the requested resource or server memory.

       A value for a Window argument does not name a defined Window.

See Also
       XAllocClassHint(3X11), XAllocIconSize(3X11), XAllocSizeHints(3X11), XAllocWMHints(3X11), XFree(3X11), XSetCommand(3X11), XSetTransient-
       ForHint(3X11), XSetTextProperty(3X11), XSetWMClientMachine(3X11), XSetWMIconName(3X11), XSetWMName(3X11), XSetWMProperties(3X11), XSetWM-
       Protocols(3X11), XStringListToTextProperty(3X11)
       X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys

														       XSetWMColormapWindows(3X11)
Man Page