00001 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- 00002 * gtksourceiter.h 00003 * 00004 * Gaim is the legal property of its developers, whose names are too numerous 00005 * to list here. Please refer to the COPYRIGHT file distributed with this 00006 * source distribution. 00007 * 00008 * This program is free software; you can redistribute it and/or modify 00009 * it under the terms of the GNU Library General Public License as published by 00010 * the Free Software Foundation; either version 2 of the License, or 00011 * (at your option) any later version. 00012 * 00013 * This program is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU Library General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU Library General Public License 00019 * along with this program; if not, write to the Free Software 00020 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00021 */ 00022 00023 #ifndef __GTK_SOURCE_ITER_H__ 00024 #define __GTK_SOURCE_ITER_H__ 00025 00026 #include <gtk/gtktextiter.h> 00027 00028 G_BEGIN_DECLS 00029 00030 typedef enum 00031 { 00032 GTK_SOURCE_SEARCH_VISIBLE_ONLY, 00033 GTK_SOURCE_SEARCH_TEXT_ONLY, 00034 GTK_SOURCE_SEARCH_CASE_INSENSITIVE 00035 /* Possible future plans: SEARCH_REGEXP */ 00036 } GtkSourceSearchFlags; 00037 00038 gboolean gtk_source_iter_forward_search (const GtkTextIter *iter, 00039 const gchar *str, 00040 GtkSourceSearchFlags flags, 00041 GtkTextIter *match_start, 00042 GtkTextIter *match_end, 00043 const GtkTextIter *limit); 00044 00045 gboolean gtk_source_iter_backward_search (const GtkTextIter *iter, 00046 const gchar *str, 00047 GtkSourceSearchFlags flags, 00048 GtkTextIter *match_start, 00049 GtkTextIter *match_end, 00050 const GtkTextIter *limit); 00051 00052 gboolean gtk_source_iter_find_matching_bracket (GtkTextIter *iter); 00053 00054 G_END_DECLS 00055 00056 #endif /* __GTK_SOURCE_ITER_H__ */