nim-lang / cairo Goto Github PK
View Code? Open in Web Editor NEWNim Cairo wrapper.
License: MIT License
Nim Cairo wrapper.
License: MIT License
Browsed the examples, images are drawn from the scripts. But what should I do if I want to draw in a window?
https://github.com/freedesktop/cairo/blob/master/src/cairo-tee-surface.c
Are there any plans for adding support for tee surfaces? Is there some reason they are not supported? Never used them, but they could come in handy for a project i'm working on, so just wondering. Thanks
Please add to cairo.nim
# new since 1.10
proc cairo_surface_create_for_rectangle*(target: PSurface, x,y,w,h: float64):
PSurface {.cdecl, importc: "cairo_surface_create_for_rectangle", libcairo.}
Thanks!
Currently cairowin32 does not compile because it can't find the 'windows' module.
I'm not sure what the plan is with the windows API wrapper, but I suppose a quick fix is to add a dependency on the 'oldwinapi' package.
(I'm not sure how advanced the nimble dependency system is, but it would be nice if the dependency was only valid when using nimble on windows)
Hint: cairowin32 [Processing]
c:\documents and settings\administrator.nimble\pkgs\cairo-1.0\cairowin32.nim(20
, 52) Error: undeclared identifier: 'pLOGFONTW'
should change pLOGFONTW to PLOGFONTW, and fixed!
The very first code given (the arc test) in the README is incomplete.
Please replace the code snippets with links to the repository tests.
in order to do these are the steps that need to be taken:
types and procs interfacing directly with libcairo need to keep their original names
example type example proc
The "higher level" user api of this library will get shorter names like Surface
, imageSurfaceCreate
.
destructors will be attached to these types. it will look like this:
type
Surface = object
data: PSurface
`=destroy`(surface: var Surface)
`=`(dst: var Surface, src: Surface) {.error.}
These changes will break the api of this library but will allow the user to forget the closing of resources.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.