From 64a0b5ebb41d36a7db87d24c5451f7db925e24f8 Mon Sep 17 00:00:00 2001 From: scuri Date: Fri, 18 Mar 2011 22:23:38 +0000 Subject: New: functions cdContextIsPlus and cdContextType. --- html/en/drv/cairo.html | 2 +- html/en/func/init.html | 25 ++++++++++++++++++++++--- html/en/history.html | 6 ++++-- 3 files changed, 27 insertions(+), 6 deletions(-) (limited to 'html/en') diff --git a/html/en/drv/cairo.html b/html/en/drv/cairo.html index 0b28ea5..793760e 100644 --- a/html/en/drv/cairo.html +++ b/html/en/drv/cairo.html @@ -67,7 +67,7 @@ driver can be used; in other UNICES only the X-Win base driver can be used.

Extra Drivers (cdcairo.h)

-

Only available in Lua when require"cdluacairo" is +

These are not ContextPlus drivers. In Lua, they are available only when require"cdluacairo" is used.

CD_CAIRO_PS - PostScript Driver

diff --git a/html/en/func/init.html b/html/en/func/init.html index 8b3bccb..a73deea 100644 --- a/html/en/func/init.html +++ b/html/en/func/init.html @@ -132,13 +132,13 @@ transparency.

In Lua, when using require"cdluacontextplus" this function will be automatically called.

-
cdContext* cdCanvasGetContext(cdCanvas *canvas); [in C]
+

cdContext* cdCanvasGetContext(cdCanvas *canvas); [in C]
 
 canvas:GetContext(canvas: cdCanvas) -> (ctx: number) [in Lua]

Returns the context of a given canvas, which can be compared with the predefined contexts, such as "CD_PS".

-
int cdContextCaps(cdContext* ctx); [in C]
+
int cdContextCaps(cdContext* ctx); [in C]
 
 cd.ContextCaps(ctx: number) -> (caps: number) [in Lua]
@@ -181,7 +181,26 @@ cd.ContextCaps(ctx: number) -> (caps: number) [in Lua] (Native Window and IUP).

-
int cdCanvasSimulate(cdCanvas* canvas, int mode); [in C]
+
int cdContextType(cdContext* ctx); [in C]
+
+cd.ContextType(ctx: number) -> (type: number) [in Lua]
+ +

Returns the type of the context:

+ +

CD_CTX_WINDOW - GUI window based
+CD_CTX_DEVICE - device based (clipboard, printer, picture)
+CD_CTX_IMAGE - server or client image based, including double buffer based
+ CD_CTX_FILE - metafile based

+ + +
int cdContextIsPlus(cdContext* ctx); [in C]
+
+cd.ContextIsPlus(ctx: number) -> (plus: boolean) [in Lua]
+ +

Returns if it is a context plus.

+ + +
int cdCanvasSimulate(cdCanvas* canvas, int mode); [in C]
 
 canvas:Simulate(mode: number) -> (old_mode: number) [in Lua]
diff --git a/html/en/history.html b/html/en/history.html index cdb7187..117262b 100644 --- a/html/en/history.html +++ b/html/en/history.html @@ -27,8 +27,10 @@

History of Changes

-

CVS (17/Nov/2010)

+

CVS (18/Mar/2011)

@@ -51,7 +53,7 @@ Fixed: CD_QUERY in cdCanvasNativeFont.
  • - Fixed: canvas:Transform when nil is used + Fixed: canvas:Transform when nil is used to reset the transformation.
  • Fixed: cdCanvasClear -- cgit v1.2.3