CTWM
Loading...
Searching...
No Matches
Macros | Functions | Variables
/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)
 
charExpandPixmapPath (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

◆ GIFNLEN

#define GIFNLEN   256

Function Documentation

◆ AllocImage()

Image * AllocImage ( void )

◆ ExpandPixmapPath()

char * ExpandPixmapPath ( const char * name)

Definition at line 208 of file image.c.

References Home, PlaceX, and Scr.

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

◆ FreeImage()

void FreeImage ( Image * image)

Definition at line 164 of file image.c.

References dpy, and PlaceX.

Referenced by EwmhHandle_NET_WM_ICONNotify(), get_image_anim_cp(), ReleaseIconImage(), and UnmaskScreen().

◆ get_image_anim_cp()

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

Definition at line 277 of file image.c.

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

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

◆ GetImage()

Image * GetImage ( const char * name,
ColorPair cp )

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().