CTWM
Loading...
Searching...
No Matches
Data Structures | Macros | Functions | Variables
/usr/src/RPM/BUILD/ctwm-4.1.0/image.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Image
 

Macros

#define TBPM_DOT   ":dot" /* name of titlebar pixmap for dot */
 
#define TBPM_ICONIFY   ":iconify" /* same image as dot */
 
#define TBPM_RESIZE   ":resize" /* name of titlebar pixmap for resize button */
 
#define TBPM_XLOGO   ":xlogo" /* name of titlebar pixmap for xlogo */
 
#define TBPM_DELETE   ":delete" /* same image as xlogo */
 
#define TBPM_MENU   ":menu" /* name of titlebar pixmap for menus */
 
#define TBPM_QUESTION   ":question" /* name of unknown titlebar pixmap */
 
#define TBPM_3DCROSS   ":xpm:cross"
 
#define TBPM_3DICONIFY   ":xpm:iconify"
 
#define TBPM_3DSUNKEN_RESIZE   ":xpm:sunkresize"
 
#define TBPM_3DBOX   ":xpm:box"
 
#define TBPM_3DDOT   ":xpm:dot" /* name of titlebar pixmap for dot */
 
#define TBPM_3DRESIZE   ":xpm:resize" /* name of titlebar pixmap for resize button */
 
#define TBPM_3DMENU   ":xpm:menu" /* name of titlebar pixmap for menus */
 
#define TBPM_3DZOOM   ":xpm:zoom"
 
#define TBPM_3DBAR   ":xpm:bar"
 
#define TBPM_3DVBAR   ":xpm:vbar"
 

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))
 
Pixmap mk_blackgray_pixmap (const char *which, Drawable dw, unsigned long fg, unsigned long bg)
 
void get_blackgray_size (int *width, int *height)
 

Variables

bool reportfilenotfound
 
Colormap AlternateCmap
 

Macro Definition Documentation

◆ TBPM_3DBAR

#define TBPM_3DBAR   ":xpm:bar"

Definition at line 54 of file image.h.

Referenced by get_builtin_scalable_pixmap().

◆ TBPM_3DBOX

#define TBPM_3DBOX   ":xpm:box"

Definition at line 48 of file image.h.

Referenced by get_builtin_scalable_pixmap().

◆ TBPM_3DCROSS

#define TBPM_3DCROSS   ":xpm:cross"

Definition at line 45 of file image.h.

Referenced by get_builtin_scalable_pixmap().

◆ TBPM_3DDOT

#define TBPM_3DDOT   ":xpm:dot" /* name of titlebar pixmap for dot */

Definition at line 50 of file image.h.

Referenced by get_builtin_scalable_pixmap().

◆ TBPM_3DICONIFY

#define TBPM_3DICONIFY   ":xpm:iconify"

Definition at line 46 of file image.h.

Referenced by get_builtin_scalable_pixmap().

◆ TBPM_3DMENU

#define TBPM_3DMENU   ":xpm:menu" /* name of titlebar pixmap for menus */

Definition at line 52 of file image.h.

Referenced by get_builtin_scalable_pixmap().

◆ TBPM_3DRESIZE

#define TBPM_3DRESIZE   ":xpm:resize" /* name of titlebar pixmap for resize button */

Definition at line 51 of file image.h.

Referenced by get_builtin_scalable_pixmap().

◆ TBPM_3DSUNKEN_RESIZE

#define TBPM_3DSUNKEN_RESIZE   ":xpm:sunkresize"

Definition at line 47 of file image.h.

Referenced by get_builtin_scalable_pixmap().

◆ TBPM_3DVBAR

#define TBPM_3DVBAR   ":xpm:vbar"

Definition at line 55 of file image.h.

Referenced by get_builtin_scalable_pixmap().

◆ TBPM_3DZOOM

#define TBPM_3DZOOM   ":xpm:zoom"

Definition at line 53 of file image.h.

Referenced by get_builtin_scalable_pixmap().

◆ TBPM_DELETE

#define TBPM_DELETE   ":delete" /* same image as xlogo */

Definition at line 41 of file image.h.

Referenced by get_builtin_plain_pixmap().

◆ TBPM_DOT

#define TBPM_DOT   ":dot" /* name of titlebar pixmap for dot */

Definition at line 37 of file image.h.

Referenced by get_builtin_plain_pixmap().

◆ TBPM_ICONIFY

#define TBPM_ICONIFY   ":iconify" /* same image as dot */

Definition at line 38 of file image.h.

Referenced by get_builtin_plain_pixmap().

◆ TBPM_MENU

#define TBPM_MENU   ":menu" /* name of titlebar pixmap for menus */

Definition at line 42 of file image.h.

Referenced by get_builtin_plain_pixmap().

◆ TBPM_QUESTION

#define TBPM_QUESTION   ":question" /* name of unknown titlebar pixmap */

◆ TBPM_RESIZE

#define TBPM_RESIZE   ":resize" /* name of titlebar pixmap for resize button */

Definition at line 39 of file image.h.

Referenced by get_builtin_plain_pixmap().

◆ TBPM_XLOGO

#define TBPM_XLOGO   ":xlogo" /* name of titlebar pixmap for xlogo */

Definition at line 40 of file image.h.

Referenced by get_builtin_plain_pixmap().

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

void get_blackgray_size ( int * width,
int * height )

Definition at line 1048 of file image_bitmap_builtin.c.

References BG_HEIGHT, and BG_WIDTH.

Referenced by CreateHighlightWindows().

◆ 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 )

◆ mk_blackgray_pixmap()

Pixmap mk_blackgray_pixmap ( const char * which,
Drawable dw,
unsigned long fg,
unsigned long bg )

Definition at line 1022 of file image_bitmap_builtin.c.

References BG_HEIGHT, BG_WIDTH, dpy, PlaceX, and Scr.

Referenced by AddWindow(), and CreateHighlightWindows().

Variable Documentation

◆ AlternateCmap

Colormap AlternateCmap
extern

Definition at line 30 of file image.c.

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

◆ reportfilenotfound

bool reportfilenotfound
extern

Definition at line 29 of file image.c.

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