You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gnucash/lib/goffice/gui-utils/go-combo-text.h

33 lines
1.1 KiB

/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
#ifndef GO_COMBO_TEXT_H
#define GO_COMBO_TEXT_H
#include <gtk/gtkwidget.h>
G_BEGIN_DECLS
#define GO_TYPE_COMBO_TEXT (go_combo_text_get_type ())
#define GO_COMBO_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, GO_TYPE_COMBO_TEXT, GoComboText))
#define IS_GO_COMBO_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE (obj, GO_TYPE_COMBO_TEXT))
typedef struct _GoComboText GoComboText;
typedef enum { /* begin the search from : */
GO_COMBO_TEXT_FROM_TOP, /* the top of the list */
GO_COMBO_TEXT_CURRENT, /* the current selection */
GO_COMBO_TEXT_NEXT /* the next element after current */
} GoComboTextSearch;
GType go_combo_text_get_type (void);
GtkWidget *go_combo_text_new (GCompareFunc cmp_func);
GtkWidget *go_combo_text_glade_new (void);
GtkWidget *go_combo_text_get_entry (GoComboText *ct);
gboolean go_combo_text_set_text (GoComboText *ct, const gchar *label,
GoComboTextSearch start);
void go_combo_text_add_item (GoComboText *ct, const gchar *label);
G_END_DECLS
#endif /* GO_COMBO_TEXT_H */