From 1ad72d5276b1876bf218336a1ff47f086a0834c9 Mon Sep 17 00:00:00 2001 From: scuri Date: Thu, 24 Jun 2010 20:32:39 +0000 Subject: *** empty log message *** --- html/en/func/clipping.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'html/en/func/clipping.html') diff --git a/html/en/func/clipping.html b/html/en/func/clipping.html index 00bbbdd..d875b17 100644 --- a/html/en/func/clipping.html +++ b/html/en/func/clipping.html @@ -19,7 +19,7 @@ texts.

The Clip function activates and deactivaes the clipping.


-
int cdCanvasClip(cdCanvas* canvas, int mode); [in C]
+    
int cdCanvasClip(cdCanvas* canvas, int mode); [in C]
 
 canvas:Clip(mode: number) -> (old_mode: number) [in Lua]

Activates or deactivates clipping. Returns the previous status. Values: CD_CLIPAREA, @@ -41,7 +41,7 @@ canvas:Clip(mode: number) -> (old_mode: number) [in Lua]

polygon and complex region without having to define them again. Also if the active clipping region is re-defined it immediately becomes the current clipping region.

-
void cdCanvasClipArea(cdCanvas* canvas, int xmin, int xmax, int ymin, int ymax); [in C]
+    
void cdCanvasClipArea(cdCanvas* canvas, int xmin, int xmax, int ymin, int ymax); [in C]
 void cdfCanvasClipArea(cdCanvas* canvas, double xmin, double xmax, double ymin, double ymax); [in C]
 void wdCanvasClipArea(cdCanvas* canvas, double xmin, double xmax, double ymin, double ymax); (WC) [in C]
 
@@ -51,7 +51,7 @@ canvas:wClipArea(xmin, xmax, ymin, ymax: number) (WC) [in Lua]
x <= xmax
and ymin <= y <= ymax will be printed. Default region: (0, w-1, 0, h-1).

-
int cdCanvasGetClipArea(cdCanvas* canvas, int *xmin, int *xmax, int *ymin, int *ymax); [in C]
+    
int cdCanvasGetClipArea(cdCanvas* canvas, int *xmin, int *xmax, int *ymin, int *ymax); [in C]
 int cdfCanvasGetClipArea(cdCanvas* canvas, double *xmin, double *xmax, double *ymin, double *ymax); [in C]
 int wdCanvasGetClipArea(cdCanvas* canvas, double *xmin, double *xmax, double *ymin, double *ymax); (WC) [in C]
 
@@ -59,9 +59,9 @@ canvas:GetClipArea() -> (xmin, xmax, ymin, ymax, status: number) [in Lua]
 canvas:wGetClipArea() -> (xmin, xmax, ymin, ymax, status: number) (WC) [in Lua]

Returns the rectangle and the clipping status. It is not necessary to provide all return pointers, you can provide only the desired values and NULL - for the others.

-

Polygons

+ for the others.

+
Polygons

A polygon for clipping can be created using cdBegin(CD_CLIP)/cdVertex(x,y)/.../cdEnd().

-

See the documentation of cdBegin/cdVertex/cdEnd.

+

See the documentation of cdBegin/cdVertex/cdEnd.

-- cgit v1.2.3