1
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
3
* st-overflow-box.h: A vertical box which paints as many actors as it can fit
5
* Copyright 2009 Red Hat, Inc.
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.
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
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/>.
20
#if !defined(ST_H_INSIDE) && !defined(ST_COMPILATION)
21
#error "Only <st/st.h> can be included directly.h"
24
#ifndef _ST_OVERFLOW_BOX_H
25
#define _ST_OVERFLOW_BOX_H
27
#include <st/st-box-layout.h>
31
#define ST_TYPE_OVERFLOW_BOX st_overflow_box_get_type()
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))
39
typedef struct _StOverflowBox StOverflowBox;
40
typedef struct _StOverflowBoxClass StOverflowBoxClass;
41
typedef struct _StOverflowBoxPrivate StOverflowBoxPrivate;
46
* The contents of this structure are private and should only be accessed
47
* through the public API.
54
StOverflowBoxPrivate *priv;
57
struct _StOverflowBoxClass
59
StContainerClass parent_class;
62
GType st_overflow_box_get_type (void);
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);
71
#endif /* _ST_OVERFLOW_BOX_H */