summaryrefslogtreecommitdiff
path: root/shell/panel.h
blob: 957fd9ddb864f5191a622e54e609d551ee05b6d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/*
 * Copyright (C) 2014 Collabora Ltd.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public
 * License along with this program; if not, write to the
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
 * Boston, MA  02110-1301  USA
 *
 * Author: Jonny Lamb <jonny.lamb@collabora.co.uk>
 */

#ifndef __MAYNARD_PANEL_H__
#define __MAYNARD_PANEL_H__

#include <gtk/gtk.h>

#define MAYNARD_PANEL_TYPE                 (maynard_panel_get_type ())
#define MAYNARD_PANEL(obj)                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), MAYNARD_PANEL_TYPE, MaynardPanel))
#define MAYNARD_PANEL_CLASS(klass)         (G_TYPE_CHECK_CLASS_CAST ((klass), MAYNARD_PANEL_TYPE, MaynardPanelClass))
#define MAYNARD_IS_PANEL(obj)              (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MAYNARD_PANEL_TYPE))
#define MAYNARD_IS_PANEL_CLASS(klass)      (G_TYPE_CHECK_CLASS_TYPE ((klass), MAYNARD_PANEL_TYPE))
#define MAYNARD_PANEL_GET_CLASS(obj)       (G_TYPE_INSTANCE_GET_CLASS ((obj), MAYNARD_PANEL_TYPE, MaynardPanelClass))

typedef struct MaynardPanel MaynardPanel;
typedef struct MaynardPanelClass MaynardPanelClass;
typedef struct MaynardPanelPrivate MaynardPanelPrivate;

struct MaynardPanel
{
  GtkWindow parent;

  MaynardPanelPrivate *priv;
};

struct MaynardPanelClass
{
  GtkWindowClass parent_class;
};

#define MAYNARD_PANEL_WIDTH 56
#define MAYNARD_PANEL_HEIGHT_RATIO 0.73

typedef enum {
  MAYNARD_PANEL_BUTTON_NONE,
  MAYNARD_PANEL_BUTTON_SYSTEM,
  MAYNARD_PANEL_BUTTON_VOLUME
} MaynardPanelButton;

GType maynard_panel_get_type (void) G_GNUC_CONST;

GtkWidget * maynard_panel_new (void);

void maynard_panel_set_expand (MaynardPanel *self, gboolean expand);

void maynard_panel_show_previous (MaynardPanel *self, MaynardPanelButton button);

void maynard_panel_set_volume_icon_name (MaynardPanel *self,
    const gchar *icon_name);

#endif /* __MAYNARD_PANEL_H__ */