Dillo v3.1.1-98-g318d1f14
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 int getScrollbarOnLeft ();
29 void scrollTo (int x, int y);
30 void setViewportSize (int width, int height,
31 int hScrollbarThickness, int vScrollbarThickness);
32};
33
34} // namespace fltk
35} // namespace dw
36
37#endif // __DW_FLTKFLATVIEW_HH__
38
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.