]>
Dogcows Code - chaz/tint2/blob - src/panel.h
646d79671b156ea0eb3a76c5aa2cde860bebc51d
1 /**************************************************************************
2 * Copyright (C) 2008 Pål Staurland (staura@gmail.com)
3 * Modified (C) 2008/2009 thierry lorthiois (lorthiois@bbsoft.fr)
6 * - draw panel and all objects according to panel_layout
9 **************************************************************************/
14 #include <pango/pangocairo.h>
21 #include "systraybar.h"
28 extern int signal_pending
;
29 // --------------------------------------------------
31 extern int mouse_middle
;
32 extern int mouse_right
;
33 extern int mouse_scroll_up
;
34 extern int mouse_scroll_down
;
35 extern int mouse_tilt_left
;
36 extern int mouse_tilt_right
;
39 enum { SINGLE_DESKTOP
=0, MULTI_DESKTOP
};
40 extern int panel_mode
;
42 extern int panel_dock
;
45 enum { LEFT
=0x01, RIGHT
=0x02, CENTER
=0X04, TOP
=0X08, BOTTOM
=0x10 };
46 extern int panel_position
;
47 extern int panel_horizontal
;
49 extern int panel_refresh
;
51 extern Task
*task_active
;
52 extern Task
*task_drag
;
53 extern GSList
*urgent_list
;
54 extern int max_tick_urgent
;
56 extern Imlib_Image default_icon
;
59 // tint2 use one panel per monitor and one taskbar per desktop.
61 // always start with area
62 // area.list own all objects of the panel according to config file
65 // --------------------------------------------------
70 // position relative to root window
73 int pourcentx
, pourcenty
;
74 // location of the panel (monitor number)
77 // --------------------------------------------------
78 // task and taskbar parameter per panel
82 // --------------------------------------------------
83 // taskbar point to the first taskbar in panel.area.list.
84 // number of tasbar == nb_desktop. taskbar[i] is for desktop(i).
85 // taskbar[i] is used to loop over taskbar,
86 // while panel->area.list is used to loop over all panel's objects
90 // --------------------------------------------------
94 // --------------------------------------------------
102 extern Panel panel_config
;
103 extern Panel
*panel1
;
106 // realloc panels according to number of monitor
107 // use panel_config as default value
110 void init_panel_size_and_position(Panel
*panel
);
111 void cleanup_panel();
112 void resize_panel(void *obj
);
114 void set_panel_properties(Panel
*p
);
115 void visible_object();
117 // draw background panel
118 void set_panel_background(Panel
*p
);
120 // detect witch panel
121 Panel
*get_panel(Window win
);
123 Taskbar
*click_taskbar (Panel
*panel
, int x
, int y
);
124 Task
*click_task (Panel
*panel
, int x
, int y
);
125 int click_padding(Panel
*panel
, int x
, int y
);
126 int click_clock(Panel
*panel
, int x
, int y
);
127 Area
* click_area(Panel
*panel
, int x
, int y
);
This page took 0.037929 seconds and 4 git commands to generate.