1#ifndef __DW_FLTKVIEWBASE_HH__
2#define __DW_FLTKVIEWBASE_HH__
7#include <FL/Fl_Group.H>
43 inline void clipPoint (
int *x,
int *y,
int border) {
45 if (*x < exposeArea->x - border)
49 if (*y < exposeArea->y - border)
67 FltkViewBase (
int x,
int y,
int w,
int h,
const char *label = 0);
88 int x1,
int y1,
int x2,
int y2);
92 int x1,
int y1,
int x2,
int y2);
95 int x,
int y,
int width,
int height);
98 int centerX,
int centerY,
int width,
int height,
99 int angle1,
int angle2);
102 bool filled,
bool convex,
114 FltkWidgetView (
int x,
int y,
int w,
int h,
const char *label = 0);
120 int x,
int y,
const char *text,
int len);
124 int x,
int y,
int w,
int h,
127 int x,
int y,
int width,
int height);
The platform independent interface for image buffers.
The central class for managing and drawing a widget tree.
dw::core::Shape implemtation for simple rectangles.
Implementation for a point set.
An interface to encapsulate platform dependent drawing.
void setSize(int w, int h)
void setBgColor(core::style::Color *color)
Set the background of the view.
virtual int translateCanvasXToViewX(int x)=0
void clipPoint(int *x, int *y, int border)
void drawTypedLine(core::style::Color *color, core::style::Color::Shading shading, core::style::LineType type, int width, int x1, int y1, int x2, int y2)
void queueDraw(core::Rectangle *area)
Queue a region, which is given in canvas coordinates, for drawing.
void drawRectangle(core::style::Color *color, core::style::Color::Shading shading, bool filled, int x, int y, int width, int height)
static bool backBufferInUse
void drawLine(core::style::Color *color, core::style::Color::Shading shading, int x1, int y1, int x2, int y2)
void startDrawing(core::Rectangle *area)
Called before drawing.
void cancelQueueDraw()
Cancel a draw queue request.
void drawArc(core::style::Color *color, core::style::Color::Shading shading, bool filled, int centerX, int centerY, int width, int height, int angle1, int angle2)
Fl_Widget * focused_child
void drawPoint(core::style::Color *color, core::style::Color::Shading shading, int x, int y)
void setCanvasSize(int width, int ascent, int descent)
Set the canvas size.
static BackBuffer * backBuffer
void finishDrawing(core::Rectangle *area)
Called after drawing.
void drawPolygon(core::style::Color *color, core::style::Color::Shading shading, bool filled, bool convex, core::Point *points, int npoints)
void setLayout(core::Layout *layout)
This methods notifies the view, that it has been attached to a layout.
void setBufferedDrawing(bool b)
void mergeClippingView(core::View *clippingView)
core::View * getClippingView(int x, int y, int width, int height)
virtual int translateViewXToCanvasX(int x)=0
virtual int translateCanvasYToViewY(int y)=0
void queueDrawTotal()
Queue the total viewport for drawing.
void setCursor(core::style::Cursor cursor)
Set the cursor appearance.
virtual int translateViewYToCanvasY(int y)=0
core::Rectangle * exposeArea
This interface adds some more methods for all flkt-based views.
static core::Imgbuf * imgbuf
Dw is in this namespace, or sub namespaces of this one.
Represents the allocation, i.e.