Jabber WindowGram Client (JWGC)

Introduction Screenshots Installation Downloads
Documentation Browse Source Resources Project Site

Stable Version
-none-

Latest Version
beta5



Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

X_gram.h

Go to the documentation of this file.
00001 #ifndef x_gram_TYPE
00002 #define x_gram_TYPE
00003 
00004 /*
00005  *      Copyright (c) 1989 by the Massachusetts Institute of Technology.
00006  *      For copying and distribution information, see the file
00007  *      "mit-copyright.h".
00008  *
00009  *      Modified for jwgc by Daniel Henninger.
00010  */
00011 
00012 #include "mit-copyright.h"
00013 
00014 #include <X11/Xlib.h>
00015 #include <sys/time.h>
00016 
00017 typedef struct _xblock {
00018    unsigned long fgcolor;
00019    Font fid;
00020    int x,y;
00021    int x1,y1,x2,y2; /* bounds of block.  used for cut and paste. */
00022    int strindex;
00023    int strlen;
00024 } xblock;
00025 
00026 typedef struct _x_gram {
00027    unsigned long bgcolor;
00028    int numblocks;
00029    xblock *blocks;
00030    char *text;
00031    struct _x_gram *below,*above;
00032    Window w;
00033    struct timeval can_die;
00034 } x_gram;
00035 
00036 typedef struct _xauxblock {
00037    int align;
00038    XFontStruct *font;
00039    char *str;
00040    int len;
00041    int width;
00042 } xauxblock;
00043 
00044 typedef struct _xmode {
00045    int bold;
00046    int italic;
00047    int size;
00048    int align;
00049    int expcolor;
00050    unsigned long color;
00051    char *substyle;
00052    char *font;
00053 } xmode;
00054 
00055 typedef struct _xlinedesc {
00056    int startblock;
00057    int numblock;
00058    int lsize;
00059    int csize;
00060    int rsize;
00061    int ascent;
00062    int descent;
00063 } xlinedesc;
00064 
00065 /* alignment values: */
00066 #define LEFTALIGN   0
00067 #define CENTERALIGN 1
00068 #define RIGHTALIGN  2
00069 
00070 extern void x_gram_init();
00071 extern void x_gram_create();
00072 extern void x_gram_expose();
00073 extern void xshow();
00074 extern void xcut();
00075 
00076 #endif


Last updated at Tue Dec 18 21:07:42 PST 2007. This site and project hosted by...SourceForge.net Logo
Source Perspective by Fisheye