~ctwm/ctwm/trunk

482.1.1 by Matthew Fuller
Minimal functional break out of ExecuteFunction() and its subsidiary
1
/*
2
 * f.whatever function dispatcher
3
 */
4
484 by Matthew Fuller
Consistently rename all the include guards so they match the filename,
5
#ifndef _CTWM_FUNCTIONS_H
6
#define _CTWM_FUNCTIONS_H
482.1.1 by Matthew Fuller
Minimal functional break out of ExecuteFunction() and its subsidiary
7
8
/* All the outside world sees */
482.1.36 by Matthew Fuller
Change some more Bool or int-as-bool vars into real bool's.
9
bool ExecuteFunction(int func, void *action, Window w, TwmWindow *tmp_win,
492.2.95 by Matthew Fuller
int->bool for boolean arg on ExecuteFunction()
10
                     XEvent *eventp, int context, bool pulldown);
482.1.1 by Matthew Fuller
Minimal functional break out of ExecuteFunction() and its subsidiary
11
497.1.9 by Matthew Fuller
enum-ify this global var and move the old #define's for it into an
12
13
typedef enum {
14
	MOVE_NONE,
15
	MOVE_VERT,
16
	MOVE_HORIZ,
17
} CMoveDir;
18
482.1.4 by Matthew Fuller
Move some vars around between menus.c and execute_function.c to match
19
/* Needed in events.c */
492.2.91 by Matthew Fuller
Track down a bunch more boolean vars, and make them bool.
20
extern bool ConstMove;
497.1.9 by Matthew Fuller
enum-ify this global var and move the old #define's for it into an
21
extern CMoveDir ConstMoveDir;
482.1.4 by Matthew Fuller
Move some vars around between menus.c and execute_function.c to match
22
extern int ConstMoveX;
23
extern int ConstMoveY;
482.1.1 by Matthew Fuller
Minimal functional break out of ExecuteFunction() and its subsidiary
24
482.1.14 by Matthew Fuller
Encapsulate writing the text into the info window into a function
25
void draw_info_window(void);
26
482.1.6 by Matthew Fuller
These vars for the f.identify window belong to it, so move them into
27
482.1.1 by Matthew Fuller
Minimal functional break out of ExecuteFunction() and its subsidiary
28
/* Leaks to a few places */
482.1.26 by Matthew Fuller
Align.
29
extern int  RootFunction;
30
extern int  MoveFunction;
482.1.25 by Matthew Fuller
Convert WindowMoved into a proper bool since that's how it's being
31
extern bool WindowMoved;
482.1.26 by Matthew Fuller
Align.
32
extern int  ResizeOrigX;
33
extern int  ResizeOrigY;
482.1.1 by Matthew Fuller
Minimal functional break out of ExecuteFunction() and its subsidiary
34
484 by Matthew Fuller
Consistently rename all the include guards so they match the filename,
35
#endif /* _CTWM_FUNCTIONS_H */