Lines Matching refs:info
44 xpmInitXpmInfo(XpmInfo *info)
46 if (info) {
47 info->hints_cmt = NULL;
48 info->colors_cmt = NULL;
49 info->pixels_cmt = NULL;
50 info->extensions = NULL;
51 info->nextensions = 0;
59 XpmFreeXpmInfo(XpmInfo *info)
61 if (info) {
62 if (info->valuemask & XpmComments) {
63 if (info->hints_cmt) {
64 XpmFree(info->hints_cmt);
65 info->hints_cmt = NULL;
67 if (info->colors_cmt) {
68 XpmFree(info->colors_cmt);
69 info->colors_cmt = NULL;
71 if (info->pixels_cmt) {
72 XpmFree(info->pixels_cmt);
73 info->pixels_cmt = NULL;
76 if (info->valuemask & XpmReturnExtensions && info->nextensions) {
77 XpmFreeExtensions(info->extensions, info->nextensions);
78 info->extensions = NULL;
79 info->nextensions = 0;
81 info->valuemask = 0;
86 * Set the XpmInfo valuemask to retrieve required info
90 XpmInfo *info,
93 info->valuemask = 0;
95 info->valuemask |= XpmReturnComments;
97 info->valuemask |= XpmReturnExtensions;
105 XpmInfo *info,
108 info->valuemask = 0;
110 info->valuemask |= XpmComments | XpmColorTable;
111 info->hints_cmt = attributes->hints_cmt;
112 info->colors_cmt = attributes->colors_cmt;
113 info->pixels_cmt = attributes->pixels_cmt;
116 info->valuemask |= XpmExtensions;
117 info->extensions = attributes->extensions;
118 info->nextensions = attributes->nextensions;
121 info->valuemask |= XpmHotspot;
122 info->x_hotspot = attributes->x_hotspot;
123 info->y_hotspot = attributes->y_hotspot;