aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/text/e-entry.h
blob: 5abaf75e86e017ddd3d42ea87dd7ccdb82f76222 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
#ifndef _E_ENTRY_H_
#define _E_ENTRY_H_

#include <libgnomeui/gnome-canvas.h>
#include <gtk/gtktable.h>
#include <gnome-xml/tree.h>
#include <gal/e-text/e-text.h>

BEGIN_GNOME_DECLS

#define E_ENTRY_TYPE        (e_entry_get_type ())
#define E_ENTRY(o)          (GTK_CHECK_CAST ((o), E_ENTRY_TYPE, EEntry))
#define E_ENTRY_CLASS(k)    (GTK_CHECK_CLASS_CAST((k), E_ENTRY_TYPE, EEntryClass))
#define E_IS_ENTRY(o)       (GTK_CHECK_TYPE ((o), E_ENTRY_TYPE))
#define E_IS_ENTRY_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), E_ENTRY_TYPE))

typedef struct {
    GtkTable parent;
    
    GnomeCanvas *canvas;
    EText *item;
    GtkJustification justification;
} EEntry;

typedef struct {
    GtkTableClass parent_class;

    void (* changed) (EEntry *entry);
    void (* activate) (EEntry *entry);
} EEntryClass;

GtkType    e_entry_get_type             (void);

EEntry    *e_entry_construct            (EEntry *e_entry);
GtkWidget *e_entry_new                  (void);

END_GNOME_DECLS

#endif /* _E_ENTRY_H_ */