From a7769752395a5496f198672ad6810b8bb525d304 Mon Sep 17 00:00:00 2001
From: Matthias Melcher 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.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. +