-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhelpview.cxx
93 lines (72 loc) · 1.79 KB
/
helpview.cxx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#include "helpview.h"
#include <FL/Fl_Help_View.H>
#include "event_handler.h"
// Implemented:
// Create HelpView
// directory()
// filename()
// find()
// load()
// leftline()
// topline()
// TODO:
// handle()
// link()
// resize()
// scrollbar_size()
// select_all()
// size()
// textcolor()
// textfont()
// textsize()
// title()
class GHelp_View : public EventHandler<Fl_Help_View> {
public:
GHelp_View(int x, int y, int w, int h, const char *label)
: EventHandler<Fl_Help_View>(x, y, w, h, label) {}
};
GHelp_View *go_fltk_new_HelpView(int x, int y, int w, int h, const char *text) {
return new GHelp_View(x, y, w, h, text);
}
void go_fltk_HelpView_load(Fl_Help_View *h, const char *f) {
h->load(f);
}
const char *go_fltk_HelpView_directory(Fl_Help_View *h) {
return h->directory();
}
const char *go_fltk_HelpView_filename(Fl_Help_View *h) {
return h->filename();
}
int go_fltk_HelpView_find(Fl_Help_View *h, const char *s, int p) {
return h->find(s, p);
}
int go_fltk_HelpView_leftline(Fl_Help_View *h) {
return h->leftline();
}
void go_fltk_HelpView_set_leftline(Fl_Help_View *h, int i) {
h->leftline(i);
}
int go_fltk_HelpView_topline(Fl_Help_View *h) {
return h->topline();
}
void go_fltk_HelpView_set_topline(Fl_Help_View *h, int i) {
h->topline(i);
}
void go_fltk_HelpView_set_toplinestring(Fl_Help_View *h, const char *s) {
h->topline(s);
}
const char *go_fltk_HelpView_value(Fl_Help_View *h) {
return h->value();
}
void go_fltk_HelpView_set_value(Fl_Help_View *h, const char *val) {
h->value(val);
}
void go_fltk_HelpView_set_textcolor(Fl_Help_View *h, unsigned int col) {
h->textcolor(col);
}
void go_fltk_HelpView_set_textsize(Fl_Help_View *h, int size) {
h->textsize(size);
}
void go_fltk_HelpView_set_textfont(Fl_Help_View *h, int font) {
h->textfont(font);
}