2
* Copyright (c) 2013 Red Hat, Inc.
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU Lesser General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or (at your
7
* option) any later version.
9
* This program is distributed in the hope that it will be useful, but
10
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
12
* License for more details.
14
* You should have received a copy of the GNU Lesser General Public License
15
* along with this program; if not, write to the Free Software Foundation,
16
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
* Author: Alexander Larsson <alexl@redhat.com>
22
#ifndef __GD_REVEALER_H__
23
#define __GD_REVEALER_H__
30
#define GD_TYPE_REVEALER (gd_revealer_get_type ())
31
#define GD_REVEALER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GD_TYPE_REVEALER, GdRevealer))
32
#define GD_REVEALER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GD_TYPE_REVEALER, GdRevealerClass))
33
#define GD_IS_REVEALER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GD_TYPE_REVEALER))
34
#define GD_IS_REVEALER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GD_TYPE_REVEALER))
35
#define GD_REVEALER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GD_TYPE_REVEALER, GdRevealerClass))
37
typedef struct _GdRevealer GdRevealer;
38
typedef struct _GdRevealerClass GdRevealerClass;
39
typedef struct _GdRevealerPrivate GdRevealerPrivate;
42
GtkBin parent_instance;
43
GdRevealerPrivate * priv;
46
struct _GdRevealerClass {
47
GtkBinClass parent_class;
51
GType gd_revealer_get_type (void) G_GNUC_CONST;
52
GtkWidget* gd_revealer_new (void);
53
gboolean gd_revealer_get_reveal_child (GdRevealer *revealer);
54
void gd_revealer_set_reveal_child (GdRevealer *revealer,
56
GtkOrientation gd_revealer_get_orientation (GdRevealer *revealer);
57
void gd_revealer_set_orientation (GdRevealer *revealer,
58
GtkOrientation value);
59
gint gd_revealer_get_transition_duration (GdRevealer *revealer);
60
void gd_revealer_set_transition_duration (GdRevealer *revealer,
63
gboolean gd_revealer_get_child_revealed (GdRevealer *revealer);