]> Dogcows Code - chaz/tint2/blob - src/panel.h
WM menu in left and right padding
[chaz/tint2] / src / panel.h
1 /**************************************************************************
2 * panel :
3 * - draw panel and all objects according to panel_layout
4 *
5 * Check COPYING file for Copyright
6 *
7 **************************************************************************/
8
9 #ifndef PANEL_H
10 #define PANEL_H
11
12 #include <pango/pangocairo.h>
13 #include <sys/time.h>
14
15 #include "common.h"
16 #include "clock.h"
17 #include "task.h"
18 #include "taskbar.h"
19
20
21 //panel mode
22 enum { SINGLE_DESKTOP=0, MULTI_DESKTOP, MULTI_MONITOR };
23
24 //panel alignment
25 enum { LEFT=0x01, RIGHT=0x02, CENTER=0X04, TOP=0X08, BOTTOM=0x10 };
26
27
28 typedef struct {
29 // always start with area
30 Area area;
31
32 // --------------------------------------------------
33 // backward compatibility
34 int old_config_file;
35 int old_task_icon;
36 int old_panel_background;
37 int old_task_background;
38 char *old_task_font;
39
40 // --------------------------------------------------
41 // panel
42 int signal_pending;
43 int sleep_mode;
44 int refresh;
45 int monitor;
46 int position;
47 int marginx, marginy;
48
49 // --------------------------------------------------
50 // taskbar point to the first taskbar in panel.area.list. number of tasbar == nb_desktop x nb_monitor.
51 Taskbar *taskbar;
52 int mode;
53 int nb_desktop;
54 int nb_monitor;
55 Task *task_active;
56 Task *task_drag;
57
58 // --------------------------------------------------
59 // clock
60 Clock clock;
61
62 // --------------------------------------------------
63 // systray
64
65 // --------------------------------------------------
66 // mouse events
67 int mouse_middle;
68 int mouse_right;
69 int mouse_scroll_up;
70 int mouse_scroll_down;
71 } Panel;
72
73
74 Panel panel;
75
76
77 void visual_refresh ();
78 void set_panel_properties (Window win);
79 void window_draw_panel ();
80 void visible_object();
81 void set_panel_background();
82
83 #endif
This page took 0.038622 seconds and 5 git commands to generate.