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)
46 *x = exposeArea->
x - border;
47 if (*x > exposeArea->
x + exposeArea->
width + border)
48 *x = exposeArea->
x + exposeArea->
width + border;
49 if (*y < exposeArea->y - border)
50 *y = exposeArea->
y - border;
51 if (*y > exposeArea->
y + exposeArea->
height + border)
52 *y = exposeArea->
y + exposeArea->
height + 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 drawArc(core::style::Color *color, core::style::Color::Shading shading, bool filled, int centerX, int centerY, int width, int height, int angle1, int angle2)
Definition: fltkviewbase.cc:541
Cursor
Definition: style.hh:200
Definition: fltkviewbase.hh:15
void startDrawing(core::Rectangle *area)
Called before drawing.
Definition: fltkviewbase.cc:426
core::Layout * theLayout
Definition: fltkviewbase.hh:56
virtual int translateViewYToCanvasY(int y)=0
static BackBuffer * backBuffer
Definition: fltkviewbase.hh:37
void setCursor(core::style::Cursor cursor)
Set the cursor appearance.
Definition: fltkviewbase.cc:396
void queueDraw(core::Rectangle *area)
Queue a region, which is given in canvas coordinates, for drawing.
Definition: fltkviewbase.cc:434
Shading
Definition: style.hh:767
dw::core::Shape implemtation for simple rectangles.
Definition: types.hh:69
int handle(int event)
Definition: fltkviewbase.cc:287
BackBuffer()
Definition: fltkviewbase.cc:36
core::Region drawRegion
Definition: fltkviewbase.hh:35
void drawChildWidgets()
Definition: fltkviewbase.cc:188
virtual int translateViewXToCanvasX(int x)=0
LineType
Definition: style.hh:291
The central class for managing and drawing a widget tree.
Definition: layout.hh:16
void finishDrawing(core::Rectangle *area)
Called after drawing.
Definition: fltkviewbase.cc:430
Definition: fltkviewbase.hh:32
int x
Definition: types.hh:72
void setBufferedDrawing(bool b)
Definition: fltkviewbase.cc:86
Definition: fltkviewbase.hh:32
FltkViewBase(int x, int y, int w, int h, const char *label=0)
Definition: fltkviewbase.cc:64
static Layout * layout
Definition: dw_anchors_test.cc:38
Fl_Offscreen offscreen
Definition: fltkviewbase.hh:25
void setSize(int w, int h)
Definition: fltkviewbase.cc:49
void queueDrawTotal()
Queue the total viewport for drawing.
Definition: fltkviewbase.cc:440
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)
Definition: fltkviewbase.cc:471
int h
Definition: fltkviewbase.hh:21
void cancelQueueDraw()
Cancel a draw queue request.
Definition: fltkviewbase.cc:445
Represents the allocation, i.e. actual position and size of a dw::core::Widget.
Definition: types.hh:163
void setLayout(core::Layout *layout)
This methods notifies the view, that it has been attached to a layout.
Definition: fltkviewbase.cc:383
void mergeClippingView(core::View *clippingView)
Definition: fltkviewbase.cc:595
int mouse_x
Definition: fltkviewbase.hh:58
This interface adds some more methods for all flkt-based views.
Definition: fltkplatform.hh:78
int canvasHeight
Definition: fltkviewbase.hh:57
void setCanvasSize(int width, int ascent, int descent)
Set the canvas size.
Definition: fltkviewbase.cc:390
virtual int translateCanvasYToViewY(int y)=0
Fl_Widget * focused_child
Definition: fltkviewbase.hh:59
int mouse_y
Definition: fltkviewbase.hh:58
int w
Definition: fltkviewbase.hh:20
void draw()
Definition: fltkviewbase.cc:95
void drawPolygon(core::style::Color *color, core::style::Color::Shading shading, bool filled, bool convex, core::Point *points, int npoints)
Definition: fltkviewbase.cc:558
int height
Definition: types.hh:75
bool created
Definition: fltkviewbase.hh:22
int bgColor
Definition: fltkviewbase.hh:34
core::View * getClippingView(int x, int y, int width, int height)
Definition: fltkviewbase.cc:588
void drawLine(core::style::Color *color, core::style::Color::Shading shading, int x1, int y1, int x2, int y2)
Definition: fltkviewbase.cc:455
int manageTabToFocus()
Definition: fltkviewbase.cc:223
The platform independent interface for image buffers.
Definition: imgbuf.hh:161
Definition: fltkviewbase.hh:32
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
void setBgColor(core::style::Color *color)
Set the background of the view.
Definition: fltkviewbase.cc:419
int width
Definition: types.hh:74
void drawPoint(core::style::Color *color, core::style::Color::Shading shading, int x, int y)
Definition: fltkviewbase.cc:449
DrawType
Definition: fltkviewbase.hh:32
int canvasWidth
Definition: fltkviewbase.hh:57
virtual int translateCanvasXToViewX(int x)=0
static bool backBufferInUse
Definition: fltkviewbase.hh:38
int y
Definition: types.hh:73
void clipPoint(int *x, int *y, int border)
Definition: fltkviewbase.hh:43
core::Rectangle * exposeArea
Definition: fltkviewbase.hh:36
Definition: fltkviewbase.hh:18
~BackBuffer()
Definition: fltkviewbase.cc:43
void drawRectangle(core::style::Color *color, core::style::Color::Shading shading, bool filled, int x, int y, int width, int height)
Definition: fltkviewbase.cc:504
~FltkViewBase()
Definition: fltkviewbase.cc:81