blob: 8d84fda95c1c51c4b250a3f5f107fcd0c0e48fbe (
plain)
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
|
#ifndef __DW_FLTKFLATVIEW_HH__
#define __DW_FLTKFLATVIEW_HH__
#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__
|