-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathFl_Native_File_ChooserC.cpp
78 lines (78 loc) · 3.89 KB
/
Fl_Native_File_ChooserC.cpp
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
#ifdef __cplusplus
#include "Fl_Native_File_ChooserC.h"
EXPORT {
#endif
FL_EXPORT_C(fl_Native_File_Chooser,Fl_Native_File_Chooser_New_WithVal)(int val){
Fl_Native_File_Chooser* c = new Fl_Native_File_Chooser(val);
return (fl_Native_File_Chooser) c;
}
FL_EXPORT_C(fl_Native_File_Chooser,Fl_Native_File_Chooser_New)( ){
Fl_Native_File_Chooser* c = new Fl_Native_File_Chooser();
return (fl_Native_File_Chooser) c;
}
FL_EXPORT_C(void, Fl_Native_File_Chooser_Destroy)(fl_Native_File_Chooser chooser){
delete (static_cast<Fl_Native_File_Chooser*>(chooser));
}
FL_EXPORT_C(void,Fl_Native_File_Chooser_set_type)(fl_Native_File_Chooser chooser,int type){
(static_cast<Fl_Native_File_Chooser*>(chooser))->type(type);
}
FL_EXPORT_C(int,Fl_Native_File_Chooser_type)(fl_Native_File_Chooser chooser){
return (static_cast<Fl_Native_File_Chooser*>(chooser))->type();
}
FL_EXPORT_C(void,Fl_Native_File_Chooser_set_options)(fl_Native_File_Chooser chooser,int options){
(static_cast<Fl_Native_File_Chooser*>(chooser))->options(options);
}
FL_EXPORT_C(int,Fl_Native_File_Chooser_options)(fl_Native_File_Chooser chooser){
return (static_cast<Fl_Native_File_Chooser*>(chooser))->options();
}
FL_EXPORT_C(int,Fl_Native_File_Chooser_count)(fl_Native_File_Chooser chooser){
return (static_cast<Fl_Native_File_Chooser*>(chooser))->count();
}
FL_EXPORT_C(const char*,Fl_Native_File_Chooser_filename)(fl_Native_File_Chooser chooser){
return (static_cast<Fl_Native_File_Chooser*>(chooser))->filename();
}
FL_EXPORT_C(const char*,Fl_Native_File_Chooser_filename_with_i)(fl_Native_File_Chooser chooser,int i){
return (static_cast<Fl_Native_File_Chooser*>(chooser))->filename(i);
}
FL_EXPORT_C(void,Fl_Native_File_Chooser_set_directory)(fl_Native_File_Chooser chooser,const char *val){
(static_cast<Fl_Native_File_Chooser*>(chooser))->directory(val);
}
FL_EXPORT_C(const char*,Fl_Native_File_Chooser_directory)(fl_Native_File_Chooser chooser){
return (static_cast<Fl_Native_File_Chooser*>(chooser))->directory();
}
FL_EXPORT_C(void,Fl_Native_File_Chooser_set_title)(fl_Native_File_Chooser chooser,const char * title){
(static_cast<Fl_Native_File_Chooser*>(chooser))->title(title);
}
FL_EXPORT_C(const char*,Fl_Native_File_Chooser_title)(fl_Native_File_Chooser chooser){
return (static_cast<Fl_Native_File_Chooser*>(chooser))->title();
}
FL_EXPORT_C(const char*,Fl_Native_File_Chooser_filter)(fl_Native_File_Chooser chooser){
return (static_cast<Fl_Native_File_Chooser*>(chooser))->filter();
}
FL_EXPORT_C(void,Fl_Native_File_Chooser_set_filter)(fl_Native_File_Chooser chooser,const char * filter){
(static_cast<Fl_Native_File_Chooser*>(chooser))->filter(filter);
}
FL_EXPORT_C(int,Fl_Native_File_Chooser_filters)(fl_Native_File_Chooser chooser){
return (static_cast<Fl_Native_File_Chooser*>(chooser))->filters();
}
FL_EXPORT_C(void,Fl_Native_File_Chooser_set_filter_value)(fl_Native_File_Chooser chooser,int i){
(static_cast<Fl_Native_File_Chooser*>(chooser))->filter_value(i);
}
FL_EXPORT_C(int,Fl_Native_File_Chooser_filter_value)(fl_Native_File_Chooser chooser){
return (static_cast<Fl_Native_File_Chooser*>(chooser))->filter_value();
}
FL_EXPORT_C(void,Fl_Native_File_Chooser_set_preset_file)(fl_Native_File_Chooser chooser,const char* preset_file){
(static_cast<Fl_Native_File_Chooser*>(chooser))->preset_file(preset_file);
}
FL_EXPORT_C(const char*,Fl_Native_File_Chooser_preset_file)(fl_Native_File_Chooser chooser){
return (static_cast<Fl_Native_File_Chooser*>(chooser))->preset_file();
}
FL_EXPORT_C(const char*,Fl_Native_File_Chooser_errmsg)(fl_Native_File_Chooser chooser){
return (static_cast<Fl_Native_File_Chooser*>(chooser))->errmsg();
}
FL_EXPORT_C(int,Fl_Native_File_Chooser_show)(fl_Native_File_Chooser chooser){
return (static_cast<Fl_Native_File_Chooser*>(chooser))->show();
}
#ifdef __cplusplus
}
#endif