dillo
3.0.5
About: dillo is a small, fast, extensible Web browser particularly suitable for older or smaller computers and embedded systems (but only limited or no support for frames, CSS, JavaScript, Java). Fossies Dox: dillo-3.0.5.tar.gz ("inofficial" and yet experimental doxygen-generated source code documentation) 
|
Go to the documentation of this file. 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);
140 #endif // __DW_FLTKVIEWBASE_HH__
void drawLine(core::style::Color *color, core::style::Color::Shading shading, int x1, int y1, int x2, int y2)
This interface adds some more methods for all flkt-based views.
virtual int translateCanvasYToViewY(int y)=0
void setBgColor(core::style::Color *color)
Set the background of the view.
Fl_Widget * focused_child
void setCanvasSize(int width, int ascent, int descent)
Set the canvas size.
core::View * getClippingView(int x, int y, int width, int height)
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)
Represents the allocation, i.e. actual position and size of a dw::core::Widget.
void setCursor(core::style::Cursor cursor)
Set the cursor appearance.
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)
virtual int translateViewXToCanvasX(int x)=0
void startDrawing(core::Rectangle *area)
Called before drawing.
void queueDraw(core::Rectangle *area)
Queue a region, which is given in canvas coordinates, for drawing.
virtual int translateViewYToCanvasY(int y)=0
void drawRectangle(core::style::Color *color, core::style::Color::Shading shading, bool filled, int x, int y, int width, int height)
The central class for managing and drawing a widget tree.
The platform independent interface for image buffers.
void drawPoint(core::style::Color *color, core::style::Color::Shading shading, int x, int y)
dw::core::Shape implemtation for simple rectangles.
static BackBuffer * backBuffer
void queueDrawTotal()
Queue the total viewport for drawing.
void setLayout(core::Layout *layout)
This methods notifies the view, that it has been attached to a layout.
An interface to encapsulate platform dependent drawing.
void mergeClippingView(core::View *clippingView)
FltkViewBase(int x, int y, int w, int h, const char *label=0)
void clipPoint(int *x, int *y, int border)
void setBufferedDrawing(bool b)
void finishDrawing(core::Rectangle *area)
Called after drawing.
Dw is in this namespace, or sub namespaces of this one.
virtual int translateCanvasXToViewX(int x)=0
static bool backBufferInUse
void setSize(int w, int h)
core::Rectangle * exposeArea
void cancelQueueDraw()
Cancel a draw queue request.
void drawPolygon(core::style::Color *color, core::style::Color::Shading shading, bool filled, bool convex, core::Point *points, int npoints)