CTWM
Loading...
Searching...
No Matches
Macros | Functions | Variables
/usr/src/RPM/BUILD/ctwm-4.1.0/image_bitmap_builtin.c File Reference
#include "ctwm.h"
#include <stdio.h>
#include <stdlib.h>
#include <X11/Xmu/Drawing.h>
#include "screen.h"
#include "drawing.h"
#include "icons_builtin.h"
#include "image.h"
#include "image_bitmap_builtin.h"
Include dependency graph for image_bitmap_builtin.c:

Go to the source code of this file.

Macros

#define DEF_BI_PPM(nm)   Pixmap nm(unsigned int *widthp, unsigned int *heightp)
 
#define questionmark_width   8
 
#define questionmark_height   8
 
#define DEF_BI_SPM(nm)   Image *nm(ColorPair cp)
 
#define LEVITTE_TEST
 
#define DEF_BI_ASPM(nm)   Image *nm(ColorPair cp)
 
#define BG_WIDTH   2
 
#define BG_HEIGHT   2
 

Functions

static Pixmap CreateXLogoPixmap (unsigned int *widthp, unsigned int *heightp)
 
static Pixmap CreateResizePixmap (unsigned int *widthp, unsigned int *heightp)
 
static Pixmap CreateQuestionPixmap (unsigned int *widthp, unsigned int *heightp)
 
static Pixmap CreateMenuPixmap (unsigned int *widthp, unsigned int *heightp)
 
static Pixmap CreateDotPixmap (unsigned int *widthp, unsigned int *heightp)
 
Pixmap get_builtin_plain_pixmap (const char *name, unsigned int *widthp, unsigned int *heightp)
 
static Image * Create3DMenuImage (ColorPair cp)
 
static Image * Create3DDotImage (ColorPair cp)
 
static Image * Create3DResizeImage (ColorPair cp)
 
static Image * Create3DZoomImage (ColorPair cp)
 
static Image * Create3DBarImage (ColorPair cp)
 
static Image * Create3DVertBarImage (ColorPair cp)
 
static Image * Create3DCrossImage (ColorPair cp)
 
static Image * Create3DIconifyImage (ColorPair cp)
 
static Image * Create3DSunkenResizeImage (ColorPair cp)
 
static Image * Create3DBoxImage (ColorPair cp)
 
Image * get_builtin_scalable_pixmap (const char *name, ColorPair cp)
 
static Image * Create3DResizeAnimation (bool in, bool left, bool top, ColorPair cp)
 
static Image * Create3DMenuAnimation (bool up, ColorPair cp)
 
static Image * Create3DZoomAnimation (bool in, bool out, int n, ColorPair cp)
 
static Image * Create3DResizeInTopAnimation (ColorPair cp)
 
static Image * Create3DResizeOutTopAnimation (ColorPair cp)
 
static Image * Create3DResizeInBotAnimation (ColorPair cp)
 
static Image * Create3DResizeOutBotAnimation (ColorPair cp)
 
static Image * Create3DMenuUpAnimation (ColorPair cp)
 
static Image * Create3DMenuDownAnimation (ColorPair cp)
 
static Image * Create3DMazeOutAnimation (ColorPair cp)
 
static Image * Create3DMazeInAnimation (ColorPair cp)
 
static Image * Create3DZoomInAnimation (ColorPair cp)
 
static Image * Create3DZoomOutAnimation (ColorPair cp)
 
static Image * Create3DZoomInOutAnimation (ColorPair cp)
 
Image * get_builtin_animated_pixmap (const char *name, ColorPair cp)
 
Pixmap mk_blackgray_pixmap (const char *which, Drawable dw, unsigned long fg, unsigned long bg)
 
void get_blackgray_size (int *width, int *height)
 

Variables

static char questionmark_bits []
 

Macro Definition Documentation

◆ BG_HEIGHT

#define BG_HEIGHT   2

Definition at line 1019 of file image_bitmap_builtin.c.

Referenced by get_blackgray_size(), and mk_blackgray_pixmap().

◆ BG_WIDTH

#define BG_WIDTH   2

Definition at line 1018 of file image_bitmap_builtin.c.

Referenced by get_blackgray_size(), and mk_blackgray_pixmap().

◆ DEF_BI_ASPM

#define DEF_BI_ASPM ( nm)    Image *nm(ColorPair cp)

Definition at line 732 of file image_bitmap_builtin.c.

Referenced by get_builtin_animated_pixmap().

◆ DEF_BI_PPM

#define DEF_BI_PPM ( nm)    Pixmap nm(unsigned int *widthp, unsigned int *heightp)

Definition at line 26 of file image_bitmap_builtin.c.

Referenced by get_builtin_plain_pixmap().

◆ DEF_BI_SPM

#define DEF_BI_SPM ( nm)    Image *nm(ColorPair cp)

Definition at line 257 of file image_bitmap_builtin.c.

Referenced by get_builtin_scalable_pixmap().

◆ LEVITTE_TEST

#define LEVITTE_TEST

Definition at line 322 of file image_bitmap_builtin.c.

◆ questionmark_height

#define questionmark_height   8

Definition at line 187 of file image_bitmap_builtin.c.

Referenced by CreateQuestionPixmap().

◆ questionmark_width

#define questionmark_width   8

Definition at line 186 of file image_bitmap_builtin.c.

Referenced by CreateQuestionPixmap().

Function Documentation

◆ Create3DBarImage()

static Image * Create3DBarImage ( ColorPair cp)
static

◆ Create3DBoxImage()

static Image * Create3DBoxImage ( ColorPair cp)
static

◆ Create3DCrossImage()

static Image * Create3DCrossImage ( ColorPair cp)
static

◆ Create3DDotImage()

static Image * Create3DDotImage ( ColorPair cp)
static

◆ Create3DIconifyImage()

static Image * Create3DIconifyImage ( ColorPair cp)
static

◆ Create3DMazeInAnimation()

static Image * Create3DMazeInAnimation ( ColorPair cp)
static

Definition at line 986 of file image_bitmap_builtin.c.

References Create3DZoomAnimation().

Referenced by get_builtin_animated_pixmap().

◆ Create3DMazeOutAnimation()

static Image * Create3DMazeOutAnimation ( ColorPair cp)
static

Definition at line 991 of file image_bitmap_builtin.c.

References Create3DZoomAnimation().

Referenced by get_builtin_animated_pixmap().

◆ Create3DMenuAnimation()

static Image * Create3DMenuAnimation ( bool up,
ColorPair cp )
static

◆ Create3DMenuDownAnimation()

static Image * Create3DMenuDownAnimation ( ColorPair cp)
static

Definition at line 980 of file image_bitmap_builtin.c.

References Create3DMenuAnimation().

Referenced by get_builtin_animated_pixmap().

◆ Create3DMenuImage()

static Image * Create3DMenuImage ( ColorPair cp)
static

◆ Create3DMenuUpAnimation()

static Image * Create3DMenuUpAnimation ( ColorPair cp)
static

Definition at line 975 of file image_bitmap_builtin.c.

References Create3DMenuAnimation().

Referenced by get_builtin_animated_pixmap().

◆ Create3DResizeAnimation()

static Image * Create3DResizeAnimation ( bool in,
bool left,
bool top,
ColorPair cp )
static

◆ Create3DResizeImage()

static Image * Create3DResizeImage ( ColorPair cp)
static

◆ Create3DResizeInBotAnimation()

static Image * Create3DResizeInBotAnimation ( ColorPair cp)
static

Definition at line 964 of file image_bitmap_builtin.c.

References Create3DResizeAnimation().

Referenced by get_builtin_animated_pixmap().

◆ Create3DResizeInTopAnimation()

static Image * Create3DResizeInTopAnimation ( ColorPair cp)
static

Definition at line 954 of file image_bitmap_builtin.c.

References Create3DResizeAnimation().

Referenced by get_builtin_animated_pixmap().

◆ Create3DResizeOutBotAnimation()

static Image * Create3DResizeOutBotAnimation ( ColorPair cp)
static

Definition at line 969 of file image_bitmap_builtin.c.

References Create3DResizeAnimation().

Referenced by get_builtin_animated_pixmap().

◆ Create3DResizeOutTopAnimation()

static Image * Create3DResizeOutTopAnimation ( ColorPair cp)
static

Definition at line 959 of file image_bitmap_builtin.c.

References Create3DResizeAnimation().

Referenced by get_builtin_animated_pixmap().

◆ Create3DSunkenResizeImage()

static Image * Create3DSunkenResizeImage ( ColorPair cp)
static

◆ Create3DVertBarImage()

static Image * Create3DVertBarImage ( ColorPair cp)
static

◆ Create3DZoomAnimation()

static Image * Create3DZoomAnimation ( bool in,
bool out,
int n,
ColorPair cp )
static

◆ Create3DZoomImage()

static Image * Create3DZoomImage ( ColorPair cp)
static

◆ Create3DZoomInAnimation()

static Image * Create3DZoomInAnimation ( ColorPair cp)
static

Definition at line 996 of file image_bitmap_builtin.c.

References Create3DZoomAnimation().

Referenced by get_builtin_animated_pixmap().

◆ Create3DZoomInOutAnimation()

static Image * Create3DZoomInOutAnimation ( ColorPair cp)
static

Definition at line 1006 of file image_bitmap_builtin.c.

References Create3DZoomAnimation().

Referenced by get_builtin_animated_pixmap().

◆ Create3DZoomOutAnimation()

static Image * Create3DZoomOutAnimation ( ColorPair cp)
static

Definition at line 1001 of file image_bitmap_builtin.c.

References Create3DZoomAnimation().

Referenced by get_builtin_animated_pixmap().

◆ CreateDotPixmap()

Pixmap CreateDotPixmap ( unsigned int * widthp,
unsigned int * heightp )
static

Definition at line 217 of file image_bitmap_builtin.c.

References dpy, PlaceX, and Scr.

Referenced by get_builtin_plain_pixmap().

◆ CreateMenuPixmap()

Pixmap CreateMenuPixmap ( unsigned int * widthp,
unsigned int * heightp )
static

Definition at line 211 of file image_bitmap_builtin.c.

References CreateMenuIcon(), PlaceX, and Scr.

Referenced by get_builtin_plain_pixmap().

◆ CreateQuestionPixmap()

Pixmap CreateQuestionPixmap ( unsigned int * widthp,
unsigned int * heightp )
static

◆ CreateResizePixmap()

Pixmap CreateResizePixmap ( unsigned int * widthp,
unsigned int * heightp )
static

Definition at line 129 of file image_bitmap_builtin.c.

References dpy, PlaceX, and Scr.

Referenced by get_builtin_plain_pixmap().

◆ CreateXLogoPixmap()

Pixmap CreateXLogoPixmap ( unsigned int * widthp,
unsigned int * heightp )
static

Definition at line 93 of file image_bitmap_builtin.c.

References dpy, PlaceX, and Scr.

Referenced by get_builtin_plain_pixmap().

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

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

◆ get_builtin_plain_pixmap()

Pixmap get_builtin_plain_pixmap ( const char * name,
unsigned int * widthp,
unsigned int * heightp )

◆ get_builtin_scalable_pixmap()

Image * get_builtin_scalable_pixmap ( 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

◆ questionmark_bits

char questionmark_bits[]
static
Initial value:
= {
0x38, 0x7c, 0x64, 0x30, 0x18, 0x00, 0x18, 0x18
}

Definition at line 188 of file image_bitmap_builtin.c.

Referenced by CreateQuestionPixmap().