Reva GUI Library: Check-in [9a94fd2fc6]

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

Overview
Comment:textbuffer
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 9a94fd2fc660512791088a43ca8b1f04d2032a39
User & Date: ron 2010-03-03 18:47:36
Context
2010-03-03
20:21
textdisplay check-in: 69765670ad user: ron tags: trunk
18:47
textbuffer check-in: 9a94fd2fc6 user: ron tags: trunk
2010-03-02
11:44
no comment check-in: 3d66c3cf04 user: ron tags: trunk
Changes
Hide Diffs Unified Diffs Show Whitespace Changes Patch

Changes to src/revagui.cpp.

1
2
3
4
5
6

7
8
9
10
11
12
13
..
90
91
92
93
94
95
96





97
98
99
100
101
102
103
...
202
203
204
205
206
207
208
209






















































#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>


extern "C" {
int run(void)
{
	Fl::run();
}
void redraw(void)
................................................................................
	w->callback(cb,data);
}

void destroy(Fl_Widget *w)
{
	if (w != NULL)
		delete w;





}

void setcolor(Fl_Widget *w, unsigned c)
{
	w->color(c);
}

................................................................................
	return w->user_data(d);
}

int is_visible( Fl_Widget *w)
{
	return w->visible();
}
}




























































>







 







>
>
>
>
>







 







|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
..
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
...
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
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->callback(cb,data);
}

void destroy(Fl_Widget *w)
{
	if (w != NULL)
		delete w;
}
void memfree(void *w)
{
	if (w != NULL)
		free(w);
}

void setcolor(Fl_Widget *w, unsigned c)
{
	w->color(c);
}

................................................................................
	return w->user_data(d);
}

int is_visible( Fl_Widget *w)
{
	return w->visible();
}

int text_buffer() 
{
	return (int) new Fl_Text_Buffer();
}
int tb_length( Fl_Text_Buffer *w)
{
	return w->length();
}
void tb_settext( Fl_Text_Buffer *w, const char *t)
{
	w->text(t);
}
char * tb_gettext( Fl_Text_Buffer *w)
{
	return w->text();
}
void tb_append( Fl_Text_Buffer *w, const char *t)
{
	w->append(t);
}
void tb_insert( Fl_Text_Buffer *w, int pos, const char *t)
{
	w->insert(pos,t);
}
void tb_remove( Fl_Text_Buffer *w, int start, int end)
{
	w->remove(start,end);
}
void tb_replace( Fl_Text_Buffer *w, int start, int end, const char *text)
{
	w->replace(start,end,text);
}
void tb_copy( Fl_Text_Buffer *w, Fl_Text_Buffer *from, int start, int end, int to)
{
	w->copy(from,start,end,to);
}
void tb_select( Fl_Text_Buffer *w, int start, int end)
{
	w->select(start,end);
}
char * tb_selection( Fl_Text_Buffer *w)
{
	return w->selection_text();
}
void tb_remove_selection( Fl_Text_Buffer *w)
{
	w->remove_selection();
}
void tb_replace_selection( Fl_Text_Buffer *w, const char *t)
{
	w->replace_selection(t);
}

}