Debian Codegraph @

systray/src/gtk3/na-tray.h

raw symbols SCIP
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /* na-tray-tray.h
3 * Copyright (C) 2002 Anders Carlsson <[email protected]>
4 * Copyright (C) 2003-2006 Vincent Untz
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
20 *
21 * Used to be: eggtraytray.h
22 */
23
24 #ifndef __NA_TRAY_H__
25 #define __NA_TRAY_H__
26
27 #ifdef GDK_WINDOWING_X11
28 #include <gdk/gdkx.h>
29 #endif
30 #include <gtk/gtk.h>
31
32 G_BEGIN_DECLS
33
34 #define NA_TYPE_TRAY (na_tray_get_type ())
35 #define NA_TRAY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NA_TYPE_TRAY, NaTray))
36 #define NA_TRAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NA_TYPE_TRAY, NaTrayClass))
37 #define NA_IS_TRAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NA_TYPE_TRAY))
38 #define NA_IS_TRAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NA_TYPE_TRAY))
39 #define NA_TRAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NA_TYPE_TRAY, NaTrayClass))
40
41 typedef struct _NaTray NaTray;
42 typedef struct _NaTrayPrivate NaTrayPrivate;
43 typedef struct _NaTrayClass NaTrayClass;
44
45 struct _NaTray
46 {
47 GtkBin parent_instance;
48
49 NaTrayPrivate *priv;
50 };
51
52 struct _NaTrayClass
53 {
54 GtkBinClass parent_class;
55 };
56
57 GType na_tray_get_type (void);
58 NaTray *na_tray_new_for_screen (GdkScreen *screen,
59 GtkOrientation orientation);
60 void na_tray_set_orientation (NaTray *tray,
61 GtkOrientation orientation);
62 GtkOrientation na_tray_get_orientation (NaTray *tray);
63 void na_tray_set_padding (NaTray *tray,
64 gint padding);
65 void na_tray_set_icon_size (NaTray *tray,
66 gint icon_size);
67 void na_tray_set_colors (NaTray *tray,
68 GdkColor *fg,
69 GdkColor *error,
70 GdkColor *warning,
71 GdkColor *success);
72 void na_tray_force_redraw (NaTray *tray);
73
74 G_END_DECLS
75
76 #endif /* __NA_TRAY_H__ */