Dillo v3.1.1-91-g6d5b3ee3
Loading...
Searching...
No Matches
fltkflatview.cc
Go to the documentation of this file.
1/*
2 * Dillo Widget
3 *
4 * Copyright 2005-2007 Sebastian Geerken <sgeerken@dillo.org>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20
21
22#include "fltkflatview.hh"
23#include "../lout/debug.hh"
24
25#include <stdio.h>
26
27using namespace lout::container::typed;
28
29namespace dw {
30namespace fltk {
31
32FltkFlatView::FltkFlatView (int x, int y, int w, int h, const char *label):
33 FltkWidgetView (x, y, w, h, label)
34{
35 DBG_OBJ_CREATE ("dw::fltk::FltkFlatView");
36}
37
41
42void FltkFlatView::setCanvasSize (int width, int ascent, int descent)
43{
50#if 0
51 FltkWidgetView::setCanvasSize (width, ascent, descent);
52
53 w (width);
54 h (ascent + descent);
55#endif
56}
57
59{
60 return false;
61}
62
64{
65 return 0;
66}
67
69{
70 return 0;
71}
72
74{
75 return 0;
76}
77
78void FltkFlatView::scrollTo (int x, int y)
79{
80}
81
82void FltkFlatView::setViewportSize (int width, int height,
83 int hScrollbarThickness,
84 int vScrollbarThickness)
85{
86}
87
89{
90 return X - x ();
91}
92
94{
95 return Y - y ();
96}
97
99{
100 return X + x ();
101}
102
104{
105 return Y + y ();
106}
107
108
109} // namespace fltk
110} // namespace dw
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)
FltkFlatView(int x, int y, int w, int h, const char *label=0)
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.
void setCanvasSize(int width, int ascent, int descent)
Set the canvas size.
#define DBG_OBJ_CREATE(klass)
Dw is in this namespace, or sub namespaces of this one.
This namespace provides thin wrappers, implemented as C++ templates, to gain type-safety.
Definition container.hh:387