Struct Size

A simple struct representing a size with only int or double values

Constructors

Name Description
this

Fields

Name Type Description
height T
width T

Example

auto a = Size!int(10, 10);
auto a2 = size(10, 10);
auto b = Size!double(5, 5);
auto b2 = size(5.0, 5.0);
assert(a == a2);
assert(b == b2);

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