2005-12-10 20:25:13 -08:00
|
|
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4; coding: utf-8 -*-
|
|
|
|
*
|
|
|
|
* mootext-private.h
|
|
|
|
*
|
2006-02-23 06:03:17 -08:00
|
|
|
* Copyright (C) 2004-2006 by Yevgen Muntyan <muntyan@math.tamu.edu>
|
2005-12-10 20:25:13 -08: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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MOOEDIT_COMPILATION
|
|
|
|
#error "This file may not be included"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __MOO_TEXT_PRIVATE_H__
|
|
|
|
#define __MOO_TEXT_PRIVATE_H__
|
|
|
|
|
2005-12-12 02:58:25 -08:00
|
|
|
#include "mooedit/moofold.h"
|
2005-12-10 20:25:13 -08:00
|
|
|
#include "mooedit/moolinebuffer.h"
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
|
|
|
Line *_moo_line_mark_get_line (MooLineMark *mark);
|
|
|
|
void _moo_line_mark_set_line (MooLineMark *mark,
|
|
|
|
Line *line,
|
|
|
|
int line_no,
|
|
|
|
guint stamp);
|
|
|
|
void _moo_line_mark_set_buffer (MooLineMark *mark,
|
|
|
|
MooTextBuffer *buffer,
|
|
|
|
LineBuffer *line_buf);
|
2005-12-10 20:26:39 -08:00
|
|
|
void _moo_line_mark_deleted (MooLineMark *mark);
|
|
|
|
void _moo_line_mark_set_pretty (MooLineMark *mark,
|
|
|
|
gboolean pretty);
|
|
|
|
gboolean _moo_line_mark_get_pretty (MooLineMark *mark);
|
2005-12-10 20:25:13 -08:00
|
|
|
|
|
|
|
void _moo_line_mark_realize (MooLineMark *mark,
|
|
|
|
GtkWidget *widget);
|
|
|
|
void _moo_line_mark_unrealize (MooLineMark *mark);
|
|
|
|
|
2005-12-12 02:58:25 -08:00
|
|
|
void _moo_line_mark_set_fold (MooLineMark *mark,
|
|
|
|
MooFold *fold);
|
|
|
|
MooFold *_moo_line_mark_get_fold (MooLineMark *mark);
|
2005-12-10 20:25:13 -08:00
|
|
|
|
|
|
|
void _moo_text_buffer_ensure_highlight (MooTextBuffer *buffer,
|
|
|
|
int first_line,
|
|
|
|
int last_line);
|
|
|
|
void _moo_text_buffer_apply_syntax_tag (MooTextBuffer *buffer,
|
|
|
|
GtkTextTag *tag,
|
|
|
|
const GtkTextIter *start,
|
|
|
|
const GtkTextIter *end);
|
|
|
|
void _moo_text_buffer_highlighting_changed (MooTextBuffer *buffer,
|
|
|
|
int first,
|
|
|
|
int last);
|
|
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __MOO_TEXT_PRIVATE_H__ */
|