• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

go-combo-box.h

Go to the documentation of this file.
00001 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
00002 /*
00003  * gtk-combo-box.h - a customizable combobox
00004  * Copyright 2000, 2001, Ximian, Inc.
00005  *
00006  * Authors:
00007  *   Miguel de Icaza <miguel@ximian.com>
00008  *
00009  * This library is free software; you can redistribute it and/or
00010  * modify it under the terms of the GNU Library General Public
00011  * License, version 2, as published by the Free Software Foundation.
00012  *
00013  * This library is distributed in the hope that it will be useful, but
00014  * WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016  * Library General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Library General Public
00019  * License along with this library; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
00021  * USA.
00022  */
00023 
00024 #ifndef _GO_COMBO_BOX_H_
00025 #define _GO_COMBO_BOX_H_
00026 
00027 #include <gtk/gtk.h>
00028 
00029 G_BEGIN_DECLS
00030 
00031 #define GO_TYPE_COMBO_BOX   (go_combo_box_get_type())
00032 #define GO_COMBO_BOX(o)     G_TYPE_CHECK_INSTANCE_CAST ((o), GO_TYPE_COMBO_BOX, GOComboBox)
00033 #define GO_IS_COMBO_BOX(o)  G_TYPE_CHECK_INSTANCE_TYPE ((o), GO_TYPE_COMBO_BOX)
00034 #define GO_COMBO_BOX_CLASS(k)   G_TYPE_CHECK_CLASS_CAST ((k), GO_TYPE_COMBO_BOX, GOComboBoxClass)
00035 
00036 typedef struct _GOComboBox    GOComboBox;
00037 typedef struct _GOComboBoxPrivate GOComboBoxPrivate;
00038 typedef struct _GOComboBoxClass   GOComboBoxClass;
00039 
00040 struct _GOComboBox {
00041     GtkHBox hbox;
00042     GOComboBoxPrivate *priv;
00043 };
00044 
00045 struct _GOComboBoxClass {
00046     GtkHBoxClass    base;
00047 
00048     /* virtual */
00049     void  (*set_title) (GOComboBox *cbox, char const *title);
00050 
00051     /* invoked when the popup has been hidden, if the signal
00052      * returns TRUE, it means it should be killed */
00053     gboolean   (*pop_down_done)   (GOComboBox *cbox, GtkWidget *);
00054 };
00055 
00056 /* public */
00057 GType       go_combo_box_get_type     (void);
00058 void        go_combo_box_set_tooltip  (GOComboBox *combo, void *tips,
00059                        char const *text, char const *priv_text);
00060 void        go_combo_box_set_relief   (GOComboBox *combo, GtkReliefStyle relief);
00061 void        go_combo_box_set_title    (GOComboBox *combo, char const *title);
00062 char const *go_combo_box_get_title    (GOComboBox *combo);
00063 void        go_combo_box_set_tearable (GOComboBox *combo, gboolean tearable);
00064 
00065 /* protected */
00066 void go_combo_box_construct (GOComboBox *combo,
00067                  GtkWidget  *display_widget,
00068                  GtkWidget  *popdown_container,
00069                  GtkWidget  *popdown_focus);
00070 void go_combo_box_get_pos   (GOComboBox *combo, int *x, int *y);
00071 void go_combo_box_popup_hide    (GOComboBox *combo);
00072 void go_combo_box_popup_display (GOComboBox *combo);
00073 void go_combo_box_set_display   (GOComboBox *combo,
00074                  GtkWidget *display_widget);
00075 gboolean _go_combo_is_updating (GOComboBox const *combo);
00076 
00077 G_END_DECLS
00078 
00079 #endif /* _GO_COMBO_BOX_H_ */

Generated on Wed Mar 5 2014 for AbiWord by  doxygen 1.7.1