21#ifndef __DW_FLTKVIEWPORT_HH__
22#define __DW_FLTKVIEWPORT_HH__
24#include <FL/Fl_Group.H>
25#include <FL/Fl_Scrollbar.H>
56 lout::container::typed::List <lout::object::TypedPointer < Fl_Widget> >
75 static void draw_area (
void *data,
int x,
int y,
int w,
int h);
84 FltkViewport (
int x,
int y,
int w,
int h,
const char *label = 0);
87 void resize(
int x,
int y,
int w,
int h);
97 void scroll(
int dx,
int dy);
101 int hScrollbarThickness,
int vScrollbarThickness);
void scrollTo(int x, int y)
Scroll the vieport to the given position.
static void vscrollbarCallback(Fl_Widget *vscrollbar, void *viewportPtr)
static void draw_area(void *data, int x, int y, int w, int h)
int translateCanvasXToViewX(int x)
void setPageOverlap(int overlap)
void addGadget(Fl_Widget *gadget)
int translateViewXToCanvasX(int x)
int translateViewYToCanvasY(int y)
Fl_Scrollbar * hscrollbar
Fl_Scrollbar * vscrollbar
void scroll(int dx, int dy)
int getVScrollbarThickness()
Get the thickness of the vertical scrollbar, when it is visible.
void adjustScrollbarValues()
void setCanvasSize(int width, int ascent, int descent)
Set the canvas size.
void setScrollbarPageMode(bool enable)
void updateCanvasWidgets(int oldScrollX, int oldScrollY)
void setDragScroll(bool enable)
static void hscrollbarCallback(Fl_Widget *hscrollbar, void *viewportPtr)
void adjustScrollbarsAndGadgetsAllocation()
enum dw::core::ScrollCommand pageScrolling
bool usesViewport()
Return, whether this view uses a viewport.
int translateCanvasYToViewY(int y)
GadgetOrientation gadgetOrientation[4]
void setScrollStep(int step)
void setViewportSize(int width, int height, int hScrollbarThickness, int vScrollbarThickness)
Set the viewport size.
void setScrollbarOnLeft(bool enable)
void setGadgetOrientation(bool hscrollbarVisible, bool vscrollbarVisible, GadgetOrientation gadgetOrientation)
void resize(int x, int y, int w, int h)
lout::container::typed::List< lout::object::TypedPointer< Fl_Widget > > * gadgets
int getHScrollbarThickness()
Get the thickness of the horizontal scrollbar, when it is visible.
Dw is in this namespace, or sub namespaces of this one.