SchemeEditor.h
/*
* $Id: String.h 2839 2009-09-28 11:36:20Z karijes $
*
* Fl_Text_Editor enhacement for scheme editing
* Copyright (c) 2005-2012 edelib authors
*
* 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, see <http://www.gnu.org/licenses/>.
*/
#ifndef __EDELIB_SCHEME_EDITOR_H__
#define __EDELIB_SCHEME_EDITOR_H__
#include "edelib-global.h"
#include <FL/Fl_Text_Editor.H>
#include <FL/Fl_Text_Buffer.H>
EDELIB_NS_BEGIN
class EDELIB_API SchemeEditor : public Fl_Text_Editor {
private:
Fl_Text_Buffer *stylebuf, *textbuf;
bool pmatch;
void highlight_parens(int start, int end);
void unhighlight_parens(void);
public:
SchemeEditor(int X, int Y, int W, int H, const char *l = 0);
void textsize(int sz);
virtual int handle(int e);
Fl_Text_Buffer *style_buffer(void) { return stylebuf; }
void object_color(int id, int color);
void object_color(int id, const char *color);
void match_parenthesis(bool m) { pmatch = m; }
};
EDELIB_NS_END
#endif
edelib::SchemeEditor::style_buffer
Fl_Text_Buffer * style_buffer(void)
Definition: SchemeEditor.h:68
edelib::SchemeEditor::match_parenthesis
void match_parenthesis(bool m)
Definition: SchemeEditor.h:90
edelib::SchemeEditor
Editing component for Scheme language.
Definition: SchemeEditor.h:50