2
* Copyright (C) 2009 Nick Schermer <nick@xfce.org>
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License along
15
* with this program; if not, write to the Free Software Foundation, Inc.,
16
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
#ifndef __PANEL_BASE_WINDOW_H__
20
#define __PANEL_BASE_WINDOW_H__
26
typedef struct _PanelBaseWindowClass PanelBaseWindowClass;
27
typedef struct _PanelBaseWindow PanelBaseWindow;
28
typedef struct _PanelBaseWindowPrivate PanelBaseWindowPrivate;
29
typedef enum _PanelBorders PanelBorders;
30
typedef enum _PanelBgStyle PanelBgStyle;
32
#define PANEL_TYPE_BASE_WINDOW (panel_base_window_get_type ())
33
#define PANEL_BASE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PANEL_TYPE_BASE_WINDOW, PanelBaseWindow))
34
#define PANEL_BASE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PANEL_TYPE_BASE_WINDOW, PanelBaseWindowClass))
35
#define PANEL_IS_BASE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PANEL_TYPE_BASE_WINDOW))
36
#define PANEL_IS_BASE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PANEL_TYPE_BASE_WINDOW))
37
#define PANEL_BASE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PANEL_TYPE_BASE_WINDOW, PanelBaseWindowClass))
41
PANEL_BORDER_NONE = 0,
42
PANEL_BORDER_LEFT = 1 << 0,
43
PANEL_BORDER_RIGHT = 1 << 1,
44
PANEL_BORDER_TOP = 1 << 2,
45
PANEL_BORDER_BOTTOM = 1 << 3
55
struct _PanelBaseWindowClass
57
GtkWindowClass __parent__;
60
struct _PanelBaseWindow
65
PanelBaseWindowPrivate *priv;
67
guint is_composited : 1;
69
gdouble background_alpha;
70
PanelBgStyle background_style;
71
GdkColor *background_color;
72
gchar *background_image;
75
GType panel_base_window_get_type (void) G_GNUC_CONST;
77
void panel_base_window_move_resize (PanelBaseWindow *window,
83
void panel_base_window_set_borders (PanelBaseWindow *window,
84
PanelBorders borders);
85
PanelBorders panel_base_window_get_borders (PanelBaseWindow *window);
87
void panel_base_window_set_active (PanelBaseWindow *window,
90
void panel_util_set_source_rgba (cairo_t *cr,
91
const GdkColor *color,
96
#endif /* !__PANEL_BASE_WINDOW_H__ */