Commit Graph

14 Commits

Author SHA1 Message Date
3d4782390d Move to exception 2024-05-14 13:52:29 +03:00
db0044fa07 Add OrientationType type 2024-05-11 14:22:49 +03:00
254ea6c771 Add CompressionType type 2024-05-11 14:04:11 +03:00
eb982bbf1d Add alias to bindings::MagickBoolean_*
Reduces the amount of repetitive `bindingc::MagickBoolean_*` in wrapper
code
2024-05-11 13:57:29 +03:00
409a583b22 feat: std error compatible error 2021-12-25 02:49:43 +08:00
51b2cac594 remove use of deprecated item 'try': use the ? operator instead
Signed-off-by: Nikola Pajkovsky <nikola.pajkovsky@livesporttv.cz>
2020-05-21 12:11:15 +02:00
bd34f145a2 Ran cargo fmt on the code base, looks better
cargo test passes
2018-10-06 15:38:33 -07:00
8a4fced836 Update to latest release of bindgen
Note that all of the enum definitions changed (again?), and now they are
flattened into the 'bindings' namespace. This breaks the API in a way that
is relatively easy to fix, albeit annoying. Attempts to change the enum
generation using default_enum_style() resulted in endless compiler errors.

cargo test passes
2018-10-06 15:37:41 -07:00
f2b153c987 add color-related getters and mutations 2018-01-03 17:04:45 +07:00
7abde0e7c6 resolve initial compilation issues 2017-08-19 16:35:58 +07:00
e7054d3e35 Use the rust-bindgen crate properly
Using the changes from @gadomski along with some additional work, to get the
generated bindings working again. Works on macOS and FreeBSD 11. A couple of
hacks are needed for FreeBSD, but nothing too serious.

Changed to use the libc prefix, and changed to use the generated enums.

Fixes #22, #15, and #14

cargo test passes
2017-04-08 16:03:58 -07:00
2c94dab05a Add license header to contributed files 2016-08-14 18:46:03 -07:00
9d2eba64a3 use size_t and ssize_t types for cross-compilation 2016-05-16 19:03:45 +03:00
9e2285a4aa add drawing and pixel wands; add some methods to MagickWand 2016-05-11 22:12:42 +03:00