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