~netrek-developers/netrek-client-cow/trunk

« back to all changes in this revision

Viewing changes to _darcs/pristine/x11window.h

  • Committer: Collin Pruitt
  • Date: 2009-05-12 04:30:09 UTC
  • Revision ID: collinp111@gmail.com-20090512043009-3jsjojoyrk16oass
Initial upload - updated from http://james.tooraweenah.com/darcs/netrek-client-cow/ using darcs (hince the existnace of _darcs), fully patched.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
struct window
 
2
  {
 
3
    Window  window;
 
4
    int     type;
 
5
    char   *data;
 
6
    int     mapped;
 
7
    int     width, height;
 
8
    char   *name;
 
9
    W_Callback handle_keydown;
 
10
    W_Callback handle_keyup;
 
11
    W_Callback handle_button;
 
12
    W_Callback handle_expose;
 
13
 
 
14
#ifdef SHORT_PACKETS
 
15
    int     insensitive;
 
16
#endif
 
17
    Cursor  cursor;
 
18
  };
 
19
 
 
20
struct scrollingWindow
 
21
  {
 
22
    int     lines;
 
23
    int     updated;
 
24
    int     topline;
 
25
    struct stringList *head;
 
26
    struct stringList *tail;
 
27
    struct stringList *index;
 
28
  };
 
29
 
 
30
/* x11window.c */
 
31
int _myerror(Display *d, XErrorEvent *e);
 
32
void pastebuffer(void);
 
33
void W_Initialize(char *str);
 
34
void checkFont(XFontStruct *fontinfo, char *fontname);
 
35
void GetFonts(void);
 
36
XFontStruct *find_font(char *oldf, char **fonts);
 
37
void GetColors(void);
 
38
void W_RenameWindow(W_Window window, char *str);
 
39
W_Window W_MakeWindow(char *name, int x, int y, int width, int height, W_Window parent, int border, W_Color color);
 
40
void W_ChangeBorder(W_Window window, int color);
 
41
void W_MapWindow(W_Window window);
 
42
void W_UnmapWindow(W_Window window);
 
43
int W_IsMapped(W_Window window);
 
44
void W_FillArea(W_Window window, int x, int y, int width, int height, W_Color color);
 
45
void W_CacheClearArea(W_Window window, int x, int y, int width, int height);
 
46
void W_FlushClearAreaCache(W_Window window);
 
47
void W_ClearArea(W_Window window, int x, int y, int width, int height);
 
48
void W_ClearWindow(W_Window window);
 
49
int W_EventsPending(void);
 
50
void W_NextEvent(W_Event *wevent);
 
51
int W_SpNextEvent(W_Event *wevent);
 
52
void W_MakeLine(W_Window window, int x0, int y0, int x1, int y1, W_Color color);
 
53
void W_CacheLine(W_Window window, int x0, int y0, int x1, int y1, int color);
 
54
void W_FlushLineCaches(W_Window window);
 
55
void W_MakeTractLine(W_Window window, int x0, int y0, int x1, int y1, W_Color color);
 
56
void W_MakePhaserLine(W_Window window, int x0, int y0, int x1, int y1, W_Color color);
 
57
void W_WriteTriangle(W_Window window, int x, int y, int s, int t, W_Color color);
 
58
void W_WriteText(W_Window window, int x, int y, W_Color color, char *str, int len, W_Font font);
 
59
void W_MaskText(W_Window window, int x, int y, W_Color color, char *str, int len, W_Font font);
 
60
W_Icon W_StoreBitmap(int width, int height, char *data, W_Window window);
 
61
void W_WriteBitmap(int x, int y, W_Icon bit, W_Color color);
 
62
void W_TileWindow(W_Window window, W_Icon bit);
 
63
void W_UnTileWindow(W_Window window);
 
64
W_Window W_MakeTextWindow(char *name, int x, int y, int width, int height, W_Window parent, int border);
 
65
struct window *newWindow(Window window, int type);
 
66
struct window *findWindow(Window window);
 
67
void addToHash(struct window *win);
 
68
W_Window W_MakeScrollingWindow(char *name, int x, int y, int width, int height, W_Window parent, int border);
 
69
void W_FlushScrollingWindow(W_Window window);
 
70
void W_SetSensitive(W_Window w, int v);
 
71
W_Window W_MakeMenu(char *name, int x, int y, int width, int height, W_Window parent, int border);
 
72
void redrawMenu(struct window *win);
 
73
void redrawMenuItem(struct window *win, int n);
 
74
void W_DefineMapcursor(W_Window window);
 
75
void W_DefineLocalcursor(W_Window window);
 
76
void W_DefineFedCursor(W_Window window);
 
77
void W_DefineRomCursor(W_Window window);
 
78
void W_DefineKliCursor(W_Window window);
 
79
void W_DefineOriCursor(W_Window window);
 
80
void W_DefineTrekCursor(W_Window window);
 
81
void W_DefineWarningCursor(W_Window window);
 
82
void W_DefineArrowCursor(W_Window window);
 
83
void W_DefineTextCursor(W_Window window);
 
84
void W_DefineCursor(W_Window window, int width, int height, char *bits, char *mask, int xhot, int yhot);
 
85
int W_LoadBitmap(W_Window window, char *path, Pixmap *pixmap, int *width, int *height, int *x_hot, int *y_hot);
 
86
void W_Beep(void);
 
87
int W_WindowWidth(W_Window window);
 
88
int W_WindowHeight(W_Window window);
 
89
int W_Socket(void);
 
90
void W_DestroyWindow(W_Window window);
 
91
void deleteWindow(struct window *window);
 
92
void W_SetIconWindow(W_Window main, W_Window icon);
 
93
void checkParent(char *name, W_Window *parent);
 
94
int checkMapped(char *name);
 
95
int checkMappedPref(char *name, int preferred);
 
96
void W_WarpPointer(W_Window window, int x, int y);
 
97
void findMouse(int *x, int *y);
 
98
int findMouseInWin(int *x, int *y, W_Window w);
 
99
void W_Flush(void);
 
100
W_Callback W_GetWindowKeyDownHandler(W_Window w);
 
101
void W_SetWindowKeyDownHandler(W_Window w, W_Callback c);
 
102
W_Callback W_GetWindowKeyUpHandler(W_Window w);
 
103
void W_SetWindowKeyUpHandler(W_Window w, W_Callback c);
 
104
W_Callback W_GetWindowButtonHandler(W_Window w);
 
105
void W_SetWindowButtonHandler(W_Window w, W_Callback c);
 
106
W_Callback W_GetWindowExposeHandler(W_Window w);
 
107
void W_SetWindowExposeHandler(W_Window w, W_Callback c);
 
108
void W_ResizeWindow(W_Window window, int neww, int newh);
 
109
void W_ResizeTextWindow(W_Window window, int neww, int newh);
 
110
int W_Mono(void);
 
111
int W_EventsQueued(void);
 
112
int W_EventsQueuedCk(void);
 
113
int W_ReadEvents(void);
 
114
void W_OverlayBitmap(int x, int y, W_Icon bit, W_Color color);
 
115
void W_SetWindowName(W_Window w, char *name);
 
116
int W_TTSTextHeight(void);
 
117
int W_TTSTextWidth(char *s, int l);
 
118
void init_tts(void);
 
119
void W_EraseTTSText(W_Window window, int max_width, int y, int width);
 
120
void W_WriteTTSText(W_Window window, int max_width, int y, int width, char *str, int len);
 
121
void W_Halo(int x, int y, W_Color color);
 
122
void W_CameraSnap(W_Window window);