Dillo v3.1.1-46-g8a360e32
Loading...
Searching...
No Matches
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
8namespace dw {
9namespace fltk {
10
12{
13protected:
14 int translateViewXToCanvasX (int x);
15 int translateViewYToCanvasY (int y);
16 int translateCanvasXToViewX (int x);
17 int translateCanvasYToViewY (int y);
18
19public:
20 FltkFlatView (int x, int y, int w, int h, const char *label = 0);
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
int translateViewXToCanvasX(int x)
void setViewportSize(int width, int height, int hScrollbarThickness, int vScrollbarThickness)
Set the viewport size.
int translateCanvasXToViewX(int x)
bool usesViewport()
Return, whether this view uses a viewport.
int getHScrollbarThickness()
Get the thickness of the horizontal scrollbar, when it is visible.
int translateViewYToCanvasY(int y)
void setCanvasSize(int width, int ascent, int descent)
Set the canvas size.
int translateCanvasYToViewY(int y)
void scrollTo(int x, int y)
Scroll the vieport to the given position.
int getVScrollbarThickness()
Get the thickness of the vertical scrollbar, when it is visible.
Dw is in this namespace, or sub namespaces of this one.