]> Dogcows Code - chaz/tint2/blob - src/panel.h
New import
[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 // --------------------------------------------------
30 // always start with area
31 Area area;
32
33 // --------------------------------------------------
34 // backward compatibility
35 int old_config_file;
36 int old_task_icon;
37 int old_panel_background;
38 int old_task_background;
39 char *old_task_font;
40
41 // --------------------------------------------------
42 // panel
43 int signal_pending;
44 int sleep_mode;
45 int refresh;
46 int monitor;
47 int position;
48 int marginx, marginy;
49
50 // --------------------------------------------------
51 // taskbar point to the first taskbar in panel.area.list. number of tasbar == nb_desktop x nb_monitor.
52 //Taskbar *taskbar;
53 int mode;
54 int nb_desktop;
55 int nb_monitor;
56 Task *task_active;
57 Task *task_drag;
58
59 // --------------------------------------------------
60 // clock
61 Clock clock;
62
63 // --------------------------------------------------
64 // systray
65
66 // --------------------------------------------------
67 // mouse events
68 int mouse_middle;
69 int mouse_right;
70 int mouse_scroll_up;
71 int mouse_scroll_down;
72 } Panel;
73
74
75 Panel panel;
76
77
78 void visual_refresh ();
79 void set_panel_properties (Window win);
80 void window_draw_panel ();
81 void resize_clock();
82 void resize_taskbar();
83
84
85 #endif
This page took 0.04497 seconds and 5 git commands to generate.