JWM Source Documentation
border.h
Go to the documentation of this file.
1 
10 #ifndef BORDER_H
11 #define BORDER_H
12 
13 #include "gradient.h"
14 
15 struct ClientNode;
16 struct ClientState;
17 
19 typedef unsigned char BorderIconType;
20 #define BI_CLOSE 0
21 #define BI_MAX 1
22 #define BI_MAX_ACTIVE 2
23 #define BI_MENU 3
24 #define BI_MIN 4
25 #define BI_COUNT 5
26 
28 typedef unsigned char BorderActionType;
29 #define BA_NONE 0
30 #define BA_RESIZE 1
31 #define BA_MOVE 2
32 #define BA_CLOSE 3
33 #define BA_MAXIMIZE 4
34 #define BA_MINIMIZE 5
35 #define BA_MENU 6
36 #define BA_RESIZE_N 0x10
37 #define BA_RESIZE_S 0x20
38 #define BA_RESIZE_E 0x40
39 #define BA_RESIZE_W 0x80
42 void InitializeBorders(void);
43 void StartupBorders(void);
44 #define ShutdownBorders() (void)(0)
45 void DestroyBorders(void);
54 BorderActionType GetBorderActionType(const struct ClientNode *np, int x, int y);
55 
59 void ResetBorder(const struct ClientNode *np);
60 
64 void DrawBorder(struct ClientNode *np);
65 
69 int GetBorderIconSize(void);
70 
72 unsigned GetTitleHeight(void);
73 
81 void GetBorderSize(const struct ClientState *state,
82  int *north, int *south, int *east, int *west);
83 
85 void ExposeCurrentDesktop(void);
86 
96 void DrawRoundedRectangle(Drawable d, GC gc, int x, int y,
97  int width, int height, int radius);
98 
100 void SetBorderIcon(BorderIconType t, const char *name);
101 
102 #endif /* BORDER_H */
103 

joewing.net / Projects / JWM