x windows display functions More...
Go to the source code of this file.
Data Structures | |
struct | wl_Line |
struct | wl_Rectangle |
struct | wl_Arc |
struct | wl_String |
struct | wl_GraphicClosure |
struct | wl_PostScriptClosure |
struct | wl_Polygon |
union | wl_DisplayElt |
Macros | |
#define | AllocDisplayElt() malloc (sizeof (DisplayElt)) |
#define | FreeDisplayElt(E) free (E) |
#define | BUF_SIZE 512 |
Typedefs | |
typedef struct wl_Line | Line |
typedef struct wl_Rectangle | Rectangle |
typedef struct wl_Arc | Arc |
typedef struct wl_String | String |
typedef struct wl_GraphicClosure | GraphicClosure |
typedef struct wl_PostScriptClosure | PostScriptClosure |
typedef struct wl_Polygon | Polygon |
typedef union wl_DisplayElt | DisplayElt |
typedef DisplayElt * | RefDisplayElt |
Functions | |
static ListLinks * | x_get_links_of_display_list (DisplayElt *elt) |
x_get_links_of_display_list More... | |
ListHeader * | x_display_list () |
x_display_list More... | |
void | x_set_gc (Display *display, GC gc, long function, unsigned long color, long linewidth, Font font) |
x_set_gc More... | |
void | x_record_line (ListHeader *displaylist, Action action, long x0, long y0, long x1, long y1, unsigned long function, unsigned long color, unsigned long linewidth) |
x_record_line More... | |
void | x_record_arc (ListHeader *displaylist, Action action, long x, long y, long width, long height, long startangle, long arcangle, unsigned long function, unsigned long color, unsigned long linewidth) |
x_record_arc More... | |
void | x_record_rectangle (ListHeader *displaylist, Action action, long x, long y, long width, long height, unsigned long function, unsigned long color, unsigned long linewidth) |
x_record_rectangle More... | |
void | x_record_polygon (ListHeader *displaylist, Action action, XPoint *points, long npoints, unsigned long function, unsigned long color, unsigned long linewidth) |
x_record_polygon More... | |
void | x_record_string (ListHeader *displaylist, Action action, long x, long y, char *str, Font font, unsigned long function, unsigned long color) |
x_record_string More... | |
static long | x_draw_elt (DisplayElt *elt, GraphicClosure *g) |
x_draw_elt More... | |
void | x_refresh_window (Display *display, Window window, Pixmap pixmap, GC pixmapgc, ListHeader *displaylist) |
x_refresh_window More... | |
static long | x_free_elt (DisplayElt *elt, long *closure) |
x_free_elt More... | |
void | x_free_display_list (ListHeader *displaylist) |
x_free_display_list More... | |
static void | x_postscript_prolog (long f) |
x_postscript_prolog More... | |
static char * | add_number (char *buf, long n) |
add_number More... | |
static char * | add_string (char *buf, char *s) |
add_string More... | |
static void | x_get_rgb_values (Display *display, Window window, unsigned long color, XColor *rgb) |
x_get_rgb_values More... | |
static long | x_postscript_elt (DisplayElt *elt, PostScriptClosure *psc) |
x_postscript_elt More... | |
long | x_postscript_window (Display *display, Window window, ListHeader *displaylist, char *filename) |
x_postscript_window More... | |
Variables | |
static char * | prolog [] |
static char | nstr [BUF_SIZE] |
x windows display functions
Definition in file xdisplaylist.c.
#define AllocDisplayElt | ( | ) | malloc (sizeof (DisplayElt)) |
Definition at line 169 of file xdisplaylist.c.
#define BUF_SIZE 512 |
Definition at line 610 of file xdisplaylist.c.
#define FreeDisplayElt | ( | E | ) | free (E) |
Definition at line 170 of file xdisplaylist.c.
typedef union wl_DisplayElt DisplayElt |
typedef struct wl_GraphicClosure GraphicClosure |
typedef struct wl_Polygon Polygon |
typedef struct wl_PostScriptClosure PostScriptClosure |
typedef struct wl_Rectangle Rectangle |
typedef DisplayElt* RefDisplayElt |
Definition at line 99 of file xdisplaylist.c.
|
static |
add_number
buf | - char *buf |
n | - long n |
Definition at line 621 of file xdisplaylist.c.
References BUF_SIZE, and nstr.
|
static |
add_string
buf | - char *buf |
s | - char *s |
Definition at line 645 of file xdisplaylist.c.
References BUF_SIZE.
ListHeader * x_display_list | ( | ) |
x_display_list
Definition at line 120 of file xdisplaylist.c.
References List_SetLinkProc(), and x_get_links_of_display_list().
|
static |
x_draw_elt
elt | - DisplayElt *elt |
g | - GraphicClosure *g |
Definition at line 344 of file xdisplaylist.c.
References wl_Rectangle::action, wl_Arc::action, wl_String::action, wl_Polygon::action, wl_DisplayElt::action, wl_Arc::arcangle, wl_Line::color, wl_Rectangle::color, wl_Arc::color, wl_String::color, wl_Polygon::color, wl_GraphicClosure::display, wl_GraphicClosure::drawable, wl_String::font, wl_Line::function, wl_Rectangle::function, wl_Arc::function, wl_String::function, wl_Polygon::function, wl_GraphicClosure::gc, wl_Rectangle::height, wl_Arc::height, wl_Line::linewidth, wl_Rectangle::linewidth, wl_Arc::linewidth, wl_Polygon::linewidth, wl_Polygon::npoints, wl_Polygon::points, wl_Arc::startangle, wl_String::str, TRUE, wl_Rectangle::width, wl_Arc::width, wl_Rectangle::x, wl_Arc::x, wl_String::x, wl_Line::x0, wl_Line::x1, x_set_gc(), xDefaultFont, xDefaultLineWidth, wl_Rectangle::y, wl_Arc::y, wl_String::y, wl_Line::y0, and wl_Line::y1.
void x_free_display_list | ( | ListHeader * | displaylist | ) |
x_free_display_list
displaylist | - ListHeader *displaylist |
Definition at line 548 of file xdisplaylist.c.
References List_Enum(), NULL, and x_free_elt().
|
static |
x_free_elt
elt | - DisplayElt *elt |
closure | - long *closure |
Definition at line 494 of file xdisplaylist.c.
References wl_DisplayElt::action, FreeDisplayElt, wl_Polygon::points, wl_String::str, and TRUE.
|
static |
x_get_links_of_display_list
elt | - DisplayElt *elt |
Definition at line 110 of file xdisplaylist.c.
|
static |
x_get_rgb_values
display | - Display *display |
window | - Window window |
color | -unsigned long color |
rgb | - XColor *rgb |
Definition at line 662 of file xdisplaylist.c.
|
static |
x_postscript_elt
elt | - DisplayElt *elt |
psc | - PostScriptClosure *psc |
Definition at line 678 of file xdisplaylist.c.
References wl_Rectangle::action, wl_Arc::action, wl_String::action, wl_DisplayElt::action, add_number(), add_string(), wl_Arc::arcangle, BUF_SIZE, wl_Line::color, wl_Rectangle::color, wl_Arc::color, wl_String::color, wl_Polygon::color, wl_PostScriptClosure::display, wl_PostScriptClosure::f, wl_Rectangle::height, wl_Arc::height, wl_PostScriptClosure::height, wl_Line::linewidth, wl_Rectangle::linewidth, wl_Arc::linewidth, wl_Polygon::npoints, wl_Polygon::points, wl_Arc::startangle, wl_String::str, TRUE, wl_Rectangle::width, wl_Arc::width, wl_PostScriptClosure::window, wl_Rectangle::x, wl_Arc::x, wl_String::x, wl_Line::x0, wl_Line::x1, x_get_rgb_values(), wl_Rectangle::y, wl_Arc::y, wl_String::y, wl_Line::y0, and wl_Line::y1.
|
static |
x_postscript_prolog
f | - long f |
Definition at line 599 of file xdisplaylist.c.
References prolog.
long x_postscript_window | ( | Display * | display, |
Window | window, | ||
ListHeader * | displaylist, | ||
char * | filename | ||
) |
x_postscript_window
display | - Display *display |
window | - Window window |
displaylist | - ListHeader *displaylist |
filename | -char *filename |
Definition at line 839 of file xdisplaylist.c.
References wl_PostScriptClosure::display, Errorline(), wl_PostScriptClosure::f, FALSE, wl_PostScriptClosure::height, List_Enum(), TRUE, wl_PostScriptClosure::window, x_postscript_elt(), and x_postscript_prolog().
void x_record_arc | ( | ListHeader * | displaylist, |
Action | action, | ||
long | x, | ||
long | y, | ||
long | width, | ||
long | height, | ||
long | startangle, | ||
long | arcangle, | ||
unsigned long | function, | ||
unsigned long | color, | ||
unsigned long | linewidth | ||
) |
x_record_arc
displaylist | - ListHeader *displaylist |
action | - Action action |
x | - long x |
y | - long y |
width | - long width |
height | - long height |
startangle | - long startangle |
arcangle | - long arcangle |
function | - unsigned long function |
color | - unsigned long color |
linewidth | - unsigned long linewidth |
Definition at line 221 of file xdisplaylist.c.
References wl_Arc::action, AllocDisplayElt, wl_Arc::arcangle, wl_Arc::color, wl_Arc::function, wl_Arc::height, wl_Arc::linewidth, List_Append(), wl_Arc::startangle, wl_Arc::width, wl_Arc::x, and wl_Arc::y.
void x_record_line | ( | ListHeader * | displaylist, |
Action | action, | ||
long | x0, | ||
long | y0, | ||
long | x1, | ||
long | y1, | ||
unsigned long | function, | ||
unsigned long | color, | ||
unsigned long | linewidth | ||
) |
x_record_line
displaylist | ListHeader *displaylist |
action | - Action action |
x0 | - long x0 |
y0 | - long y0 |
x1 | - long x1 |
y1 | - long y1 |
function | - unsigned long function |
color | - unsigned long color |
linewidth | - unsigned long linewidth |
Definition at line 186 of file xdisplaylist.c.
References wl_Line::action, AllocDisplayElt, wl_Line::color, wl_Line::function, wl_Line::linewidth, List_Append(), wl_Line::x0, wl_Line::x1, wl_Line::y0, and wl_Line::y1.
void x_record_polygon | ( | ListHeader * | displaylist, |
Action | action, | ||
XPoint * | points, | ||
long | npoints, | ||
unsigned long | function, | ||
unsigned long | color, | ||
unsigned long | linewidth | ||
) |
x_record_polygon
displaylist | - ListHeader *displaylist |
action | Action action |
points | - XPoint *points |
npoints | - long npoints |
function | - unsigned long function |
color | - unsigned long color |
linewidth | - unsigned long linewidth |
Definition at line 285 of file xdisplaylist.c.
References wl_Polygon::action, AllocDisplayElt, wl_Polygon::color, wl_Polygon::function, wl_Polygon::linewidth, List_Append(), wl_Polygon::npoints, and wl_Polygon::points.
void x_record_rectangle | ( | ListHeader * | displaylist, |
Action | action, | ||
long | x, | ||
long | y, | ||
long | width, | ||
long | height, | ||
unsigned long | function, | ||
unsigned long | color, | ||
unsigned long | linewidth | ||
) |
x_record_rectangle
displaylist | - ListHeader *displaylist |
action | - Action action |
x | - long x |
y | - long y |
width | - long width |
height | - long height |
function | - unsigned long function |
color | - unsigned long color |
linewidth | - unsigned long linewidth |
Definition at line 255 of file xdisplaylist.c.
References wl_Rectangle::action, AllocDisplayElt, wl_Rectangle::color, wl_Rectangle::function, wl_Rectangle::height, wl_Rectangle::linewidth, List_Append(), wl_Rectangle::width, wl_Rectangle::x, and wl_Rectangle::y.
void x_record_string | ( | ListHeader * | displaylist, |
Action | action, | ||
long | x, | ||
long | y, | ||
char * | str, | ||
Font | font, | ||
unsigned long | function, | ||
unsigned long | color | ||
) |
x_record_string
displaylist | - ListHeader *displaylist |
action | - Action action |
x | - long x |
y | - long y |
str | - char *str |
font | - Font font |
function | - unsigned long function |
color | - unsigned long color |
Definition at line 318 of file xdisplaylist.c.
References wl_String::action, AllocDisplayElt, wl_String::color, wl_String::font, wl_String::function, List_Append(), wl_String::str, wl_String::x, and wl_String::y.
void x_refresh_window | ( | Display * | display, |
Window | window, | ||
Pixmap | pixmap, | ||
GC | pixmapgc, | ||
ListHeader * | displaylist | ||
) |
x_refresh_window
display | - Display *display |
window | - Window window |
pixmap | - Pixmap pixmap |
pixmapgc | - GC pixmapgc |
displaylist | - ListHeader *displaylist |
Definition at line 447 of file xdisplaylist.c.
References wl_GraphicClosure::display, wl_GraphicClosure::drawable, wl_GraphicClosure::gc, List_Enum(), x_draw_elt(), x_set_gc(), xDefaultFont, and xDefaultLineWidth.
void x_set_gc | ( | Display * | display, |
GC | gc, | ||
long | function, | ||
unsigned long | color, | ||
long | linewidth, | ||
Font | font | ||
) |
x_set_gc
display | - Display *display |
gc | - GC gc |
function | - long function |
color | - unsigned long color |
linewidth | - long linewidth |
font | - Font font |
Definition at line 142 of file xdisplaylist.c.
References xDefaultFont, and xDefaultLineWidth.
|
static |
Definition at line 612 of file xdisplaylist.c.
|
static |
Definition at line 555 of file xdisplaylist.c.