Skip to content

Commit

Permalink
inc: New CanvasDraw binding
Browse files Browse the repository at this point in the history
  • Loading branch information
dkl committed May 17, 2015
1 parent a6c1599 commit 85758b0
Show file tree
Hide file tree
Showing 35 changed files with 1,847 additions and 1,040 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Version 1.03.0
- New OpenAL (openal-soft-1.16.0) and freealut (1.1.0) bindings (64bit-capable)
- New ASpell 0.60.6.1 binding (64bit-capable)
- New libbfd binding (64bit-capable), supporting all binutils versions from 2.16 to 2.25
- New CanvasDraw 5.8.1 binding (64bit-capable)
- Updated CGUI binding to 2.0.4 (from CGUI project's CVS)
- Redundant constant declarations (CONST A = 1 : CONST A = 1) are now allowed, just like redundant #defines
- 1.01.0 regression: Allegro 4 binding didn't have #inclibs for Win32 static linking or Linux X11 libs
Expand Down
605 changes: 294 additions & 311 deletions inc/cd/cd.bi

Large diffs are not rendered by default.

221 changes: 127 additions & 94 deletions inc/cd/cd_old.bi

Large diffs are not rendered by default.

484 changes: 266 additions & 218 deletions inc/cd/cd_private.bi

Large diffs are not rendered by default.

51 changes: 34 additions & 17 deletions inc/cd/cdcairo.bi
Original file line number Diff line number Diff line change
@@ -1,29 +1,46 @@
'' FreeBASIC binding for cd-5.8.1
''
'' based on the C header files:
'' Copyright (C) 1994-2014 Tecgraf, PUC-Rio.
''
'' cdcairo -- header translated with help of SWIG FB wrapper
'' Permission is hereby granted, free of charge, to any person obtaining
'' a copy of this software and associated documentation files (the
'' "Software"), to deal in the Software without restriction, including
'' without limitation the rights to use, copy, modify, merge, publish,
'' distribute, sublicense, and/or sell copies of the Software, and to
'' permit persons to whom the Software is furnished to do so, subject to
'' the following conditions:
''
'' NOTICE: This file is part of the FreeBASIC Compiler package and can't
'' be included in other distributions without authorization.
'' The above copyright notice and this permission notice shall be
'' included in all copies or substantial portions of the Software.
''
'' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
'' EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
'' MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
'' IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
'' CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
'' TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
'' SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
''
#ifndef __cdcairo_bi__
#define __cdcairo_bi__
'' translated to FreeBASIC by:
'' Copyright © 2015 FreeBASIC development team

#pragma once

#inclib "cdcairo"

extern "C"

declare function cdContextCairoNativeWindow () as cdContext ptr
declare function cdContextCairoImage () as cdContext ptr
declare function cdContextCairoDBuffer () as cdContext ptr
declare function cdContextCairoPrinter () as cdContext ptr
declare function cdContextCairoPS () as cdContext ptr
declare function cdContextCairoPDF () as cdContext ptr
declare function cdContextCairoSVG () as cdContext ptr
declare function cdContextCairoImageRGB () as cdContext ptr
declare function cdContextCairoEMF () as cdContext ptr

end extern
#define __CD_CAIRO_H
declare function cdContextCairoNativeWindow() as cdContext ptr
declare function cdContextCairoImage() as cdContext ptr
declare function cdContextCairoDBuffer() as cdContext ptr
declare function cdContextCairoPrinter() as cdContext ptr
declare function cdContextCairoPS() as cdContext ptr
declare function cdContextCairoPDF() as cdContext ptr
declare function cdContextCairoSVG() as cdContext ptr
declare function cdContextCairoImageRGB() as cdContext ptr
declare function cdContextCairoEMF() as cdContext ptr

#define CD_CAIRO_NATIVEWINDOW cdContextCairoNativeWindow()
#define CD_CAIRO_IMAGE cdContextCairoImage()
Expand All @@ -35,4 +52,4 @@ end extern
#define CD_CAIRO_IMAGERGB cdContextCairoImageRGB()
#define CD_CAIRO_EMF cdContextCairoEMF()

#endif
end extern
47 changes: 33 additions & 14 deletions inc/cd/cdcgm.bi
Original file line number Diff line number Diff line change
@@ -1,25 +1,44 @@
'' FreeBASIC binding for cd-5.8.1
''
'' based on the C header files:
'' Copyright (C) 1994-2014 Tecgraf, PUC-Rio.
''
'' cdcgm -- header translated with help of SWIG FB wrapper
'' Permission is hereby granted, free of charge, to any person obtaining
'' a copy of this software and associated documentation files (the
'' "Software"), to deal in the Software without restriction, including
'' without limitation the rights to use, copy, modify, merge, publish,
'' distribute, sublicense, and/or sell copies of the Software, and to
'' permit persons to whom the Software is furnished to do so, subject to
'' the following conditions:
''
'' NOTICE: This file is part of the FreeBASIC Compiler package and can't
'' be included in other distributions without authorization.
'' The above copyright notice and this permission notice shall be
'' included in all copies or substantial portions of the Software.
''
'' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
'' EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
'' MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
'' IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
'' CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
'' TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
'' SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
''
#ifndef __cdcgm_bi__
#define __cdcgm_bi__
'' translated to FreeBASIC by:
'' Copyright © 2015 FreeBASIC development team

declare function cdContextCGM cdecl alias "cdContextCGM" () as cdContext ptr
#define CD_CGM cdContextCGM()
#pragma once

#define CD_CGMCOUNTERCB 1
#define CD_CGMSCLMDECB 2
#define CD_CGMVDCEXTCB 3
#define CD_CGMBEGPICTCB 4
#define CD_CGMBEGPICTBCB 5
#define CD_CGMBEGMTFCB 6
extern "C"

#define __CD_CGM_H
declare function cdContextCGM() as cdContext ptr
#define CD_CGM cdContextCGM()
const CD_CGMCOUNTERCB = 1
const CD_CGMSCLMDECB = 2
const CD_CGMVDCEXTCB = 3
const CD_CGMBEGPICTCB = 4
const CD_CGMBEGPICTBCB = 5
const CD_CGMBEGMTFCB = 6
#define CDPLAY_ABORT CD_ABORT
#define CDPLAY_GO CD_CONTINUE

#endif
end extern
35 changes: 28 additions & 7 deletions inc/cd/cdclipbd.bi
Original file line number Diff line number Diff line change
@@ -1,15 +1,36 @@
'' FreeBASIC binding for cd-5.8.1
''
'' based on the C header files:
'' Copyright (C) 1994-2014 Tecgraf, PUC-Rio.
''
'' cdclipbd -- header translated with help of SWIG FB wrapper
'' Permission is hereby granted, free of charge, to any person obtaining
'' a copy of this software and associated documentation files (the
'' "Software"), to deal in the Software without restriction, including
'' without limitation the rights to use, copy, modify, merge, publish,
'' distribute, sublicense, and/or sell copies of the Software, and to
'' permit persons to whom the Software is furnished to do so, subject to
'' the following conditions:
''
'' NOTICE: This file is part of the FreeBASIC Compiler package and can't
'' be included in other distributions without authorization.
'' The above copyright notice and this permission notice shall be
'' included in all copies or substantial portions of the Software.
''
'' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
'' EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
'' MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
'' IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
'' CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
'' TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
'' SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
''
#ifndef __cdclipbd_bi__
#define __cdclipbd_bi__
'' translated to FreeBASIC by:
'' Copyright © 2015 FreeBASIC development team

declare function cdContextClipboard cdecl alias "cdContextClipboard" () as cdContext ptr
#pragma once

extern "C"

#define __CD_CLIPBOARD_H
declare function cdContextClipboard() as cdContext ptr
#define CD_CLIPBOARD cdContextClipboard()

#endif
end extern
35 changes: 28 additions & 7 deletions inc/cd/cddbuf.bi
Original file line number Diff line number Diff line change
@@ -1,15 +1,36 @@
'' FreeBASIC binding for cd-5.8.1
''
'' based on the C header files:
'' Copyright (C) 1994-2014 Tecgraf, PUC-Rio.
''
'' cddbuf -- header translated with help of SWIG FB wrapper
'' Permission is hereby granted, free of charge, to any person obtaining
'' a copy of this software and associated documentation files (the
'' "Software"), to deal in the Software without restriction, including
'' without limitation the rights to use, copy, modify, merge, publish,
'' distribute, sublicense, and/or sell copies of the Software, and to
'' permit persons to whom the Software is furnished to do so, subject to
'' the following conditions:
''
'' NOTICE: This file is part of the FreeBASIC Compiler package and can't
'' be included in other distributions without authorization.
'' The above copyright notice and this permission notice shall be
'' included in all copies or substantial portions of the Software.
''
'' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
'' EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
'' MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
'' IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
'' CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
'' TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
'' SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
''
#ifndef __cddbuf_bi__
#define __cddbuf_bi__
'' translated to FreeBASIC by:
'' Copyright © 2015 FreeBASIC development team

declare function cdContextDBuffer cdecl alias "cdContextDBuffer" () as cdContext ptr
#pragma once

extern "C"

#define __CD_DBUF_H
declare function cdContextDBuffer() as cdContext ptr
#define CD_DBUFFER cdContextDBuffer()

#endif
end extern
36 changes: 29 additions & 7 deletions inc/cd/cddebug.bi
Original file line number Diff line number Diff line change
@@ -1,14 +1,36 @@
'' FreeBASIC binding for cd-5.8.1
''
'' based on the C header files:
'' Copyright (C) 1994-2014 Tecgraf, PUC-Rio.
''
'' cddebug -- header translated with help of SWIG FB wrapper
'' Permission is hereby granted, free of charge, to any person obtaining
'' a copy of this software and associated documentation files (the
'' "Software"), to deal in the Software without restriction, including
'' without limitation the rights to use, copy, modify, merge, publish,
'' distribute, sublicense, and/or sell copies of the Software, and to
'' permit persons to whom the Software is furnished to do so, subject to
'' the following conditions:
''
'' NOTICE: This file is part of the FreeBASIC Compiler package and can't
'' be included in other distributions without authorization.
'' The above copyright notice and this permission notice shall be
'' included in all copies or substantial portions of the Software.
''
'' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
'' EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
'' MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
'' IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
'' CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
'' TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
'' SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
''
#ifndef __cddebug_bi__
#define __cddebug_bi__
'' translated to FreeBASIC by:
'' Copyright © 2015 FreeBASIC development team

declare function cdContextDebug cdecl alias "cdContextDebug" () as cdContext ptr
#pragma once

#endif
extern "C"

#define __CD_DEBUG_H
declare function cdContextDebug() as cdContext ptr
#define CD_DEBUG cdContextDebug()

end extern
36 changes: 29 additions & 7 deletions inc/cd/cddgn.bi
Original file line number Diff line number Diff line change
@@ -1,14 +1,36 @@
'' FreeBASIC binding for cd-5.8.1
''
'' based on the C header files:
'' Copyright (C) 1994-2014 Tecgraf, PUC-Rio.
''
'' cddgn -- header translated with help of SWIG FB wrapper
'' Permission is hereby granted, free of charge, to any person obtaining
'' a copy of this software and associated documentation files (the
'' "Software"), to deal in the Software without restriction, including
'' without limitation the rights to use, copy, modify, merge, publish,
'' distribute, sublicense, and/or sell copies of the Software, and to
'' permit persons to whom the Software is furnished to do so, subject to
'' the following conditions:
''
'' NOTICE: This file is part of the FreeBASIC Compiler package and can't
'' be included in other distributions without authorization.
'' The above copyright notice and this permission notice shall be
'' included in all copies or substantial portions of the Software.
''
'' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
'' EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
'' MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
'' IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
'' CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
'' TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
'' SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
''
#ifndef __cddgn_bi__
#define __cddgn_bi__
'' translated to FreeBASIC by:
'' Copyright © 2015 FreeBASIC development team

declare function cdContextDGN cdecl alias "cdContextDGN" () as cdContext ptr
#pragma once

#endif
extern "C"

#define __CD_DGN_H
declare function cdContextDGN() as cdContext ptr
#define CD_DGN cdContextDGN()

end extern
36 changes: 29 additions & 7 deletions inc/cd/cddxf.bi
Original file line number Diff line number Diff line change
@@ -1,14 +1,36 @@
'' FreeBASIC binding for cd-5.8.1
''
'' based on the C header files:
'' Copyright (C) 1994-2014 Tecgraf, PUC-Rio.
''
'' cddxf -- header translated with help of SWIG FB wrapper
'' Permission is hereby granted, free of charge, to any person obtaining
'' a copy of this software and associated documentation files (the
'' "Software"), to deal in the Software without restriction, including
'' without limitation the rights to use, copy, modify, merge, publish,
'' distribute, sublicense, and/or sell copies of the Software, and to
'' permit persons to whom the Software is furnished to do so, subject to
'' the following conditions:
''
'' NOTICE: This file is part of the FreeBASIC Compiler package and can't
'' be included in other distributions without authorization.
'' The above copyright notice and this permission notice shall be
'' included in all copies or substantial portions of the Software.
''
'' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
'' EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
'' MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
'' IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
'' CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
'' TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
'' SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
''
#ifndef __cddxf_bi__
#define __cddxf_bi__
'' translated to FreeBASIC by:
'' Copyright © 2015 FreeBASIC development team

declare function cdContextDXF cdecl alias "cdContextDXF" () as cdContext ptr
#pragma once

#endif
extern "C"

#define __CD_DXF_H
declare function cdContextDXF() as cdContext ptr
#define CD_DXF cdContextDXF()

end extern
36 changes: 29 additions & 7 deletions inc/cd/cdemf.bi
Original file line number Diff line number Diff line change
@@ -1,14 +1,36 @@
'' FreeBASIC binding for cd-5.8.1
''
'' based on the C header files:
'' Copyright (C) 1994-2014 Tecgraf, PUC-Rio.
''
'' cdemf -- header translated with help of SWIG FB wrapper
'' Permission is hereby granted, free of charge, to any person obtaining
'' a copy of this software and associated documentation files (the
'' "Software"), to deal in the Software without restriction, including
'' without limitation the rights to use, copy, modify, merge, publish,
'' distribute, sublicense, and/or sell copies of the Software, and to
'' permit persons to whom the Software is furnished to do so, subject to
'' the following conditions:
''
'' NOTICE: This file is part of the FreeBASIC Compiler package and can't
'' be included in other distributions without authorization.
'' The above copyright notice and this permission notice shall be
'' included in all copies or substantial portions of the Software.
''
'' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
'' EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
'' MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
'' IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
'' CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
'' TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
'' SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
''
#ifndef __cdemf_bi__
#define __cdemf_bi__
'' translated to FreeBASIC by:
'' Copyright © 2015 FreeBASIC development team

declare function cdContextEMF cdecl alias "cdContextEMF" () as cdContext ptr
#pragma once

#endif
extern "C"

#define __CD_EMF_H
declare function cdContextEMF() as cdContext ptr
#define CD_EMF cdContextEMF()

end extern
Loading

0 comments on commit 85758b0

Please sign in to comment.