Function toCairoCount

Convert a size_t as given from a D arrays .length property to a cairo count type (int).

In debug mode an exception is thrown if the size_t value does not fit into the int type. In release mode all checks are removed!

Prototype

int toCairoCount(
  ulong length
);

Authors

Johannes Pfau cairoD
Andrej Mitrovic cairoD
cairo team cairo

Copyright

License

cairoD wrapper/bindings Boost License 1.0
cairo LGPL 2.1 / MPL 1.1