CTWM
Loading...
Searching...
No Matches
/usr/src/RPM/BUILD/ctwm-4.1.0/image.c File Reference
#include "ctwm.h"
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include "list.h"
#include "screen.h"
#include "image.h"
#include "image_bitmap.h"
#include "image_bitmap_builtin.h"
#include "image_xwd.h"
Include dependency graph for image.c:

Go to the source code of this file.

Macros

#define GIFNLEN   256
#define ANIM_PATHLEN   256

Functions

ImageGetImage (const char *name, ColorPair cp)
ImageAllocImage (void)
void FreeImage (Image *image)
char * ExpandPixmapPath (const char *name)
Imageget_image_anim_cp (const char *name, ColorPair cp, Image *(*imgloader)(const char *, ColorPair))

Variables

bool reportfilenotfound = false
Colormap AlternateCmap = None

Macro Definition Documentation

◆ ANIM_PATHLEN

#define ANIM_PATHLEN   256

Referenced by get_image_anim_cp().

◆ GIFNLEN

#define GIFNLEN   256

Referenced by GetImage().

Function Documentation

◆ AllocImage()

◆ ExpandPixmapPath()

char * ExpandPixmapPath ( const char * name)

Definition at line 208 of file image.c.

References Home, and Scr.

Referenced by LoadJpegImage(), LoadXpmImage(), and LoadXwdImage().

◆ FreeImage()

void FreeImage ( Image * image)

◆ get_image_anim_cp()

Image * get_image_anim_cp ( const char * name,
ColorPair cp,
Image *(* imgloader )(const char *, ColorPair) )

Definition at line 277 of file image.c.

References ANIM_PATHLEN, FreeImage(), and Image::next.

Referenced by GetBitmapImage(), GetJpegImage(), GetXpmImage(), and GetXwdImage().

◆ GetImage()

Variable Documentation

◆ AlternateCmap

Colormap AlternateCmap = None

Definition at line 30 of file image.c.

Referenced by LoadXpmImage(), LoadXwdImage(), and MaskScreen().

◆ reportfilenotfound

bool reportfilenotfound = false

Definition at line 29 of file image.c.

Referenced by FindBitmap(), LoadJpegImage(), LoadXwdImage(), and xpmErrorMessage().