CTWM
Loading...
Searching...
No Matches
/usr/src/RPM/BUILD/ctwm-4.1.0/win_utils.h
Go to the documentation of this file.
1/*
2 * Window util funcs
3 */
4#ifndef _CTWM_WIN_UTILS_H
5#define _CTWM_WIN_UTILS_H
6
7
10void GetGravityOffsets(TwmWindow *tmp, int *xp, int *yp);
13void FreeWMPropertyString(char *prop);
14bool visible(const TwmWindow *tmp_win);
17int restore_mask(Window w, long restore);
18void SetMapStateProp(TwmWindow *tmp_win, int state);
19bool GetWMState(Window w, int *statep, Window *iwp);
20void DisplayPosition(const TwmWindow *_unused_tmp_win, int x, int y);
21void MoveResizeSizeWindow(int x, int y, unsigned int width,
22 unsigned int height);
23void TryToPack(TwmWindow *tmp_win, int *x, int *y);
24void TryToPush(TwmWindow *tmp_win, int x, int y);
25void TryToGrid(TwmWindow *tmp_win, int *x, int *y);
26bool ConstrainByLayout(RLayout *layout, int move_off_res, int *left, int width,
27 int *top, int height);
28void ConstrainByBorders1(int *left, int width, int *top, int height);
29void ConstrainByBorders(TwmWindow *twmwin, int *left, int width,
30 int *top, int height);
35bool set_window_name(TwmWindow *win);
39
40
41#endif /* _CTWM_WIN_UTILS_H */
static int PlaceX
Definition add_window.c:82
int y
Definition menus.c:70
int x
Definition menus.c:69
The layout of our display.
Definition r_structs.h:45
Info and control for every X Window we take over.
void apply_window_icon_name(TwmWindow *win)
[Re]set and apply changes to a window's icon name.
Definition win_utils.c:1349
void send_clientmessage(Window w, Atom a, Time timestamp)
Definition win_utils.c:996
bool set_window_name(TwmWindow *win)
[Re]set a window's name.
Definition win_utils.c:1126
XWMHints * munge_wmhints(TwmWindow *win, XWMHints *hints)
Perform whatever adaptations of WM_HINTS info we do.
Definition win_utils.c:1059
void DisplayPosition(const TwmWindow *_unused_tmp_win, int x, int y)
Definition win_utils.c:466
void FreeWMPropertyString(char *prop)
Definition win_utils.c:327
bool visible(const TwmWindow *tmp_win)
Definition win_utils.c:341
void GetWindowSizeHints(TwmWindow *tmp_win)
Definition win_utils.c:41
void MoveResizeSizeWindow(int x, int y, unsigned int width, unsigned int height)
Definition win_utils.c:495
bool GetWMState(Window w, int *statep, Window *iwp)
Definition win_utils.c:429
TwmWindow * GetTwmWindow(Window w)
Definition win_utils.c:190
void ConstrainByBorders(TwmWindow *twmwin, int *left, int width, int *top, int height)
Definition win_utils.c:825
XWMHints * gen_synthetic_wmhints(TwmWindow *win)
Definition win_utils.c:1030
int restore_mask(Window w, long restore)
Definition win_utils.c:399
bool ConstrainByLayout(RLayout *layout, int move_off_res, int *left, int width, int *top, int height)
Definition win_utils.c:760
void ConstrainByBorders1(int *left, int width, int *top, int height)
Definition win_utils.c:818
long mask_out_event_mask(Window w, long ignore_event, long curmask)
Definition win_utils.c:389
void FetchWmProtocols(TwmWindow *tmp)
Definition win_utils.c:108
long mask_out_event(Window w, long ignore_event)
Definition win_utils.c:366
void SetMapStateProp(TwmWindow *tmp_win, int state)
Definition win_utils.c:415
void TryToPush(TwmWindow *tmp_win, int x, int y)
Definition win_utils.c:617
void WarpToWindow(TwmWindow *t, bool must_raise)
Definition win_utils.c:883
void apply_window_name(TwmWindow *win)
[Re]set and apply changes to a window's name.
Definition win_utils.c:1187
void TryToGrid(TwmWindow *tmp_win, int *x, int *y)
Definition win_utils.c:705
void TryToPack(TwmWindow *tmp_win, int *x, int *y)
Definition win_utils.c:560
char * GetWMPropertyString(Window w, Atom prop)
Definition win_utils.c:222
void GetGravityOffsets(TwmWindow *tmp, int *xp, int *yp)
Definition win_utils.c:149
bool set_window_icon_name(TwmWindow *win)
[Re]set a window's icon name.
Definition win_utils.c:1288