diff options
author | jcid <devnull@localhost> | 2008-09-24 18:44:40 +0200 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-09-24 18:44:40 +0200 |
commit | c377e06400f138325a9a9d43d91a9272691867a1 (patch) | |
tree | 49f3ca1c46af11a058a68714899d4137ec717618 /dw/fltkflatview.hh | |
parent | 642f9b3e747859a7256ea12fab9f9ed50aa9253a (diff) |
- Moved the dw2 tree into dillo2's tree.
Diffstat (limited to 'dw/fltkflatview.hh')
-rw-r--r-- | dw/fltkflatview.hh | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dw/fltkflatview.hh b/dw/fltkflatview.hh new file mode 100644 index 00000000..dee5498f --- /dev/null +++ b/dw/fltkflatview.hh @@ -0,0 +1,40 @@ +#ifndef __DW_FLTKFLATVIEW_HH__ +#define __DW_FLTKFLATVIEW_HH__ + +#include <fltk/Group.h> +#include <fltk/Scrollbar.h> + +#include "core.hh" +#include "fltkcore.hh" +#include "fltkviewbase.hh" + +namespace dw { +namespace fltk { + +class FltkFlatView: public FltkWidgetView +{ +protected: + int translateViewXToCanvasX (int x); + int translateViewYToCanvasY (int y); + int translateCanvasXToViewX (int x); + int translateCanvasYToViewY (int y); + +public: + FltkFlatView (int x, int y, int w, int h, const char *label = 0); + ~FltkFlatView (); + + void setCanvasSize (int width, int ascent, int descent); + + bool usesViewport (); + int getHScrollbarThickness (); + int getVScrollbarThickness (); + void scrollTo (int x, int y); + void setViewportSize (int width, int height, + int hScrollbarThickness, int vScrollbarThickness); +}; + +} // namespace fltk +} // namespace dw + +#endif // __DW_FLTKFLATVIEW_HH__ + |