347
|
1 #ifndef __DW_FLTKFLATVIEW_HH__
|
|
2 #define __DW_FLTKFLATVIEW_HH__
|
|
3
|
|
4 #include <fltk/Group.h>
|
|
5 #include <fltk/Scrollbar.h>
|
|
6
|
|
7 #include "core.hh"
|
|
8 #include "fltkcore.hh"
|
|
9 #include "fltkviewbase.hh"
|
|
10
|
|
11 namespace dw {
|
|
12 namespace fltk {
|
|
13
|
|
14 class FltkFlatView: public FltkWidgetView
|
|
15 {
|
|
16 protected:
|
|
17 int translateViewXToCanvasX (int x);
|
|
18 int translateViewYToCanvasY (int y);
|
|
19 int translateCanvasXToViewX (int x);
|
|
20 int translateCanvasYToViewY (int y);
|
|
21
|
|
22 public:
|
|
23 FltkFlatView (int x, int y, int w, int h, const char *label = 0);
|
|
24 ~FltkFlatView ();
|
|
25
|
|
26 void setCanvasSize (int width, int ascent, int descent);
|
|
27
|
|
28 bool usesViewport ();
|
|
29 int getHScrollbarThickness ();
|
|
30 int getVScrollbarThickness ();
|
|
31 void scrollTo (int x, int y);
|
|
32 void setViewportSize (int width, int height,
|
|
33 int hScrollbarThickness, int vScrollbarThickness);
|
|
34 };
|
|
35
|
|
36 } // namespace fltk
|
|
37 } // namespace dw
|
|
38
|
|
39 #endif // __DW_FLTKFLATVIEW_HH__
|
|
40
|