From 34e35db71f83d0636e91222f4b2084b9eacdc21e Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 11 Jun 2002 20:58:12 +0000 Subject: Prefer fl_push_clip() over fl_clip(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2307 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/Fl_Scroll.html | 2 +- documentation/drawing.html | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'documentation') diff --git a/documentation/Fl_Scroll.html b/documentation/Fl_Scroll.html index 5b68214ab..2e8a17fb4 100644 --- a/documentation/Fl_Scroll.html +++ b/documentation/Fl_Scroll.html @@ -34,7 +34,7 @@ Fl_Double_Window.

draw() method that draws the contents. The scrolling is done by changing the x() and y() of the widget, so this child must use the x() and y() to position it's drawing. - To speed up drawing it should test fl_clip() + To speed up drawing it should test fl_push_clip() .

Another very useful child is a single Fl_Pack, which is itself a group that packs it's children diff --git a/documentation/drawing.html b/documentation/drawing.html index 12e4cb13f..2a8a99d5e 100644 --- a/documentation/drawing.html +++ b/documentation/drawing.html @@ -67,18 +67,19 @@ following types of drawing functions:

Clipping

You can limit all your drawing to a rectangular region by calling -fl_clip, and put the drawings back by using fl_pop_clip. +fl_push_clip, and put the drawings back by using fl_pop_clip. This rectangle is measured in pixels and is unaffected by the current transformation matrix.

In addition, the system may provide clipping when updating windows which may be more complex than a simple rectangle.

-

void fl_push_clip(int x, int y, int w, int h)
-void fl_clip(int x, int y, int w, int h)

+

void fl_clip(int x, int y, int w, int h)
+void fl_push_clip(int x, int y, int w, int h)

Intersect the current clip region with a rectangle and push this new -region onto the stack. +region onto the stack. The fl_clip() name is deprecated and +will be removed from future releases.

void fl_push_no_clip()

@@ -93,7 +94,7 @@ region onto the stack. Note:

You must call fl_pop_clip() once for every - time you call fl_clip(). If you return to FLTK + time you call fl_push_clip(). If you return to FLTK with the clip stack not empty unpredictable results occur. -- cgit v1.2.3