1 /* GTK - The GIMP Toolkit
2 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
19 #ifndef __GTK_EDIT_H__
20 #define __GTK_EDIT_H__
24 #include <gtk/gtkadjustment.h>
25 #include <gtk/gtkeditable.h>
26 #if ! defined (MIDNIGHT) && ! defined (GTK)
27 #include <gtkedit/mousemark.h>
32 #endif /* __cplusplus */
35 #define GTK_EDIT(obj) GTK_CHECK_CAST (obj, gtk_edit_get_type (), GtkEdit)
36 #define GTK_EDIT_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_edit_get_type (), GtkEditClass)
37 #define GTK_IS_EDIT(obj) GTK_CHECK_TYPE (obj, gtk_edit_get_type ())
40 typedef struct _GtkEdit GtkEdit
;
41 typedef struct _GtkEditClass GtkEditClass
;
49 GtkWidget
*menubar
, *status
;
60 void (*destroy_me
) (GtkWidget
*);
61 GtkWidget
*destroy_me_user_data
;
62 struct editor_widget
*editor
;
69 GtkEditableClass parent_class
;
73 guint
gtk_edit_get_type (void);
74 GtkWidget
* gtk_edit_new (GtkAdjustment
*hadj
,
76 void gtk_edit_set_editable (GtkEdit
*text
,
78 void gtk_edit_set_word_wrap (GtkEdit
*text
,
80 void gtk_edit_set_adjustments (GtkEdit
*text
,
83 void gtk_edit_set_point (GtkEdit
*text
,
85 guint
gtk_edit_get_point (GtkEdit
*text
);
86 guint
gtk_edit_get_length (GtkEdit
*text
);
87 void gtk_edit_freeze (GtkEdit
*text
);
88 void gtk_edit_thaw (GtkEdit
*text
);
89 void gtk_edit_insert (GtkEdit
*text
,
95 gint
gtk_edit_backward_delete (GtkEdit
*text
,
97 gint
gtk_edit_forward_delete (GtkEdit
*text
,
101 char *gtk_edit_dialog_get_load_file (guchar
* directory
, guchar
* file
, guchar
* heading
);
102 char *gtk_edit_dialog_get_save_file (guchar
* directory
, guchar
* file
, guchar
* heading
);
103 void gtk_edit_dialog_error (guchar
* heading
, char *fmt
,...);
104 void gtk_edit_dialog_message (guchar
* heading
, char *fmt
,...);
105 int gtk_edit_dialog_query (guchar
* heading
, guchar
* first
,...);
111 #endif /* __cplusplus */
114 #endif /* __GTK_EDIT_H__ */