Reva GUI Library: Check-in [69765670ad]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment: textdisplay
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:69765670ad6d135e68a873de6e3afb996a4186d4
User & Date: ron 2010-03-03 20:21:36
Context
2010-03-08
05:33
no comment check-in: ada22d37ef user: ron tags: trunk
2010-03-03
20:21
textdisplay check-in: 69765670ad user: ron tags: trunk
18:47
textbuffer check-in: 9a94fd2fc6 user: ron tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/revagui.cpp.

1
2
3
4
5
6
7

8
9
10
11
12
13
14
...
261
262
263
264
265
266
267
268




269


















#include <stdio.h>
#include <FL/Fl.H>
#include <FL/fl_utf8.h>
#include <FL/Fl_Window.H>
#include <FL/Fl_Box.H>
#include <FL/Fl_Button.H>
#include <FL/Fl_Text_Buffer.H>


extern "C" {
int run(void)
{
	Fl::run();
}
void redraw(void)
................................................................................
{
	w->remove_selection();
}
void tb_replace_selection( Fl_Text_Buffer *w, const char *t)
{
	w->replace_selection(t);
}





}

























>







 








>
>
>
>

>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
...
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
#include <stdio.h>
#include <FL/Fl.H>
#include <FL/fl_utf8.h>
#include <FL/Fl_Window.H>
#include <FL/Fl_Box.H>
#include <FL/Fl_Button.H>
#include <FL/Fl_Text_Buffer.H>
#include <FL/Fl_Text_Display.H>

extern "C" {
int run(void)
{
	Fl::run();
}
void redraw(void)
................................................................................
{
	w->remove_selection();
}
void tb_replace_selection( Fl_Text_Buffer *w, const char *t)
{
	w->replace_selection(t);
}

// text display (list box)
int text_display(int x, int y, int w, int h, const char *l)
{
	return (int) new Fl_Text_Display(x,y,w,h,l);
}
void td_setbuffer(Fl_Text_Display *td, Fl_Text_Buffer *b)
{
	td->buffer(b);
}
int td_getbuffer(Fl_Text_Display *td)
{
	return (int) td->buffer();
}
void td_scroll(Fl_Text_Display *td, int top, int hoff)
{
	td->scroll(top,hoff);
}
void td_show_cursor(Fl_Text_Display *td, bool show)
{
	td->show_cursor(show?1:0);
}

}