CTWM
Loading...
Searching...
No Matches
/usr/src/RPM/BUILD/ctwm-4.1.0/icons.h
Go to the documentation of this file.
1/*
2 * Icon releated definitions
3 *
4 *
5 * Copyright 1989 Massachusetts Institute of Technology
6 *
7 * $XConsortium: icons.h,v 1.4 89/07/18 17:16:24 jim Exp $
8 *
9 * 10-Apr-89 Tom LaStrange Initial Version.
10 *
11 * Copyright 1992 Claude Lecommandeur.
12 */
13
14#ifndef _CTWM_ICONS_H
15#define _CTWM_ICONS_H
16
17/* Where did the Image for the Icon come from? */
18typedef enum {
20 match_list, /* shared Image: iconslist and Scr->ImageCache */
21 match_icon_pixmap_hint, /* Pixmap copied from IconPixmapHint */
22 match_net_wm_icon, /* Pixmap created from NET_WM_ICON */
23 match_unknown_default, /* shared Image: Scr->UnknownImage */
24} Matchtype;
25
26struct Icon {
28 Window w; /* the icon window */
29 OtpWinList *otp; /* OnTopPriority info for the icon */
30 Window bm_w; /* the icon bitmap window */
31 Image *image; /* image icon structure */
32 int x; /* icon text x coordinate */
33 int y; /* icon text y coordiante */
34 int w_x; /* x coor of the icon window !!untested!! */
35 int w_y; /* y coor of the icon window !!untested!! */
36 int w_width; /* width of the icon window */
37 int w_height; /* height of the icon window */
38 int width; /* width of the icon bitmap */
39 int height; /* height of the icon bitmap */
40 Pixel border; /* border color */
43 struct IconRegion *ir;
45 bool w_not_ours; /* Icon.w comes from IconWindowHint */
46};
47
59
60struct IconEntry {
61 struct IconEntry *next;
62 int x, y, w, h;
64 bool used;
65};
66
67
68/* Placement and IconsRegion handling */
69name_list **AddIconRegion(const char *geom, RegGravity grav1, RegGravity grav2,
70 int stepx, int stepy, const char *ijust,
71 const char *just, const char *align);
72
73/* Icon [window] creation/destruction */
76void DeleteIcon(Icon *icon);
77void ReleaseIconImage(Icon *icon);
78
79/* Handling for bringing them up or down */
82
83/* Drawing */
87int GetIconOffset(Icon *icon);
88void RedoIcon(TwmWindow *win);
89void RedoIconName(TwmWindow *win);
90
91#endif /* _CTWM_ICONS_H */
static int PlaceX
Definition add_window.c:82
TitleJust
Definition ctwm.h:202
IRJust
Definition ctwm.h:212
RegGravity
Definition ctwm.h:227
IRAlignement
Definition ctwm.h:189
name_list ** AddIconRegion(const char *geom, RegGravity grav1, RegGravity grav2, int stepx, int stepy, const char *ijust, const char *just, const char *align)
Definition icons.c:135
Matchtype
Definition icons.h:18
@ match_net_wm_icon
Definition icons.h:22
@ match_unknown_default
Definition icons.h:23
@ match_none
Definition icons.h:19
@ match_icon_pixmap_hint
Definition icons.h:21
@ match_list
Definition icons.h:20
void ReleaseIconImage(Icon *icon)
Definition icons.c:831
void DeleteIcon(Icon *icon)
Definition icons.c:814
void IconUp(TwmWindow *tmp_win)
Definition icons.c:859
void DeleteIconsList(TwmWindow *tmp_win)
Definition icons.c:782
void RedoIconName(TwmWindow *win)
Definition icons.c:1244
void ExpandIconTitle(TwmWindow *tmp_win)
Definition icons.c:1053
void IconDown(TwmWindow *tmp_win)
Definition icons.c:915
void ShrinkIconTitle(TwmWindow *tmp_win)
Definition icons.c:1021
void PaintIcon(TwmWindow *tmp_win)
Definition icons.c:967
void RedoIcon(TwmWindow *win)
Definition icons.c:1160
void CreateIconWindow(TwmWindow *tmp_win, int def_x, int def_y)
Definition icons.c:448
int GetIconOffset(Icon *icon)
Definition icons.c:1128
int w
Definition icons.h:62
TwmWindow * twm_win
Definition icons.h:63
int y
Definition icons.h:62
struct IconEntry * next
Definition icons.h:61
int h
Definition icons.h:62
bool used
Definition icons.h:64
int x
Definition icons.h:62
int stepx
Definition icons.h:52
IRAlignement Alignement
Definition icons.h:55
IRJust Justification
Definition icons.h:54
RegGravity grav1
Definition icons.h:51
struct IconRegion * next
Definition icons.h:49
int h
Definition icons.h:50
struct IconEntry * entries
Definition icons.h:57
int w
Definition icons.h:50
int x
Definition icons.h:50
int y
Definition icons.h:50
name_list * clientlist
Definition icons.h:56
int stepy
Definition icons.h:52
RegGravity grav2
Definition icons.h:51
TitleJust TitleJustification
Definition icons.h:53
Definition icons.h:26
int border_width
Definition icons.h:42
OtpWinList * otp
Definition icons.h:29
int w_y
Definition icons.h:35
bool has_title
Definition icons.h:44
bool w_not_ours
Definition icons.h:45
int w_width
Definition icons.h:36
ColorPair iconc
Definition icons.h:41
int height
Definition icons.h:39
int y
Definition icons.h:33
Image * image
Definition icons.h:31
bool title_shrunk
Definition icons.h:44
int w_height
Definition icons.h:37
Window w
Definition icons.h:28
int w_x
Definition icons.h:34
int x
Definition icons.h:32
Pixel border
Definition icons.h:40
struct IconRegion * ir
Definition icons.h:43
Window bm_w
Definition icons.h:30
int width
Definition icons.h:38
Matchtype match
Definition icons.h:27
Definition image.h:9
Info and control for every X Window we take over.