Back to index

plt-scheme  4.2.1
Functions
Info.c File Reference
#include "xpmP.h"

Go to the source code of this file.

Functions

void xpmInitXpmInfo (XpmInfo *info)
void XpmFreeXpmInfo (XpmInfo *info)
void xpmSetInfoMask (XpmInfo *info, XpmAttributes *attributes)
void xpmSetInfo (XpmInfo *info, XpmAttributes *attributes)

Function Documentation

Definition at line 57 of file Info.c.

{
    if (info) {
       if (info->valuemask & XpmComments) {
           if (info->hints_cmt) {
              XpmFree(info->hints_cmt);
              info->hints_cmt = NULL;
           }
           if (info->colors_cmt) {
              XpmFree(info->colors_cmt);
              info->colors_cmt = NULL;
           }
           if (info->pixels_cmt) {
              XpmFree(info->pixels_cmt);
              info->pixels_cmt = NULL;
           }
       }
       if (info->valuemask & XpmReturnExtensions && info->nextensions) {
           XpmFreeExtensions(info->extensions, info->nextensions);
           info->extensions = NULL;
           info->nextensions = 0;
       }
       info->valuemask = 0;
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 41 of file Info.c.

{
    if (info) {
       info->hints_cmt = NULL;
       info->colors_cmt = NULL;
       info->pixels_cmt = NULL;
       info->extensions = NULL;
       info->nextensions = 0;
    }
}

Here is the caller graph for this function:

void xpmSetInfo ( XpmInfo info,
XpmAttributes attributes 
)

Definition at line 103 of file Info.c.

{
    info->valuemask = 0;
    if (attributes->valuemask & XpmInfos) {
       info->valuemask |= XpmComments | XpmColorTable;
       info->hints_cmt = attributes->hints_cmt;
       info->colors_cmt = attributes->colors_cmt;
       info->pixels_cmt = attributes->pixels_cmt;
    }
    if (attributes->valuemask & XpmExtensions) {
       info->valuemask |= XpmExtensions;
       info->extensions = attributes->extensions;
       info->nextensions = attributes->nextensions;
    }
    if (attributes->valuemask & XpmHotspot) {
       info->valuemask |= XpmHotspot;
       info->x_hotspot = attributes->x_hotspot;
       info->y_hotspot = attributes->y_hotspot;
    }
}

Here is the caller graph for this function:

void xpmSetInfoMask ( XpmInfo info,
XpmAttributes attributes 
)

Definition at line 88 of file Info.c.

{
    info->valuemask = 0;
    if (attributes->valuemask & XpmReturnInfos)
       info->valuemask |= XpmReturnComments;
    if (attributes->valuemask & XpmReturnExtensions)
       info->valuemask |= XpmReturnExtensions;
}

Here is the caller graph for this function: