summaryrefslogtreecommitdiff
path: root/wm/tvtwm/patches/patch-ax
blob: e5d2b8b0498c761c4c5bc04f8c432ffc5ad02a7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
$NetBSD: patch-ax,v 1.1.1.1 2000/12/12 02:03:49 wiz Exp $

Index: twm.h
===================================================================
RCS file: /home/siren/src/tvtwm/twm.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- twm.h	1999/08/08 05:46:53	1.1.1.1
+++ twm.h	1999/08/08 05:56:59	1.2
@@ -39,6 +39,7 @@
 #ifndef _TWM_
 #define _TWM_
 
+#include <stdio.h>
 #include <X11/Intrinsic.h>
 #include <X11/cursorfont.h>
 #include <X11/extensions/shape.h>
@@ -51,6 +52,9 @@
 
 #include "icons.h"
 
+#include "menus.h"
+#include "list.h"
+
 #ifndef WithdrawnState
 #define WithdrawnState 0
 #endif
@@ -388,6 +392,122 @@
 extern Atom _XA_WM_SAVE_YOURSELF;
 extern Atom _XA_WM_DELETE_WINDOW;
 extern Atom _XA_TWM_FLAGS;
+
+/* Function prototypes */
+void ResizeVirtual(Window window, int width, int height);
+Pixmap XcprLocatePixmapFile (Screen *screen, _Xconst char *name, 
+			     XpmColorSymbol *trans, int numtrans,
+			     unsigned int depth, 
+			     char *srcname, int srcnamelen,
+			     int *widthp, int *heightp, int *xhotp, int *yhotp,
+			     Bool *isXpm, XpmAttributes *attribs,
+			     Pixmap *mask);
+
+Pixmap GetCursorGlyph(char *name, int *widthp, int *heightp,
+		      Pixmap *shape_mask);
+void SetFrameShape (TwmWindow *tmp);
+int ExecuteFunction(int func, char *action, struct MenuRoot *sub, Window w,
+		    TwmWindow *tmp_win, XEvent *eventp, int context,
+		    int pulldown);
+Bool AddFuncKey (char *name, int cont, int mods, int func, char *win_name,
+		 char *action);
+MenuItem *AddToMenu(MenuRoot *menu, char *item, char *action, MenuRoot *sub,
+		    int func, char *fore, char *back);
+void FocusOnRoot(void);
+void PaintEntry(MenuRoot *mr, MenuItem *mi, int exposure);
+Bool PopUpMenu (MenuRoot *menu, int x, int y, Bool center);
+MenuRoot *FindMenuRoot(char *name);
+MenuRoot *NewMenuRoot(char *name);
+void RelativeMove(TwmWindow *win, char *geom);
+void MenuStartResize(TwmWindow *tmp_win, int x, int y, int w, int h);
+void MenuEndResize(TwmWindow *tmp_win);
+void MenuDoResize(int x_root, int y_root, TwmWindow *tmp_win);
+int Execute(char *s, TwmWindow *tmp_win);
+void InitMenus(void);
+void InitTitlebarButtons(void);
+void DestroyMenu (MenuRoot *menu);
+void MakeMenu(MenuRoot *mr);
+void DeIconify(TwmWindow *tmp_win);
+void HideIconManager (void);
+Bool NeedToDefer(MenuRoot *root);
+void SendDeleteWindowMessage (TwmWindow *tmp, Time timestamp);
+void SendSaveYourselfMessage (TwmWindow *tmp, Time timestamp);
+void WarpToScreen (int n, int inc);
+void BumpWindowColormap (TwmWindow *tmp, int inc);
+void DestroyIconWindow(TwmWindow *tmp_win);
+char *current_input_line(void);
+void do_var_savecolor(int key);
+void twmrc_error_prefix (void);
+char *MkQte(char *name, char *def);
+int CreateTitleButton (char *name, int func, char *action, MenuRoot *menuroot,
+                       Bool rightside, Bool append);
+void AddIconRegion(char *name, short type, char *geom, Bool iterate,
+		   int grav1, int grav2, int stepx, int stepy);
+int do_pixmap_keyword(int keyword, char *filename);
+void NewBitmapCursor(Cursor *cp, char *source, char *mask);
+void do_squeeze_entry (name_list **list, char *name, short icontype, int justify,
+		       int num, int denom);
+void FetchWmProtocols (TwmWindow *tmp);
+void FetchWmColormapWindows (TwmWindow *tmp);
+short Transient(Window w, Window *wp);
+void def_netmask(FILE *tmpf);
+void MoveIcon(TwmWindow *tmp_win, int x, int y);
+Window MakeVirtual(TwmWindow *tmp_win, int x, int y, int width, int height,
+                   long background, long border);
+Pixmap FindPixmap (char *name, unsigned int *widthp, unsigned int *heightp,
+                   Bool *isXpm, Pixel *bg_color,
+#ifdef XPM
+		   XpmColorSymbol *colors,
+#else
+		   char *colors,
+#endif
+		   int numcolors, Pixmap *shape_mask);
+void SendSyntheticConfigureNotify(TwmWindow *tmp_win);
+void SetupFrame (TwmWindow *tmp_win, int x, int y, int w, int h, int bw,
+                 Bool sendEvent);
+void SetupWindow (TwmWindow *tmp_win, int x, int y, int w, int h, int bw);
+int parse_keyword (char *s, int *nump);
+void SimulateWinGravity (TwmWindow *tmp);
+void SetBorder (TwmWindow *tmp, Bool onoroff);
+void InstallRootColormap(void);
+void ConstrainSize (TwmWindow *tmp_win, int *widthp, int *heightp);
+void UninstallRootColormap(void);
+void SetSWM_ROOT(TwmWindow *tmp_win);
+void ReGrab(void);
+void InstallWindowColormaps (int type, TwmWindow *tmp);
+int GetColor(int kind, Pixel *what, char *name);
+void LocateStandardColormaps(void);
+void SetFocus (TwmWindow *tmp_win, Time time);
+void MakeMenus(void);
+void SetSWM_VERSION(void);
+void SetMapStateProp(TwmWindow *tmp_win, int state);
+void CreateFonts (void);
+void GetFont(MyFont *font);
+void GetGravityOffsets (TwmWindow *tmp, int *xp, int *yp);
+void RemoveSWM_VERSION();
+void AddDefaultBindings ();
+void ScrollToQuadrant(TwmWindow *tmp_win);
+void DragIcon(TwmWindow *tmp_win, XButtonEvent *ev, int pulldown);
+void DragFrame(TwmWindow *tmp_win, XButtonEvent *ev, int pulldown);
+void Iconify(TwmWindow *tmp_win, int def_x, int def_y);
+void DeIconify(TwmWindow *tmp_win);
+void IconDown (TwmWindow *tmp_win);
+void IconUp (TwmWindow *tmp_win);
+void CreateIconWindow(TwmWindow *tmp_win, int def_x, int def_y);
+void InsertRGBColormap (Atom a, XStandardColormap *maps, int nmaps,
+                        Bool replace);
+void RemoveRGBColormap (Atom a);
+void RedoIconName(void);
+void PaintMenu(MenuRoot *mr, XEvent *e);
+void RestoreWithdrawnLocation (TwmWindow *tmp);
+void PopDownMenu(void);
+void UpdateMenu(void);
+void HandlePannerMove(XButtonEvent *ev, TwmWindow *tmp_win);
+void SendTakeFocusMessage (TwmWindow *tmp, Time timestamp);
+void RaiseFrame(TwmWindow *tmp_win);
+void ResizeDesktop(int width, int height);
+void MoveOutline(Window root, int x, int y, int width, int height, int bw,
+                 int th);
 extern Atom _XA_TWM_RESTART;
 extern Atom _XA_TWM_PROCESS;
 extern Atom _XA_TWM_MACHINE;