forked from pwiecz/go-fltk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
browser.h
49 lines (39 loc) · 2.17 KB
/
browser.h
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
#pragma once
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct GBrowser GBrowser;
typedef struct Fl_Browser Fl_Browser;
typedef struct GSelectBrowser GSelectBrowser;
typedef struct GHoldBrowser GHoldBrowser;
typedef struct GMultiBrowser GMultiBrowser;
typedef struct Fl_Image Fl_Image;
extern GBrowser *go_fltk_new_Browser(int x, int y, int w, int h, const char *text);
extern void go_fltk_Browser_add(Fl_Browser* b, const char *str, uintptr_t id);
extern int go_fltk_Browser_topline(Fl_Browser* b);
extern void go_fltk_Browser_set_topline(Fl_Browser* b, int i);
extern void go_fltk_Browser_set_middleline(Fl_Browser* b, int i);
extern void go_fltk_Browser_set_bottomline(Fl_Browser* b, int i);
extern void go_fltk_Browser_clear(Fl_Browser* b);
extern uintptr_t go_fltk_Browser_data(Fl_Browser* b, int line);
extern void go_fltk_Browser_remove(Fl_Browser* b, int i);
extern char go_fltk_Browser_column_char(Fl_Browser* b);
extern void go_fltk_Browser_set_column_char(Fl_Browser* b, char c);
extern void go_fltk_Browser_hide_line(Fl_Browser* b, int line);
extern int go_fltk_Browser_size(Fl_Browser* b);
extern Fl_Image* go_fltk_Browser_icon(Fl_Browser* b, int line);
extern void go_fltk_Browser_set_icon(Fl_Browser* b, int line, Fl_Image *i);
extern char go_fltk_Browser_format_char(Fl_Browser* b);
extern void go_fltk_Browser_set_format_char(Fl_Browser* b, char c);
extern int go_fltk_Browser_displayed(Fl_Browser* b, int line);
extern int go_fltk_Browser_value(Fl_Browser* b);
extern void go_fltk_Browser_set_value(Fl_Browser* b, int line);
extern const char* go_fltk_Browser_text(Fl_Browser* b, int line);
extern void go_fltk_Browser_set_column_widths(Fl_Browser* b, const int *arr);
extern GSelectBrowser *go_fltk_new_Select_Browser(int x, int y, int w, int h, const char *text);
extern GHoldBrowser *go_fltk_new_Hold_Browser(int x, int y, int w, int h, const char *text);
extern GMultiBrowser *go_fltk_new_Multi_Browser(int x, int y, int w, int h, const char *text);
#ifdef __cplusplus
}
#endif