1MrmFetchColorLiteral(library call)          MrmFetchColorLiteral(library call)
2
3
4

NAME

6       MrmFetchColorLiteral — Fetches a named color literal from a UID file
7

SYNOPSIS

9       #include <Mrm/MrmPublic.h>
10       Cardinal MrmFetchColorLiteral(
11       MrmHierarchy hierarchy_id,
12       String index,
13       Display *display,
14       Colormap colormap_id,
15       Pixel *pixel);
16

DESCRIPTION

18       The  MrmFetchColorLiteral function fetches a named color literal from a
19       UID file, and converts the color literal to a pixel color value.
20
21       hierarchy_id
22                 Specifies the ID of the UID hierarchy that contains the spec‐
23                 ified  literal.   The value of hierarchy_id was returned in a
24                 previous call to MrmOpenHierarchyPerDisplay.
25
26       index     Specifies the UIL name of the color literal  to  fetch.   You
27                 must define this name in UIL as an exported value.
28
29       display   Specifies the display used for the pixmap.  The display argu‐
30                 ment specifies the connection to  the  X  server.   For  more
31                 information  on  the Display structure, see the Xlib function
32                 XOpenDisplay.
33
34       colormap_id
35                 Specifies the ID of the color map.  If colormap_id  is  NULL,
36                 the default color map is used.
37
38       pixel     Returns the ID of the color literal.
39

RETURN

41       This function returns one of the following status return constants:
42
43       MrmSUCCESS
44                 The function executed successfully.
45
46       MrmBAD_HIERARCHY
47                 The hierarchy ID was invalid.
48
49       MrmNOT_FOUND
50                 The color literal was not found in the UIL file.
51
52       MrmWRONG_TYPE
53                 The  caller  tried to fetch a literal of a type not supported
54                 by this function.
55
56       MrmFAILURE
57                 The function failed.
58
60       MrmFetchBitmapLiteral(3), MrmOpenHierarchyPerDisplay(3),  MrmFetchIcon‐
61       Literal(3), MrmFetchLiteral(3), and XOpenDisplay(3).
62
63
64
65                                            MrmFetchColorLiteral(library call)
Impressum