1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * mygal-combo-box.h - a customizable combobox
4 * Copyright 2000, 2001, Ximian, Inc.
7 * Miguel de Icaza <miguel@ximian.com>
9 * Modified for gLabels by:
10 * Jim Evins <evins@snaught.com>
12 * This library is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public
14 * License, version 2, as published by the Free Software Foundation.
16 * This library is distributed in the hope that it will be useful, but
17 * WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * General Public License for more details.
21 * You should have received a copy of the GNU General Public
22 * License along with this library; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 #ifndef _MYGAL_COMBO_BOX_H_
28 #define _MYGAL_COMBO_BOX_H_
30 #include <gtk/gtkhbox.h>
34 #endif /* __cplusplus */
36 #define MYGAL_COMBO_BOX_TYPE (mygal_combo_box_get_type())
37 #define MYGAL_COMBO_BOX(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, mygal_combo_box_get_type (), MygalComboBox)
38 #define MYGAL_COMBO_BOX_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, mygal_combo_box_get_type (), MygalComboBoxClass)
39 #define MYGAL_IS_COMBO_BOX(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, mygal_combo_box_get_type ())
41 typedef struct _MygalComboBox MygalComboBox;
42 typedef struct _MygalComboBoxPrivate MygalComboBoxPrivate;
43 typedef struct _MygalComboBoxClass MygalComboBoxClass;
45 struct _MygalComboBox {
47 MygalComboBoxPrivate *priv;
50 struct _MygalComboBoxClass {
51 GtkHBoxClass parent_class;
53 GtkWidget *(*pop_down_widget) (MygalComboBox *cbox);
56 * invoked when the popup has been hidden, if the signal
57 * returns TRUE, it means it should be killed from the
59 gboolean *(*pop_down_done) (MygalComboBox *cbox, GtkWidget *);
62 * Notification signals.
64 void (*pre_pop_down) (MygalComboBox *cbox);
65 void (*post_pop_hide) (MygalComboBox *cbox);
68 GtkType mygal_combo_box_get_type (void);
69 void mygal_combo_box_construct (MygalComboBox *combo_box,
70 GtkWidget *display_widget,
71 GtkWidget *optional_pop_down_widget);
72 void mygal_combo_box_get_pos (MygalComboBox *combo_box, int *x, int *y);
74 GtkWidget *mygal_combo_box_new (GtkWidget *display_widget,
75 GtkWidget *optional_pop_down_widget);
76 void mygal_combo_box_popup_hide (MygalComboBox *combo_box);
78 void mygal_combo_box_set_display (MygalComboBox *combo_box,
79 GtkWidget *display_widget);
81 void mygal_combo_box_set_title (MygalComboBox *combo,
84 void mygal_combo_box_set_tearable (MygalComboBox *combo,
86 void mygal_combo_box_set_arrow_sensitive (MygalComboBox *combo,
88 void mygal_combo_box_set_arrow_relief (MygalComboBox *cc,
89 GtkReliefStyle relief);
92 #endif /* __cplusplus */
94 #endif /* _MYGAL_COMBO_BOX_H_ */