~ubuntu-branches/ubuntu/trusty/gnome-documents/trusty

« back to all changes in this revision

Viewing changes to libgd/libgd/gd-revealer.h

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson, Thomas Bechtold
  • Date: 2013-04-04 13:32:08 UTC
  • mfrom: (3.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20130404133208-n19gqczi05z31ogb
Tags: 3.8.0-1
[ Thomas Bechtold ]
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (c) 2013 Red Hat, Inc.
 
3
 *
 
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.
 
8
 *
 
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.
 
13
 *
 
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
 
17
 *
 
18
 * Author: Alexander Larsson <alexl@redhat.com>
 
19
 *
 
20
 */
 
21
 
 
22
#ifndef __GD_REVEALER_H__
 
23
#define __GD_REVEALER_H__
 
24
 
 
25
#include <gtk/gtk.h>
 
26
 
 
27
G_BEGIN_DECLS
 
28
 
 
29
 
 
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))
 
36
 
 
37
typedef struct _GdRevealer GdRevealer;
 
38
typedef struct _GdRevealerClass GdRevealerClass;
 
39
typedef struct _GdRevealerPrivate GdRevealerPrivate;
 
40
 
 
41
struct _GdRevealer {
 
42
  GtkBin parent_instance;
 
43
  GdRevealerPrivate * priv;
 
44
};
 
45
 
 
46
struct _GdRevealerClass {
 
47
  GtkBinClass parent_class;
 
48
};
 
49
 
 
50
 
 
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,
 
55
                                                    gboolean        setting);
 
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,
 
61
                                                    gint            duration_msec);
 
62
 
 
63
gboolean       gd_revealer_get_child_revealed      (GdRevealer     *revealer);
 
64
 
 
65
 
 
66
G_END_DECLS
 
67
 
 
68
#endif