PATH:
usr
/
include
/
gtk-2.0
/
gtk
/* GTK - The GIMP Toolkit * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ /* * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS * file for a list of people on the GTK+ Team. See the ChangeLog * files for a list of changes. These files are distributed with * GTK+ at ftp://ftp.gtk.org/pub/gtk/. */ #ifdef GTK_ENABLE_BROKEN #ifndef __GTK_TEXT_H__ #define __GTK_TEXT_H__ #include <gtk/gtkoldeditable.h> G_BEGIN_DECLS #define GTK_TYPE_TEXT (gtk_text_get_type ()) #define GTK_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TEXT, GtkText)) #define GTK_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TEXT, GtkTextClass)) #define GTK_IS_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TEXT)) #define GTK_IS_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TEXT)) #define GTK_TEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TEXT, GtkTextClass)) typedef struct _GtkTextFont GtkTextFont; typedef struct _GtkPropertyMark GtkPropertyMark; typedef struct _GtkText GtkText; typedef struct _GtkTextClass GtkTextClass; struct _GtkPropertyMark { /* Position in list. */ GList* property; /* Offset into that property. */ guint offset; /* Current index. */ guint index; }; struct _GtkText { GtkOldEditable old_editable; GdkWindow *text_area; GtkAdjustment *hadj; GtkAdjustment *vadj; GdkGC *gc; GdkPixmap* line_wrap_bitmap; GdkPixmap* line_arrow_bitmap; /* GAPPED TEXT SEGMENT */ /* The text, a single segment of text a'la emacs, with a gap * where insertion occurs. */ union { GdkWChar *wc; guchar *ch; } text; /* The allocated length of the text segment. */ guint text_len; /* The gap position, index into address where a char * should be inserted. */ guint gap_position; /* The gap size, s.t. *(text + gap_position + gap_size) is * the first valid character following the gap. */ guint gap_size; /* The last character position, index into address where a * character should be appeneded. Thus, text_end - gap_size * is the length of the actual data. */ guint text_end; /* LINE START CACHE */ /* A cache of line-start information. Data is a LineParam*. */ GList *line_start_cache; /* Index to the start of the first visible line. */ guint first_line_start_index; /* The number of pixels cut off of the top line. */ guint first_cut_pixels; /* First visible horizontal pixel. */ guint first_onscreen_hor_pixel; /* First visible vertical pixel. */ guint first_onscreen_ver_pixel; /* FLAGS */ /* True iff this buffer is wrapping lines, otherwise it is using a * horizontal scrollbar. */ guint line_wrap : 1; guint word_wrap : 1; /* If a fontset is supplied for the widget, use_wchar become true, * and we use GdkWchar as the encoding of text. */ guint use_wchar : 1; /* Frozen, don't do updates. @@@ fixme */ guint freeze_count; /* TEXT PROPERTIES */ /* A doubly-linked-list containing TextProperty objects. */ GList *text_properties; /* The end of this list. */ GList *text_properties_end; /* The first node before or on the point along with its offset to * the point and the buffer's current point. This is the only * PropertyMark whose index is guaranteed to remain correct * following a buffer insertion or deletion. */ GtkPropertyMark point; /* SCRATCH AREA */ union { GdkWChar *wc; guchar *ch; } scratch_buffer; guint scratch_buffer_len; /* SCROLLING */ gint last_ver_value; /* CURSOR */ gint cursor_pos_x; /* Position of cursor. */ gint cursor_pos_y; /* Baseline of line cursor is drawn on. */ GtkPropertyMark cursor_mark; /* Where it is in the buffer. */ GdkWChar cursor_char; /* Character to redraw. */ gchar cursor_char_offset; /* Distance from baseline of the font. */ gint cursor_virtual_x; /* Where it would be if it could be. */ gint cursor_drawn_level; /* How many people have undrawn. */ /* Current Line */ GList *current_line; /* Tab Stops */ GList *tab_stops; gint default_tab_width; GtkTextFont *current_font; /* Text font for current style */ /* Timer used for auto-scrolling off ends */ gint timer; guint button; /* currently pressed mouse button */ GdkGC *bg_gc; /* gc for drawing background pixmap */ }; struct _GtkTextClass { GtkOldEditableClass parent_class; void (*set_scroll_adjustments) (GtkText *text, GtkAdjustment *hadjustment, GtkAdjustment *vadjustment); }; GType gtk_text_get_type (void) G_GNUC_CONST; GtkWidget* gtk_text_new (GtkAdjustment *hadj, GtkAdjustment *vadj); void gtk_text_set_editable (GtkText *text, gboolean editable); void gtk_text_set_word_wrap (GtkText *text, gboolean word_wrap); void gtk_text_set_line_wrap (GtkText *text, gboolean line_wrap); void gtk_text_set_adjustments (GtkText *text, GtkAdjustment *hadj, GtkAdjustment *vadj); void gtk_text_set_point (GtkText *text, guint index); guint gtk_text_get_point (GtkText *text); guint gtk_text_get_length (GtkText *text); void gtk_text_freeze (GtkText *text); void gtk_text_thaw (GtkText *text); void gtk_text_insert (GtkText *text, GdkFont *font, const GdkColor *fore, const GdkColor *back, const char *chars, gint length); gboolean gtk_text_backward_delete (GtkText *text, guint nchars); gboolean gtk_text_forward_delete (GtkText *text, guint nchars); #define GTK_TEXT_INDEX(t, index) (((t)->use_wchar) \ ? ((index) < (t)->gap_position ? (t)->text.wc[index] : \ (t)->text.wc[(index)+(t)->gap_size]) \ : ((index) < (t)->gap_position ? (t)->text.ch[index] : \ (t)->text.ch[(index)+(t)->gap_size])) G_END_DECLS #endif /* __GTK_TEXT_H__ */ #endif /* GTK_ENABLE_BROKEN */
[+]
..
[-] gtkspinbutton.h
[edit]
[-] gtktreeview.h
[edit]
[-] gtkscrollbar.h
[edit]
[-] gtkhsv.h
[edit]
[-] gtkmodules.h
[edit]
[-] gtkicontheme.h
[edit]
[-] gtkbin.h
[edit]
[-] gtkaccellabel.h
[edit]
[-] gtkobject.h
[edit]
[-] gtkcolorbutton.h
[edit]
[-] gtksizegroup.h
[edit]
[-] gtkvruler.h
[edit]
[-] gtkaccessible.h
[edit]
[-] gtkselection.h
[edit]
[-] gtkctree.h
[edit]
[-] gtktreemodelfilter.h
[edit]
[-] gtkwindow.h
[edit]
[-] gtktipsquery.h
[edit]
[-] gtkfontsel.h
[edit]
[-] gtktooltips.h
[edit]
[-] gtkcombo.h
[edit]
[-] gtkactiongroup.h
[edit]
[-] gtkseparator.h
[edit]
[-] gtktoolitemgroup.h
[edit]
[-] gtkimcontext.h
[edit]
[-] gtktearoffmenuitem.h
[edit]
[-] gtktoolshell.h
[edit]
[-] gtkcelllayout.h
[edit]
[-] gtkstatusicon.h
[edit]
[-] gtkenums.h
[edit]
[-] gtkversion.h
[edit]
[-] gtkradiomenuitem.h
[edit]
[-] gtkprintcontext.h
[edit]
[-] gtkpaned.h
[edit]
[-] gtktextdisplay.h
[edit]
[-] gtkruler.h
[edit]
[-] gtkmarshal.h
[edit]
[-] gtkscale.h
[edit]
[-] gtktestutils.h
[edit]
[-] gtkcellrendererpixbuf.h
[edit]
[-] gtktreeitem.h
[edit]
[-] gtkstock.h
[edit]
[-] gtkvscrollbar.h
[edit]
[-] gtkrecentchooser.h
[edit]
[-] gtkiconfactory.h
[edit]
[-] gtkscrolledwindow.h
[edit]
[-] gtkradiotoolbutton.h
[edit]
[-] gtkassistant.h
[edit]
[-] gtkitem.h
[edit]
[-] gtkuimanager.h
[edit]
[-] gtktable.h
[edit]
[-] gtkplug.h
[edit]
[-] gtktextchild.h
[edit]
[-] gtksocket.h
[edit]
[-] gtkvbbox.h
[edit]
[-] gtktypebuiltins.h
[edit]
[-] gtkfilechooserwidget.h
[edit]
[-] gtktextbuffer.h
[edit]
[-] gtkaccelgroup.h
[edit]
[-] gtkrecentchooserwidget.h
[edit]
[-] gtktoolpalette.h
[edit]
[-] gtktoolbutton.h
[edit]
[-] gtkcellrendererprogress.h
[edit]
[-] gtkaboutdialog.h
[edit]
[-] gtkwidget.h
[edit]
[-] gtkfilefilter.h
[edit]
[-] gtkcomboboxtext.h
[edit]
[-] gtkimcontextsimple.h
[edit]
[-] gtkaction.h
[edit]
[-] gtkbbox.h
[edit]
[-] gtkprogressbar.h
[edit]
[-] gtktreestore.h
[edit]
[-] gtkinvisible.h
[edit]
[-] gtklinkbutton.h
[edit]
[-] gtkprintoperation.h
[edit]
[-] gtkrc.h
[edit]
[-] gtkcheckmenuitem.h
[edit]
[-] gtkspinner.h
[edit]
[-] gtkmenu.h
[edit]
[-] gtktextview.h
[edit]
[-] gtkinputdialog.h
[edit]
[-] gtkentrycompletion.h
[edit]
[-] gtk.h
[edit]
[-] gtktoggletoolbutton.h
[edit]
[-] gtkeditable.h
[edit]
[-] gtkcheckbutton.h
[edit]
[-] gtkoldeditable.h
[edit]
[-] gtkstatusbar.h
[edit]
[-] gtkgamma.h
[edit]
[-] gtkstyle.h
[edit]
[-] gtktoolbar.h
[edit]
[-] gtkalignment.h
[edit]
[-] gtkmountoperation.h
[edit]
[-] gtkfilesel.h
[edit]
[-] gtktexttagtable.h
[edit]
[-] gtkcellrenderertext.h
[edit]
[-] gtkhbbox.h
[edit]
[-] gtktreeselection.h
[edit]
[-] gtkbutton.h
[edit]
[-] gtkentry.h
[edit]
[-] gtkliststore.h
[edit]
[-] gtkhbox.h
[edit]
[-] gtkbindings.h
[edit]
[-] gtkvolumebutton.h
[edit]
[-] gtkseparatormenuitem.h
[edit]
[-] gtklistitem.h
[edit]
[-] gtkfontbutton.h
[edit]
[-] gtktreeviewcolumn.h
[edit]
[-] gtkcellview.h
[edit]
[-] gtkcolorseldialog.h
[edit]
[-] gtktypeutils.h
[edit]
[-] gtkimagemenuitem.h
[edit]
[-] gtktext.h
[edit]
[-] gtkfilechooserbutton.h
[edit]
[-] gtkimmodule.h
[edit]
[-] gtkdrawingarea.h
[edit]
[-] gtktreesortable.h
[edit]
[-] gtkcellrenderer.h
[edit]
[-] gtkmain.h
[edit]
[-] gtkpreview.h
[edit]
[-] gtkhandlebox.h
[edit]
[-] gtktreemodel.h
[edit]
[-] gtktextlayout.h
[edit]
[-] gtkshow.h
[edit]
[-] gtkseparatortoolitem.h
[edit]
[-] gtkrecentchoosermenu.h
[edit]
[-] gtkmessagedialog.h
[edit]
[-] gtkbox.h
[edit]
[-] gtktextiter.h
[edit]
[-] gtkimmulticontext.h
[edit]
[-] gtkcellrenderercombo.h
[edit]
[-] gtkeventbox.h
[edit]
[-] gtkadjustment.h
[edit]
[-] gtkradioaction.h
[edit]
[-] gtksignal.h
[edit]
[-] gtkcellrendererspinner.h
[edit]
[-] gtkcolorsel.h
[edit]
[-] gtkcellrendererspin.h
[edit]
[-] gtkhscale.h
[edit]
[-] gtkitemfactory.h
[edit]
[-] gtkhpaned.h
[edit]
[-] gtkpapersize.h
[edit]
[-] gtktoggleaction.h
[edit]
[-] gtkcontainer.h
[edit]
[-] gtkrecentfilter.h
[edit]
[-] gtkhscrollbar.h
[edit]
[-] gtktree.h
[edit]
[-] gtkfilechooserdialog.h
[edit]
[-] gtkdnd.h
[edit]
[-] gtklayout.h
[edit]
[-] gtktextbufferrichtext.h
[edit]
[-] gtkdialog.h
[edit]
[-] gtkexpander.h
[edit]
[-] gtkprintsettings.h
[edit]
[-] gtkcelleditable.h
[edit]
[-] gtkaspectframe.h
[edit]
[-] gtkclipboard.h
[edit]
[-] gtkframe.h
[edit]
[-] gtkmenushell.h
[edit]
[-] gtkpixmap.h
[edit]
[-] gtkoffscreenwindow.h
[edit]
[-] gtktexttag.h
[edit]
[-] gtkmenubar.h
[edit]
[-] gtkoptionmenu.h
[edit]
[-] gtkhseparator.h
[edit]
[-] gtkrecentmanager.h
[edit]
[-] gtkmenutoolbutton.h
[edit]
[-] gtkaccelmap.h
[edit]
[-] gtkpagesetup.h
[edit]
[-] gtkdebug.h
[edit]
[-] gtkvseparator.h
[edit]
[-] gtkimage.h
[edit]
[-] gtkcellrendereraccel.h
[edit]
[-] gtkbuilder.h
[edit]
[-] gtktogglebutton.h
[edit]
[-] gtktextmark.h
[edit]
[-] gtkfilechooser.h
[edit]
[-] gtkcombobox.h
[edit]
[-] gtksettings.h
[edit]
[-] gtkrecentchooserdialog.h
[edit]
[-] gtkhruler.h
[edit]
[-] gtklabel.h
[edit]
[-] gtklist.h
[edit]
[-] gtkvbox.h
[edit]
[-] gtkmenuitem.h
[edit]
[-] gtkprintoperationpreview.h
[edit]
[-] gtkprogress.h
[edit]
[-] gtkcalendar.h
[edit]
[-] gtkgc.h
[edit]
[-] gtkrange.h
[edit]
[-] gtkvscale.h
[edit]
[-] gtkvpaned.h
[edit]
[-] gtkinfobar.h
[edit]
[-] gtkradiobutton.h
[edit]
[-] gtkentrybuffer.h
[edit]
[-] gtktoolitem.h
[edit]
[-] gtkbuildable.h
[edit]
[-] gtkprivate.h
[edit]
[-] gtkscalebutton.h
[edit]
[-] gtkactivatable.h
[edit]
[-] gtkcomboboxentry.h
[edit]
[-] gtkarrow.h
[edit]
[-] gtkorientable.h
[edit]
[-] gtkcellrenderertoggle.h
[edit]
[-] gtktooltip.h
[edit]
[-] gtkclist.h
[edit]
[-] gtkrecentaction.h
[edit]
[-] gtkmisc.h
[edit]
[-] gtkiconview.h
[edit]
[-] gtktreemodelsort.h
[edit]
[-] gtkcurve.h
[edit]
[-] gtkfixed.h
[edit]
[-] gtknotebook.h
[edit]
[-] gtkviewport.h
[edit]
[-] gtktreednd.h
[edit]