#include <fltkflatview.hh>
Public Member Functions | |
| FltkFlatView (int x, int y, int w, int h, const char *label=0) | |
| ~FltkFlatView () | |
| void | setCanvasSize (int width, int ascent, int descent) |
| Set the canvas size. | |
| bool | usesViewport () |
| Return, whether this view uses a viewport. | |
| int | getHScrollbarThickness () |
| Get the thickness of the horizontal scrollbar, when it is visible. | |
| int | getVScrollbarThickness () |
| Get the thickness of the vertical scrollbar, when it is visible. | |
| void | scrollTo (int x, int y) |
| Scroll the vieport to the given position. | |
| void | setViewportSize (int width, int height, int hScrollbarThickness, int vScrollbarThickness) |
| Set the viewport size. | |
Protected Member Functions | |
| int | translateViewXToCanvasX (int x) |
| int | translateViewYToCanvasY (int y) |
| int | translateCanvasXToViewX (int x) |
| int | translateCanvasYToViewY (int y) |
| dw::fltk::FltkFlatView::FltkFlatView | ( | int | x, | |
| int | y, | |||
| int | w, | |||
| int | h, | |||
| const char * | label = 0 | |||
| ) |
| dw::fltk::FltkFlatView::~FltkFlatView | ( | ) |
| int dw::fltk::FltkFlatView::getHScrollbarThickness | ( | ) | [virtual] |
Get the thickness of the horizontal scrollbar, when it is visible.
Does not have to be implemented, when usesViewport returns false.
Implements dw::core::View.
| int dw::fltk::FltkFlatView::getVScrollbarThickness | ( | ) | [virtual] |
Get the thickness of the vertical scrollbar, when it is visible.
Does not have to be implemented, when usesViewport returns false.
Implements dw::core::View.
| void dw::fltk::FltkFlatView::scrollTo | ( | int | x, | |
| int | y | |||
| ) | [virtual] |
Scroll the vieport to the given position.
Does not have to be implemented, when usesViewport returns false.
Implements dw::core::View.
| void dw::fltk::FltkFlatView::setCanvasSize | ( | int | width, | |
| int | ascent, | |||
| int | descent | |||
| ) | [virtual] |
Set the canvas size.
Reimplemented from dw::fltk::FltkViewBase.
| void dw::fltk::FltkFlatView::setViewportSize | ( | int | width, | |
| int | height, | |||
| int | hScrollbarThickness, | |||
| int | vScrollbarThickness | |||
| ) | [virtual] |
Set the viewport size.
Does not have to be implemented, when usesViewport returns false.
This will normally imply a resize of the UI widget. Width and height are the dimensions of the new size, including the scrollbar thicknesses.
Implements dw::core::View.
| int dw::fltk::FltkFlatView::translateCanvasXToViewX | ( | int | x | ) | [protected, virtual] |
Implements dw::fltk::FltkViewBase.
| int dw::fltk::FltkFlatView::translateCanvasYToViewY | ( | int | y | ) | [protected, virtual] |
Implements dw::fltk::FltkViewBase.
| int dw::fltk::FltkFlatView::translateViewXToCanvasX | ( | int | x | ) | [protected, virtual] |
Implements dw::fltk::FltkViewBase.
| int dw::fltk::FltkFlatView::translateViewYToCanvasY | ( | int | y | ) | [protected, virtual] |
Implements dw::fltk::FltkViewBase.
| bool dw::fltk::FltkFlatView::usesViewport | ( | ) | [virtual] |
1.5.9