CTWM
Loading...
Searching...
No Matches
/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)
#define questionmark_width   8
#define questionmark_height   8
#define DEF_BI_SPM(nm)
#define LEVITTE_TEST
#define DEF_BI_ASPM(nm)
#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

◆ DEF_BI_PPM

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

Definition at line 26 of file image_bitmap_builtin.c.

Referenced by CreateDotPixmap(), CreateMenuPixmap(), CreateQuestionPixmap(), CreateResizePixmap(), CreateXLogoPixmap(), and get_builtin_plain_pixmap().

◆ DEF_BI_SPM

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

◆ Create3DBoxImage()

◆ Create3DCrossImage()

◆ Create3DDotImage()

◆ Create3DIconifyImage()

◆ Create3DMazeInAnimation()

Image * Create3DMazeInAnimation ( ColorPair cp)
static

◆ Create3DMazeOutAnimation()

Image * Create3DMazeOutAnimation ( ColorPair cp)
static

◆ Create3DMenuAnimation()

◆ Create3DMenuDownAnimation()

Image * Create3DMenuDownAnimation ( ColorPair cp)
static

◆ Create3DMenuImage()

◆ Create3DMenuUpAnimation()

Image * Create3DMenuUpAnimation ( ColorPair cp)
static

◆ Create3DResizeAnimation()

◆ Create3DResizeImage()

◆ Create3DResizeInBotAnimation()

Image * Create3DResizeInBotAnimation ( ColorPair cp)
static

◆ Create3DResizeInTopAnimation()

Image * Create3DResizeInTopAnimation ( ColorPair cp)
static

◆ Create3DResizeOutBotAnimation()

Image * Create3DResizeOutBotAnimation ( ColorPair cp)
static

◆ Create3DResizeOutTopAnimation()

Image * Create3DResizeOutTopAnimation ( ColorPair cp)
static

◆ Create3DSunkenResizeImage()

◆ Create3DVertBarImage()

◆ Create3DZoomAnimation()

◆ Create3DZoomImage()

◆ Create3DZoomInAnimation()

Image * Create3DZoomInAnimation ( ColorPair cp)
static

◆ Create3DZoomInOutAnimation()

Image * Create3DZoomInOutAnimation ( ColorPair cp)
static

◆ Create3DZoomOutAnimation()

Image * Create3DZoomOutAnimation ( ColorPair cp)
static

◆ CreateDotPixmap()

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

Definition at line 217 of file image_bitmap_builtin.c.

References CreateDotPixmap(), DEF_BI_PPM, dpy, and Scr.

Referenced by CreateDotPixmap(), and get_builtin_plain_pixmap().

◆ CreateMenuPixmap()

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

◆ 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 CreateResizePixmap(), DEF_BI_PPM, dpy, and Scr.

Referenced by CreateResizePixmap(), and 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 CreateXLogoPixmap(), DEF_BI_PPM, dpy, and Scr.

Referenced by CreateXLogoPixmap(), and 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, BG_WIDTH, and get_blackgray_size().

Referenced by CreateHighlightWindows(), and get_blackgray_size().

◆ get_builtin_animated_pixmap()

◆ get_builtin_plain_pixmap()

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

◆ get_builtin_scalable_pixmap()

◆ mk_blackgray_pixmap()

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

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