~ubuntu-branches/ubuntu/precise/gnome-shell/precise

« back to all changes in this revision

Viewing changes to src/st/st-overflow-box.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2012-03-14 13:47:20 UTC
  • mfrom: (1.1.36) (18.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20120314134720-202sbjbu4a3z1fru
Tags: 3.3.90-0ubuntu1
* Sync with Debian experimental svn packaging (LP: #941755, #937709).
  Remaining changes:
  - debian/gnome-shell.gsettings-override: Update for Ubuntu defaults
  - debian/control.in: Recommend cups-pk-helper
  - debian/patches/10-make-NetworkManager-optional.patch: Disabled
  - Don't run dh-autoreconf

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
2
 
/*
3
 
 * st-overflow-box.h: A vertical box which paints as many actors as it can fit
4
 
 *
5
 
 * Copyright 2009 Red Hat, Inc.
6
 
 *
7
 
 * This program is free software; you can redistribute it and/or modify it
8
 
 * under the terms and conditions of the GNU Lesser General Public License,
9
 
 * version 2.1, as published by the Free Software Foundation.
10
 
 *
11
 
 * This program is distributed in the hope it will be useful, but WITHOUT ANY
12
 
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13
 
 * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for
14
 
 * more details.
15
 
 *
16
 
 * You should have received a copy of the GNU Lesser General Public License
17
 
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18
 
 */
19
 
 
20
 
#if !defined(ST_H_INSIDE) && !defined(ST_COMPILATION)
21
 
#error "Only <st/st.h> can be included directly.h"
22
 
#endif
23
 
 
24
 
#ifndef _ST_OVERFLOW_BOX_H
25
 
#define _ST_OVERFLOW_BOX_H
26
 
 
27
 
#include <st/st-box-layout.h>
28
 
 
29
 
G_BEGIN_DECLS
30
 
 
31
 
#define ST_TYPE_OVERFLOW_BOX st_overflow_box_get_type()
32
 
 
33
 
#define ST_OVERFLOW_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ST_TYPE_OVERFLOW_BOX, StOverflowBox))
34
 
#define ST_OVERFLOW_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ST_TYPE_OVERFLOW_BOX, StOverflowBoxClass))
35
 
#define ST_IS_OVERFLOW_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ST_TYPE_OVERFLOW_BOX))
36
 
#define ST_IS_OVERFLOW_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ST_TYPE_OVERFLOW_BOX))
37
 
#define ST_OVERFLOW_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ST_TYPE_OVERFLOW_BOX, StOverflowBoxClass))
38
 
 
39
 
typedef struct _StOverflowBox StOverflowBox;
40
 
typedef struct _StOverflowBoxClass StOverflowBoxClass;
41
 
typedef struct _StOverflowBoxPrivate StOverflowBoxPrivate;
42
 
 
43
 
/**
44
 
 * StOverflowBox:
45
 
 *
46
 
 * The contents of this structure are private and should only be accessed
47
 
 * through the public API.
48
 
 */
49
 
struct _StOverflowBox
50
 
{
51
 
  /*< private >*/
52
 
  StContainer parent;
53
 
 
54
 
  StOverflowBoxPrivate *priv;
55
 
};
56
 
 
57
 
struct _StOverflowBoxClass
58
 
{
59
 
  StContainerClass parent_class;
60
 
};
61
 
 
62
 
GType    st_overflow_box_get_type         (void);
63
 
 
64
 
void     st_overflow_box_set_min_children (StOverflowBox *self,  guint min_children);
65
 
guint    st_overflow_box_get_n_children   (StOverflowBox *box);
66
 
guint    st_overflow_box_get_n_visible    (StOverflowBox *box);
67
 
gboolean st_overflow_box_get_min_children (StOverflowBox *box);
68
 
 
69
 
G_END_DECLS
70
 
 
71
 
#endif /* _ST_OVERFLOW_BOX_H */