Dillo
fltkflatview.hh
Go to the documentation of this file.
1 #ifndef __DW_FLTKFLATVIEW_HH__
2 #define __DW_FLTKFLATVIEW_HH__
3 
4 #include "core.hh"
5 #include "fltkcore.hh"
6 #include "fltkviewbase.hh"
7 
8 namespace dw {
9 namespace fltk {
10 
12 {
13 protected:
14  int translateViewXToCanvasX (int x);
15  int translateViewYToCanvasY (int y);
16  int translateCanvasXToViewX (int x);
17  int translateCanvasYToViewY (int y);
18 
19 public:
20  FltkFlatView (int x, int y, int w, int h, const char *label = 0);
21  ~FltkFlatView ();
22 
23  void setCanvasSize (int width, int ascent, int descent);
24 
25  bool usesViewport ();
28  void scrollTo (int x, int y);
29  void setViewportSize (int width, int height,
30  int hScrollbarThickness, int vScrollbarThickness);
31 };
32 
33 } // namespace fltk
34 } // namespace dw
35 
36 #endif // __DW_FLTKFLATVIEW_HH__
37 
Definition: fltkviewbase.hh:111
int translateViewYToCanvasY(int y)
Definition: fltkflatview.cc:88
void setViewportSize(int width, int height, int hScrollbarThickness, int vScrollbarThickness)
Set the viewport size.
Definition: fltkflatview.cc:77
void setCanvasSize(int width, int ascent, int descent)
Set the canvas size.
Definition: fltkflatview.cc:42
void scrollTo(int x, int y)
Scroll the vieport to the given position.
Definition: fltkflatview.cc:73
int translateCanvasXToViewX(int x)
Definition: fltkflatview.cc:93
int getVScrollbarThickness()
Get the thickness of the vertical scrollbar, when it is visible.
Definition: fltkflatview.cc:68
int translateViewXToCanvasX(int x)
Definition: fltkflatview.cc:83
FltkFlatView(int x, int y, int w, int h, const char *label=0)
Definition: fltkflatview.cc:32
~FltkFlatView()
Definition: fltkflatview.cc:38
int translateCanvasYToViewY(int y)
Definition: fltkflatview.cc:98
Dw is in this namespace, or sub namespaces of this one.
Definition: alignedtablecell.cc:28
int getHScrollbarThickness()
Get the thickness of the horizontal scrollbar, when it is visible.
Definition: fltkflatview.cc:63
Definition: fltkflatview.hh:11
bool usesViewport()
Return, whether this view uses a viewport.
Definition: fltkflatview.cc:58