glade-palette-expander.h 3.27 KB
Newer Older
1
/*
2
 * glade-palette-expander.h - A container which can hide its child
3
 *
4
 * Copyright (C) 2007 Vincent Geddes
5
 *
6
 * Author: Vincent Geddes <vincent.geddes@gmail.com>
7
 *
8 9 10 11
 * 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.
12
 *
13
 * This program is distributed in the hope that it will be useful,
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
17
 *
18 19 20
 * 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 Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 22 23
 *
 */

24 25
#ifndef __GLADE_PALETTE_EXPANDER_H__
#define __GLADE_PALETTE_EXPANDER_H__
26 27 28 29 30

#include <gtk/gtkbin.h>

G_BEGIN_DECLS

31 32 33 34 35 36
#define GLADE_TYPE_PALETTE_EXPANDER              (glade_palette_expander_get_type ())
#define GLADE_PALETTE_EXPANDER(obj)              (G_TYPE_CHECK_INSTANCE_CAST ((obj), GLADE_TYPE_PALETTE_EXPANDER, GladePaletteExpander))
#define GLADE_PALETTE_EXPANDER_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), GLADE_TYPE_PALETTE_EXPANDER, GladePaletteExpanderClass))
#define GLADE_IS_PALETTE_EXPANDER(obj)           (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GLADE_TYPE_PALETTE_EXPANDER))
#define GLADE_IS_PALETTE_EXPANDER_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GLADE_TYPE_PALETTE_EXPANDER))
#define GLADE_PALETTE_EXPANDER_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), GLADE_TYPE_PALETTE_EXPANDER, GladePaletteExpanderClass))
37

38 39 40
typedef struct _GladePaletteExpander         GladePaletteExpander;
typedef struct _GladePaletteExpanderPrivate  GladePaletteExpanderPrivate;
typedef struct _GladePaletteExpanderClass    GladePaletteExpanderClass;
41 42 43

struct _GladePaletteExpander
{
44
	GtkBin parent_instance;
45

46
	GladePaletteExpanderPrivate *priv;
47 48 49 50
};

struct _GladePaletteExpanderClass
{
51 52 53
	GtkBinClass     parent_class;
	
	void         (* activate) (GladePaletteExpander *expander);
54 55 56
};


57
GType         glade_palette_expander_get_type         (void) G_GNUC_CONST;
58

59
GtkWidget    *glade_palette_expander_new              (const gchar          *label);
60

61 62 63 64
void          glade_palette_expander_set_expanded     (GladePaletteExpander *expander,
						       gboolean              expanded);
						       
gboolean      glade_palette_expander_get_expanded     (GladePaletteExpander *expander);
65

66 67 68 69
void          glade_palette_expander_set_spacing      (GladePaletteExpander *expander,
						       guint                 spacing);
						       
guint         glade_palette_expander_get_spacing      (GladePaletteExpander *expander);
70

71 72 73 74
void          glade_palette_expander_set_label        (GladePaletteExpander *expander,
						       const gchar          *label);
						        
const gchar  *glade_palette_expander_get_label        (GladePaletteExpander *expander);
75

76 77 78 79
void          glade_palette_expander_set_use_markup   (GladePaletteExpander *expander,
						       gboolean              use_markup);
						       
gboolean      glade_palette_expander_get_use_markup   (GladePaletteExpander *expander);
80 81 82 83


G_END_DECLS

84
#endif /* __GLADE_PALETTE_EXPANDER_H__ */