X Visuals Dialog

The X Visuals dialog allows you to specify the preferred Visual and Colormap characteristics of your application.

If you specify a Colormap name in the first TextField of the dialog, X-Designer will declare a Colormap variable in your application code, and allocate a private Colormap using the variable in the main module of the application. The private Colormap will be applied to all dialogs in the generated design. The name which you specify should be a valid C variable name.

You can specify a preferred Visual Class and Depth for your application using the option menus in the Visuals dialog. X-Designer will generate code into your main module which will try and meet the specification. For example, if you only specify a preferred depth, X-Designer will generate code which finds the Visual with the best match. If you only specify a preferred Visual Class, X-Designer generates code to find the Visual of the given class which has the greatest depth. The variable name which X-Designer generates for this task can be configured in the second TextField. If you only specify the variable name, X-Designer will generate code to find the greatest depth of any supported Visual class. In all cases, where the requested Visual class is not found, the generated code also seeks the greatest supported depth from the supported Visual classes. The Visual structure so determined is applied to all the generated dialog shells in the design. The default variable name is "visual".

If you specify both Visual and Colormap information, the Colormap for the application is determined from the supported Visual so found.

You are referred to your X documentation for XCopyColormapAndFree(3X), XGetVisualInfo(3X), XDefaultVisual(3X), for further information. See also: