4 #ifndef __INCLUDED_FROM_DW_CORE_HH__
5 # error Do not include this file directly, use "core.hh" instead.
34 virtual void setCanvasSize (
int width,
int ascent,
int descent) = 0;
80 virtual void scrollTo (
int x,
int y) = 0;
97 int hScrollbarThickness,
98 int vScrollbarThickness) = 0;
162 int x1,
int y1,
int x2,
int y2) = 0;
166 int x1,
int y1,
int x2,
int y2) = 0;
169 int x,
int y,
int width,
int height) = 0;
172 int centerX,
int centerY,
int width,
int height,
173 int angle1,
int angle2) = 0;
176 bool filled,
bool convex,
Point *points,
181 int x,
int y,
const char *text,
int len) = 0;
184 int x,
int y,
int w,
int h,
185 const char *text) = 0;
187 int x,
int y,
int width,
int height) = 0;
211 #endif // __DW_VIEW_HH__
Cursor
Definition: style.hh:200
virtual void drawText(style::Font *font, style::Color *color, style::Color::Shading shading, int x, int y, const char *text, int len)=0
virtual void drawLine(style::Color *color, style::Color::Shading shading, int x1, int y1, int x2, int y2)=0
Shading
Definition: style.hh:767
dw::core::Shape implemtation for simple rectangles.
Definition: types.hh:69
virtual void setCanvasSize(int width, int ascent, int descent)=0
Set the canvas size.
virtual void drawImage(Imgbuf *imgbuf, int xRoot, int yRoot, int x, int y, int width, int height)=0
LineType
Definition: style.hh:291
virtual int getHScrollbarThickness()=0
Get the thickness of the horizontal scrollbar, when it is visible.
The central class for managing and drawing a widget tree.
Definition: layout.hh:16
This is the base class for many other classes, which defines very common virtual methods.
Definition: object.hh:24
static Layout * layout
Definition: dw_anchors_test.cc:38
virtual void mergeClippingView(View *clippingView)=0
virtual void drawArc(style::Color *color, style::Color::Shading shading, bool filled, int centerX, int centerY, int width, int height, int angle1, int angle2)=0
virtual void setLayout(Layout *layout)=0
This methods notifies the view, that it has been attached to a layout.
virtual void drawRectangle(style::Color *color, style::Color::Shading shading, bool filled, int x, int y, int width, int height)=0
virtual void startDrawing(Rectangle *area)=0
Called before drawing.
virtual void queueDrawTotal()=0
Queue the total viewport for drawing.
virtual void setBgColor(style::Color *color)=0
Set the background of the view.
virtual void finishDrawing(Rectangle *area)=0
Called after drawing.
virtual bool usesViewport()=0
Return, whether this view uses a viewport.
virtual void drawPolygon(style::Color *color, style::Color::Shading shading, bool filled, bool convex, Point *points, int npoints)=0
virtual View * getClippingView(int x, int y, int width, int height)=0
virtual void drawTypedLine(style::Color *color, style::Color::Shading shading, style::LineType type, int width, int x1, int y1, int x2, int y2)=0
virtual void setCursor(style::Cursor cursor)=0
Set the cursor appearance.
The platform independent interface for image buffers.
Definition: imgbuf.hh:161
Dw is in this namespace, or sub namespaces of this one.
Definition: alignedtablecell.cc:28
static core::Imgbuf * imgbuf
Definition: dw_images_scaled.cc:38
An interface to encapsulate platform dependent drawing.
Definition: view.hh:16
virtual int getVScrollbarThickness()=0
Get the thickness of the vertical scrollbar, when it is visible.
virtual void queueDraw(Rectangle *area)=0
Queue a region, which is given in canvas coordinates, for drawing.
virtual void scroll(ScrollCommand)
Scroll the viewport as commanded.
Definition: view.hh:85
virtual void scrollTo(int x, int y)=0
Scroll the vieport to the given position.
ScrollCommand
Definition: types.hh:35
virtual void cancelQueueDraw()=0
Cancel a draw queue request.
virtual void drawSimpleWrappedText(style::Font *font, style::Color *color, style::Color::Shading shading, int x, int y, int w, int h, const char *text)=0
virtual void drawPoint(style::Color *color, style::Color::Shading shading, int x, int y)=0
virtual void setViewportSize(int width, int height, int hScrollbarThickness, int vScrollbarThickness)=0
Set the viewport size.