00001 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- 00002 * gtksourceiter.h 00003 * 00004 * Pidgin 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 * The following copyright notice applies to this file: 00009 * 00010 * Copyright (C) 2000 - 2005 Paolo Maggi 00011 * Copyright (C) 2002, 2003 Jeroen Zwartepoorte 00012 * 00013 * This program is free software; you can redistribute it and/or modify 00014 * it under the terms of the GNU Library General Public License as published by 00015 * the Free Software Foundation; either version 2 of the License, or 00016 * (at your option) any later version. 00017 * 00018 * This program is distributed in the hope that it will be useful, 00019 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00020 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00021 * GNU Library General Public License for more details. 00022 * 00023 * You should have received a copy of the GNU Library General Public License 00024 * along with this program; if not, write to the Free Software 00025 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301, USA. 00026 */ 00027 00028 #ifndef _PIDGINSOURCEITER_H_ 00029 #define _PIDGINSOURCEITER_H_ 00030 00031 #include <gtk/gtktextiter.h> 00032 00033 G_BEGIN_DECLS 00034 00035 typedef enum 00036 { 00037 GTK_SOURCE_SEARCH_VISIBLE_ONLY = 1 << 0, 00038 GTK_SOURCE_SEARCH_TEXT_ONLY = 1 << 1, 00039 GTK_SOURCE_SEARCH_CASE_INSENSITIVE = 1 << 2 00040 /* Possible future plans: SEARCH_REGEXP */ 00041 } GtkSourceSearchFlags; 00042 00043 gboolean gtk_source_iter_forward_search (const GtkTextIter *iter, 00044 const gchar *str, 00045 GtkSourceSearchFlags flags, 00046 GtkTextIter *match_start, 00047 GtkTextIter *match_end, 00048 const GtkTextIter *limit); 00049 00050 gboolean gtk_source_iter_backward_search (const GtkTextIter *iter, 00051 const gchar *str, 00052 GtkSourceSearchFlags flags, 00053 GtkTextIter *match_start, 00054 GtkTextIter *match_end, 00055 const GtkTextIter *limit); 00056 00057 gboolean gtk_source_iter_find_matching_bracket (GtkTextIter *iter); 00058 00059 G_END_DECLS 00060 00061 #endif /* _PIDGINSOURCEITER_H_ */