2005-09-06 09:21:05 -07:00
|
|
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4; coding: utf-8 -*-
|
2005-09-09 02:54:58 -07:00
|
|
|
*
|
2005-09-06 09:21:05 -07:00
|
|
|
* mootextiter.h
|
2005-06-22 11:20:32 -07:00
|
|
|
*
|
2006-02-23 06:03:17 -08:00
|
|
|
* Copyright (C) 2004-2006 by Yevgen Muntyan <muntyan@math.tamu.edu>
|
2005-06-22 11:20:32 -07:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* See COPYING file that comes with this distribution.
|
2005-07-23 21:58:57 -07:00
|
|
|
*/
|
2005-06-22 11:20:32 -07:00
|
|
|
|
2005-09-06 09:21:05 -07:00
|
|
|
#ifndef __MOO_TEXT_ITER_H__
|
|
|
|
#define __MOO_TEXT_ITER_H__
|
2005-06-22 11:20:32 -07:00
|
|
|
|
2005-10-13 07:08:18 -07:00
|
|
|
#include <gtk/gtktextbuffer.h>
|
2005-06-22 11:20:32 -07:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
2005-09-09 02:40:10 -07:00
|
|
|
typedef enum _MooBracketMatchType {
|
|
|
|
MOO_BRACKET_MATCH_NOT_AT_BRACKET = -1,
|
|
|
|
MOO_BRACKET_MATCH_NONE = 0,
|
|
|
|
MOO_BRACKET_MATCH_CORRECT = 1,
|
|
|
|
MOO_BRACKET_MATCH_INCORRECT = 2
|
|
|
|
} MooBracketMatchType;
|
2005-06-22 11:20:32 -07:00
|
|
|
|
|
|
|
|
|
|
|
/* it assumes that iter points to a bracket */
|
2005-10-13 07:08:18 -07:00
|
|
|
MooBracketMatchType moo_text_iter_find_matching_bracket (GtkTextIter *iter,
|
|
|
|
int limit);
|
2005-06-22 11:20:32 -07:00
|
|
|
|
|
|
|
/* tries to find bracket near the iter, i.e. like |( or (|,
|
|
|
|
* and chooses right one in the case )|( */
|
2005-09-09 02:40:10 -07:00
|
|
|
gboolean moo_text_iter_at_bracket (GtkTextIter *iter);
|
2005-06-22 11:20:32 -07:00
|
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
2005-09-06 09:21:05 -07:00
|
|
|
#endif /* __MOO_TEXT_ITER_H__ */
|