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 +- html/wb/wb_usr.lua | 8 ++ html/wb_tree.html | 356 +++++++++++++++++++++++++------------------------ 5 files changed, 214 insertions(+), 183 deletions(-) (limited to 'html') 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 diff --git a/html/wb/wb_usr.lua b/html/wb/wb_usr.lua index 939dde3..625286f 100644 --- a/html/wb/wb_usr.lua +++ b/html/wb/wb_usr.lua @@ -197,6 +197,14 @@ wb_usr.tree = name= {nl= "ContextCaps"}, link= "func/init.html#cdContextCaps" }, + { + name= {nl= "ContextType"}, + link= "func/init.html#cdContextType" + }, + { + name= {nl= "ContextIsPlus"}, + link= "func/init.html#cdContextIsPlus" + }, { name= {nl= "Simulate"}, link= "func/init.html#cdSimulate" diff --git a/html/wb_tree.html b/html/wb_tree.html index a068f84..2cfb538 100644 --- a/html/wb_tree.html +++ b/html/wb_tree.html @@ -273,289 +273,291 @@

    GetContext

    ContextCaps

    -

    Simulate

    +

    ContextType

    +

    ContextIsPlus

    +

    Simulate

    -

    cdlua_open

    -

    cdlua_close

    -

    cdlua_getcanvas

    +

    cdlua_open

    +

    cdlua_close

    +

    cdlua_getcanvas

  • Control

    -

    Clear

    -

    Flush

    -

    SaveState

    -

    RestoreState

    -

    ReleaseState

    -

    SetAttribute

    -

    SetfAttribute

    -

    GetAttribute

    +

    Clear

    +

    Flush

    +

    SaveState

    +

    RestoreState

    +

    ReleaseState

    +

    SetAttribute

    +

    SetfAttribute

    +

    GetAttribute

    Coordinate System

    -

    GetSize

    -

    YAxisMode

    -

    UpdateYAxis

    -

    MM2Pixel

    -

    Pixel2MM

    -

    Origin

    +

    GetSize

    +

    YAxisMode

    +

    UpdateYAxis

    +

    MM2Pixel

    +

    Pixel2MM

    +

    Origin

    -

    Transform

    -

    GetTransform

    -

    TransformMultiply

    -

    TransformTranslate

    -

    TransformScale

    -

    TransformRotate

    +

    Transform

    +

    GetTransform

    +

    TransformMultiply

    +

    TransformTranslate

    +

    TransformScale

    +

    TransformRotate

    -

    World Coordinates

    +

    World Coordinates

    -

    Window

    -

    GetWindow

    -

    Viewport

    -

    GetViewport

    -

    World2Canvas

    -

    Canvas2World

    -

    SetTransform

    -

    GetTransform

    -

    Translate

    -

    Scale

    +

    Window

    +

    GetWindow

    +

    Viewport

    +

    GetViewport

    +

    World2Canvas

    +

    Canvas2World

    +

    SetTransform

    +

    GetTransform

    +

    Translate

    +

    Scale

    Extra

    General Attributes

    -

    Foreground

    -

    Background

    -

    WriteMode

    +

    Foreground

    +

    Background

    +

    WriteMode

    -

    Clipping

    +

    Clipping

    -

    Clip

    -

    ClipArea

    -

    GetClipArea

    -

    Polygons

    -

    Regions

    +

    Clip

    +

    ClipArea

    +

    GetClipArea

    +

    Polygons

    +

    Regions

    Primitives

    -

    Marks

    +

    Marks

    -

    Pixel

    -

    Mark

    +

    Pixel

    +

    Mark

    Attributes

    -

    Lines

    +

    Lines

    -

    Filled Areas

    +

    Filled Areas

    -

    Text

    +

    Text

    -

    Vector Text

    +

    Vector Text

    -

    Client Images

    +

    Client Images

    -

    Server Images

    +

    Server Images

    Other

    System

    Metafile Interpretation

    Color Coding

    -

    Drivers

    +

    Drivers

    Window Systems

    Devices

    Images

    File

    -

    PDF

    -

    PS

    -

    SVG

    -

    MF

    -

    DEBUG

    +

    PDF

    +

    PS

    +

    SVG

    +

    MF

    +

    DEBUG

    -

    CGM

    -

    DGN

    -

    DXF

    +

    CGM

    +

    DGN

    +

    DXF

    -

    EMF

    -

    WMF

    +

    EMF

    +

    WMF

    Base Drivers

    Context Plus

    -- cgit v1.2.3