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/drawing.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'documentation/drawing.html') 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