Introspection: add col/row manipulations
[gnumeric.git] / src / complete.h
blob0196d2e299b6468b6ca730a3a1ac38d9aeed0318
1 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 #ifndef _GNM_COMPLETE_H_
3 # define _GNM_COMPLETE_H_
5 #include <glib-object.h>
6 #include <gnumeric-fwd.h>
8 G_BEGIN_DECLS
10 #define GNM_COMPLETE_TYPE (gnm_complete_get_type ())
11 #define GNM_COMPLETE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GNM_COMPLETE_TYPE, GnmComplete))
12 #define GNM_COMPLETE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GNM_COMPLETE_TYPE, GnmCompleteClass))
13 #define GNM_IS_COMPLETE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNM_COMPLETE_TYPE))
15 typedef void (*GnmCompleteMatchNotifyFn) (char const *text, void *closure);
17 struct GnmComplete_ {
18 GObject parent;
20 GnmCompleteMatchNotifyFn notify;
21 void *notify_closure;
23 char *text;
25 guint idle_tag;
28 typedef struct {
29 GObjectClass parent_class;
31 void (*start_over) (GnmComplete *complete);
32 gboolean (*search_iteration) (GnmComplete *complete);
33 } GnmCompleteClass;
35 void gnm_complete_construct (GnmComplete *complete,
36 GnmCompleteMatchNotifyFn notify,
37 void *notify_closure);
38 void gnm_complete_start (GnmComplete *complete, char const *text);
39 GType gnm_complete_get_type (void);
41 G_END_DECLS
43 #endif /* _GNM_COMPLETE_H_ */