CTWM
Toggle main menu visibility
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? */
18
typedef
enum
{
19
match_none
,
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
26
struct
Icon
{
27
Matchtype
match
;
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 */
41
ColorPair
iconc
;
42
int
border_width
;
43
struct
IconRegion
*
ir
;
44
bool
has_title
,
title_shrunk
;
45
bool
w_not_ours
;
/* Icon.w comes from IconWindowHint */
46
};
47
48
struct
IconRegion
{
49
struct
IconRegion
*
next
;
50
int
x
,
y
,
w
,
h
;
51
RegGravity
grav1
,
grav2
;
52
int
stepx
,
stepy
;
// allocation granularity
53
TitleJust
TitleJustification
;
54
IRJust
Justification
;
55
IRAlignement
Alignement
;
56
name_list
*
clientlist
;
57
struct
IconEntry
*
entries
;
58
};
59
60
struct
IconEntry
{
61
struct
IconEntry
*
next
;
62
int
x
,
y
,
w
,
h
;
63
TwmWindow
*
twm_win
;
64
bool
used
;
65
};
66
67
68
/* Placement and IconsRegion handling */
69
name_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 */
74
void
CreateIconWindow
(
TwmWindow
*tmp_win,
int
def_x,
int
def_y);
75
void
DeleteIconsList
(
TwmWindow
*tmp_win);
76
void
DeleteIcon
(
Icon
*icon);
77
void
ReleaseIconImage
(
Icon
*icon);
78
79
/* Handling for bringing them up or down */
80
void
IconUp
(
TwmWindow
*tmp_win);
81
void
IconDown
(
TwmWindow
*tmp_win);
82
83
/* Drawing */
84
void
PaintIcon
(
TwmWindow
*tmp_win);
85
void
ShrinkIconTitle
(
TwmWindow
*tmp_win);
86
void
ExpandIconTitle
(
TwmWindow
*tmp_win);
87
int
GetIconOffset
(
Icon
*icon);
88
void
RedoIcon
(
TwmWindow
*win);
89
void
RedoIconName
(
TwmWindow
*win);
90
91
#endif
/* _CTWM_ICONS_H */
TitleJust
TitleJust
Definition
ctwm.h:202
IRJust
IRJust
Definition
ctwm.h:212
RegGravity
RegGravity
Definition
ctwm.h:227
IRAlignement
IRAlignement
Definition
ctwm.h:189
AddIconRegion
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
ReleaseIconImage
void ReleaseIconImage(Icon *icon)
Definition
icons.c:831
DeleteIcon
void DeleteIcon(Icon *icon)
Definition
icons.c:814
IconUp
void IconUp(TwmWindow *tmp_win)
Definition
icons.c:859
DeleteIconsList
void DeleteIconsList(TwmWindow *tmp_win)
Definition
icons.c:782
RedoIconName
void RedoIconName(TwmWindow *win)
Definition
icons.c:1244
ExpandIconTitle
void ExpandIconTitle(TwmWindow *tmp_win)
Definition
icons.c:1053
IconDown
void IconDown(TwmWindow *tmp_win)
Definition
icons.c:915
ShrinkIconTitle
void ShrinkIconTitle(TwmWindow *tmp_win)
Definition
icons.c:1021
PaintIcon
void PaintIcon(TwmWindow *tmp_win)
Definition
icons.c:967
RedoIcon
void RedoIcon(TwmWindow *win)
Definition
icons.c:1160
CreateIconWindow
void CreateIconWindow(TwmWindow *tmp_win, int def_x, int def_y)
Definition
icons.c:448
GetIconOffset
int GetIconOffset(Icon *icon)
Definition
icons.c:1128
Matchtype
Matchtype
Definition
icons.h:18
match_net_wm_icon
@ match_net_wm_icon
Definition
icons.h:22
match_unknown_default
@ match_unknown_default
Definition
icons.h:23
match_none
@ match_none
Definition
icons.h:19
match_icon_pixmap_hint
@ match_icon_pixmap_hint
Definition
icons.h:21
match_list
@ match_list
Definition
icons.h:20
ColorPair
Definition
ctwm.h:140
IconEntry
Definition
icons.h:60
IconEntry::w
int w
Definition
icons.h:62
IconEntry::twm_win
TwmWindow * twm_win
Definition
icons.h:63
IconEntry::y
int y
Definition
icons.h:62
IconEntry::next
struct IconEntry * next
Definition
icons.h:61
IconEntry::h
int h
Definition
icons.h:62
IconEntry::used
bool used
Definition
icons.h:64
IconEntry::x
int x
Definition
icons.h:62
IconRegion
Definition
icons.h:48
IconRegion::stepx
int stepx
Definition
icons.h:52
IconRegion::Alignement
IRAlignement Alignement
Definition
icons.h:55
IconRegion::Justification
IRJust Justification
Definition
icons.h:54
IconRegion::grav1
RegGravity grav1
Definition
icons.h:51
IconRegion::next
struct IconRegion * next
Definition
icons.h:49
IconRegion::h
int h
Definition
icons.h:50
IconRegion::entries
struct IconEntry * entries
Definition
icons.h:57
IconRegion::w
int w
Definition
icons.h:50
IconRegion::x
int x
Definition
icons.h:50
IconRegion::y
int y
Definition
icons.h:50
IconRegion::clientlist
name_list * clientlist
Definition
icons.h:56
IconRegion::stepy
int stepy
Definition
icons.h:52
IconRegion::grav2
RegGravity grav2
Definition
icons.h:51
IconRegion::TitleJustification
TitleJust TitleJustification
Definition
icons.h:53
Icon
Definition
icons.h:26
Icon::border_width
int border_width
Definition
icons.h:42
Icon::otp
OtpWinList * otp
Definition
icons.h:29
Icon::w_y
int w_y
Definition
icons.h:35
Icon::has_title
bool has_title
Definition
icons.h:44
Icon::w_not_ours
bool w_not_ours
Definition
icons.h:45
Icon::w_width
int w_width
Definition
icons.h:36
Icon::iconc
ColorPair iconc
Definition
icons.h:41
Icon::height
int height
Definition
icons.h:39
Icon::y
int y
Definition
icons.h:33
Icon::image
Image * image
Definition
icons.h:31
Icon::title_shrunk
bool title_shrunk
Definition
icons.h:44
Icon::w_height
int w_height
Definition
icons.h:37
Icon::w
Window w
Definition
icons.h:28
Icon::w_x
int w_x
Definition
icons.h:34
Icon::x
int x
Definition
icons.h:32
Icon::border
Pixel border
Definition
icons.h:40
Icon::ir
struct IconRegion * ir
Definition
icons.h:43
Icon::bm_w
Window bm_w
Definition
icons.h:30
Icon::width
int width
Definition
icons.h:38
Icon::match
Matchtype match
Definition
icons.h:27
Image
Definition
image.h:9
OtpWinList
Definition
otp.c:56
TwmWindow
Info and control for every X Window we take over.
Definition
twm_window_struct.h:34
name_list
Definition
list.h:20
icons.h
Generated by
1.18.0