1#ifndef __FlTKPREVIEW_HH__
2#define __FlTKPREVIEW_HH__
4#include <FL/Fl_Button.H>
5#include <FL/Fl_Menu_Window.H>
26 const char *label = 0);
40 int hScrollbarThickness,
int vScrollbarThickness);
45 int x,
int y,
const char *text,
int len);
49 int x,
int y,
int w,
int h,
52 int x,
int y,
int width,
int height);
76 void scrollTo (
int mouseX,
int mouseY);
The platform independent interface for image buffers.
The central class for managing and drawing a widget tree.
dw::core::Shape implemtation for simple rectangles.
void scrollTo(int mouseX, int mouseY)
void drawFltkWidget(Fl_Widget *widget, core::Rectangle *area)
void drawText(core::style::Font *font, core::style::Color *color, core::style::Color::Shading shading, int x, int y, const char *text, int len)
bool usesViewport()
Return, whether this view uses a viewport.
int getVScrollbarThickness()
Get the thickness of the vertical scrollbar, when it is visible.
int translateCanvasYToViewY(int y)
void scrollTo(int x, int y)
Scroll the vieport to the given position.
void scroll(dw::core::ScrollCommand cmd)
Scroll the viewport as commanded.
void drawImage(core::Imgbuf *imgbuf, int xRoot, int yRoot, int x, int y, int width, int height)
int translateViewXToCanvasX(int x)
void drawSimpleWrappedText(core::style::Font *font, core::style::Color *color, core::style::Color::Shading shading, int x, int y, int w, int h, const char *text)
int translateCanvasXToViewX(int x)
int getHScrollbarThickness()
Get the thickness of the horizontal scrollbar, when it is visible.
void setViewportSize(int width, int height, int hScrollbarThickness, int vScrollbarThickness)
Set the viewport size.
void setCanvasSize(int width, int ascent, int descent)
Set the canvas size.
int translateViewYToCanvasY(int y)
static core::Imgbuf * imgbuf
Dw is in this namespace, or sub namespaces of this one.