1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3
* gtk-combo-box.h - a customizable combobox
4
* Copyright 2000, 2001, Ximian, Inc.
7
* Miguel de Icaza <miguel@ximian.com>
9
* This library is free software; you can redistribute it and/or
10
* modify it under the terms of the GNU Library General Public
11
* License, version 2, as published by the Free Software Foundation.
13
* This library is distributed in the hope that it will be useful, but
14
* WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* Library General Public License for more details.
18
* You should have received a copy of the GNU Library General Public
19
* License along with this library; if not, write to the Free Software
20
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24
#ifndef GI_COMBO_BOX_H
25
#define GI_COMBO_BOX_H
31
#define GI_COMBO_BOX_TYPE (gi_combo_box_get_type())
32
#define GI_COMBO_BOX(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, gi_combo_box_get_type (), GiComboBox)
33
#define GI_COMBO_BOX_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, gi_combo_box_get_type (), GiComboBoxClass)
34
#define GI_IS_COMBO_BOX(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, gi_combo_box_get_type ())
36
typedef struct _GiComboBox GiComboBox;
37
typedef struct _GiComboBoxPrivate GiComboBoxPrivate;
38
typedef struct _GiComboBoxClass GiComboBoxClass;
42
GiComboBoxPrivate *priv;
45
struct _GiComboBoxClass {
46
GtkHBoxClass parent_class;
48
GtkWidget *(*pop_down_widget) (GiComboBox *cbox);
51
* invoked when the popup has been hidden, if the signal
52
* returns TRUE, it means it should be killed from the
54
gboolean *(*pop_down_done) (GiComboBox *cbox, GtkWidget *);
57
* Notification signals.
59
void (*pre_pop_down) (GiComboBox *cbox);
60
void (*post_pop_hide) (GiComboBox *cbox);
63
GType gi_combo_box_get_type (void);
64
void gi_combo_box_construct (GiComboBox *combo_box,
65
GtkWidget *display_widget,
66
GtkWidget *optional_pop_down_widget);
67
void gi_combo_box_get_pos (GiComboBox *combo_box, int *x, int *y);
69
GtkWidget *gi_combo_box_new (GtkWidget *display_widget,
70
GtkWidget *optional_pop_down_widget);
71
void gi_combo_box_popup_hide (GiComboBox *combo_box);
73
void gi_combo_box_set_display (GiComboBox *combo_box,
74
GtkWidget *display_widget);
76
void gi_combo_box_set_title (GiComboBox *combo,
79
void gi_combo_box_set_tearable (GiComboBox *combo,
81
void gi_combo_box_set_arrow_sensitive (GiComboBox *combo,
83
void gi_combo_box_set_arrow_relief (GiComboBox *cc,
84
GtkReliefStyle relief);