~ctwm/ctwm/trunk

« back to all changes in this revision

Viewing changes to util.h

  • Committer: Matthew Fuller
  • Date: 2016-09-11 15:41:36 UTC
  • mto: This revision was merged to the branch mainline in revision 522.
  • Revision ID: fullermd@over-yonder.net-20160911154136-mrh2qth2nh2pxcqq
tracefile is used broadly across the code for debug output.  Move it
to util.[ch]; it's maybe a little wrong there, but it's _very_ wrong
having it as part of the event code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
#define Tolower(c)      tolower((int)(unsigned char)(c))
91
91
#define Toupper(c)      toupper((int)(unsigned char)(c))
92
92
 
 
93
void     MoveOutline(Window root,
 
94
                     int x, int y, int width, int height,
 
95
                     int bw, int th);
93
96
char     *ExpandFilename(const char *name);
94
97
char     *ExpandFilePath(char *path);
95
98
 
97
100
void GetShadeColors(ColorPair *cp);
98
101
void GetFont(MyFont *font);
99
102
bool UpdateFont(MyFont *font, int height);
 
103
void SetFocusVisualAttributes(TwmWindow *tmp_win, bool focus);
100
104
#if 0
101
105
void move_to_after(TwmWindow *t, TwmWindow *after);
102
106
#endif
 
107
void SetFocus(TwmWindow *tmp_win, Time tim);
103
108
void AdoptWindow(void);
104
109
void RescueWindows(void);
105
110
void DebugTrace(char *file);
106
 
 
107
 
 
 
111
void SetBorderCursor(TwmWindow *tmp_win, int x, int y);
 
112
 
 
113
 
 
114
unsigned char *GetWMPropertyString(Window w, Atom prop);
 
115
void FreeWMPropertyString(char *prop);
 
116
void ConstrainByBorders1(int *left, int width, int *top, int height);
 
117
void ConstrainByBorders(TwmWindow *twmwin,
 
118
                        int *left, int width,
 
119
                        int *top, int height);
108
120
void safe_strncpy(char *dest, const char *src, size_t size);
 
121
bool visible(const TwmWindow *tmp_win);
 
122
 
 
123
long mask_out_event(Window w, long ignore_event);
 
124
long mask_out_event_mask(Window w, long ignore_event, long curmask);
 
125
int restore_mask(Window w, long restore);
109
126
 
110
127
extern FILE *tracefile;
111
128