Debian Codegraph @

swig/Fl_Browser_.i

raw
1 /* File : Fl_Browser_.i */
2
3 %feature("docstring") ::Fl_Browser_
4 """
5 This is the base class for browsers. To be useful it must be subclassed
6 and several virtual functions defined. The Forms-compatible browser and
7 the file chooser's browser are subclassed off of this.
8
9 This has been designed so that the subclass has complete control over
10 the storage of the data, although because next() and prev() functions
11 are used to index, it works best as a linked list or as a large block
12 of characters in which the line breaks must be searched for.
13
14 A great deal of work has been done so that the 'height' of a data object
15 does not need to be determined until it is drawn. This is useful if
16 actually figuring out the size of an object requires accessing image
17 data or doing stat() on a file or doing some other slow operation.
18 """ ;
19
20 %{
21 #include "FL/Fl_Browser_.H"
22 %}
23
24 %ignore Fl_Browser_::scrollbar;
25 %ignore Fl_Browser_::hscrollbar;
26
27 %ignore Fl_Browser_::draw(int,int,int,int);
28
29 // deprecated in fltk-1.4
30 %ignore Fl_Browser_::position;
31
32 %include "macros.i"
33
34 CHANGE_OWNERSHIP(Fl_Browser_)
35
36 %include "FL/Fl_Browser_.H"
37
38
39 %extend Fl_Browser_ {
40 Fl_Scrollbar* getScrollbar() {
41 return &(self->scrollbar);
42 }
43 Fl_Scrollbar* getHScrollbar() {
44 return &(self->hscrollbar);
45 }
46 }
47