pkg/pixman: more getters

This commit is contained in:
Mitchell Hashimoto
2022-11-27 13:54:30 -08:00
parent b34e336c5c
commit abfffdcabe

View File

@ -51,6 +51,10 @@ pub const Image = opaque {
return c.pixman_image_get_height(@ptrCast(*c.pixman_image_t, self));
}
pub fn getWidth(self: *Image) c_int {
return c.pixman_image_get_width(@ptrCast(*c.pixman_image_t, self));
}
pub fn getStride(self: *Image) c_int {
return c.pixman_image_get_stride(@ptrCast(*c.pixman_image_t, self));
}