00001 #ifndef __DW_FLTKFLATVIEW_HH__
00002 #define __DW_FLTKFLATVIEW_HH__
00003
00004 #include "core.hh"
00005 #include "fltkcore.hh"
00006 #include "fltkviewbase.hh"
00007
00008 namespace dw {
00009 namespace fltk {
00010
00011 class FltkFlatView: public FltkWidgetView
00012 {
00013 protected:
00014 int translateViewXToCanvasX (int x);
00015 int translateViewYToCanvasY (int y);
00016 int translateCanvasXToViewX (int x);
00017 int translateCanvasYToViewY (int y);
00018
00019 public:
00020 FltkFlatView (int x, int y, int w, int h, const char *label = 0);
00021 ~FltkFlatView ();
00022
00023 void setCanvasSize (int width, int ascent, int descent);
00024
00025 bool usesViewport ();
00026 int getHScrollbarThickness ();
00027 int getVScrollbarThickness ();
00028 void scrollTo (int x, int y);
00029 void setViewportSize (int width, int height,
00030 int hScrollbarThickness, int vScrollbarThickness);
00031 };
00032
00033 }
00034 }
00035
00036 #endif // __DW_FLTKFLATVIEW_HH__
00037