From a7769752395a5496f198672ad6810b8bb525d304 Mon Sep 17 00:00:00 2001
From: Matthias Melcher fl_down returns the "pressed" or "down" version of a box.
+
+ fl_frame returns the unfilled, frame-only version of a box.
+See also: fl_frame drawing.
+
The Fl::set_boxtype() method adds or replaces the
@@ -528,6 +537,12 @@ int fl_add_symbol(const char *name, void (*drawit)(Fl_Color), int scalable)
must be set to 1 if the symbol is generated using scalable vector drawing
functions. This function draw a named symbol fitting the given rectangle.
+
Callbacks are functions that are called when the value of a
diff --git a/documentation/drawing.html b/documentation/drawing.html
index 9e3b6e0b0..26e8d7940 100644
--- a/documentation/drawing.html
+++ b/documentation/drawing.html
@@ -64,6 +64,8 @@ following types of drawing functions:
The only difference between this function and
See also: fl_frame boxtype.
+
The Pushes an empty clip region on the stack so nothing will be clipped.
- Restore the previous clip region.
@@ -143,7 +147,7 @@ will be removed from future releases.
- Returns non-zero if any of the rectangle intersects the current clip
region. If this returns 0 you don't have to draw the object.
@@ -159,8 +163,8 @@ region. If this returns 0 you don't have to draw the object.
- Intersect the rectangle x,y,w,h with the current
clip region and returns the bounding box of the result in
@@ -169,6 +173,13 @@ different than the original. This can be used to limit the
necessary drawing to a rectangle. W and H are
set to zero if the rectangle is completely outside the region.
+ Replace the top of the clip stack with a clipping region of any shape.
+Fl_Region is an operating system specific type. The second form returns
+the current clipping region.
+
FLTK manages colors as 32-bit unsigned integers. Values from
@@ -378,6 +389,14 @@ function described later in this chapter.Fl_Boxtype fl_down(Fl_Boxtype)
+
+Fl_Boxtype fl_frame(Fl_Boxtype)
+
+Adding Your Box Type
+int fl_draw_symbol(const char *name,int x,int y,int w,int h,Fl_Color col)
+
+
+Callbacks
Boxes
@@ -92,6 +94,8 @@ not a multiple of 4 characters in length are undefined.
fl_frame2() is the order of the line segments.
+void fl_frame2(const char *s, int x, int y, int w, int h);
fl_frame2() function draws a series of line
@@ -122,11 +126,11 @@ void fl_push_clip(int x, int y, int w, int h)
region onto the stack. The fl_clip() name is deprecated and
will be removed from future releases.
-void fl_push_no_clip()
+void fl_push_no_clip()
void fl_pop_clip()
+void fl_pop_clip()
int fl_not_clipped(int x, int y, int w, int h)
+int fl_not_clipped(int x, int y, int w, int h)
int fl_clip_box(int x, int y, int w, int h, int &X, int &Y, int &W,
-int &H)
+int fl_clip_box(int x, int y, int w, int h, int &X, int &Y, int &W,
+int &H)
void fl_clip_region(Fl_Region r)
+
+
+
Fl_Region fl_clip_region()Colors
Scroll a rectangle and draw the newly exposed portions. The contents +of the rectangular area is first shifted by dx and +dy pixels. The callback is then called for every newly +exposed rectangular area, +
The complex drawing functions let you draw arbitrary shapes @@ -407,6 +426,22 @@ x, float y)
Concatenate another transformation onto the current one. The rotation angle is in degrees (not radians) and is counter-clockwise. +
Transform a coordinate or a distance trough the current transformation matrix. +After transforming a coordinate pair, it can be added to the vertex +list without any forther translations using fl_transformed_vertex. + +
Start and end drawing a list of points. Points are added to +the list with fl_vertex. +
Start and end drawing a closed sequence of lines. -
Start and end drawing a convex filled polygon. @@ -594,8 +629,8 @@ the display. pixels and not "points". Lines should be spaced size pixels apart or more.
-Returns the face and size set by the most recent call to fl_font(a,b). This can be used to save/restore the @@ -891,5 +926,43 @@ image, and this area is left unchanged.
Draws the image with the upper-left corner at x,y. This is the same as doing draw(x,y,img->w(),img->h(),0,0). +
Create an RGB offscreen buffer with w*h pixels. + +
Create an RGBA offscreen buffer. Alpha blending is not available +on all platforms. + +
Delete a previously created offscreen buffer. All drawings are lost. + +
Send all subsequent drawing commands to this offscreen buffer. +FLTK can draw into a buffer at any time. There is no need to wait for +an Fl_Widget::draw() to occur. + +
Quit sending drawing commands to this offscreen buffer. + +
Copy a rectangular area of the size w*h from srcx, srcy in the offscreen +buffer into the current buffer at x, y. +