From abfffdcabe9ad5c569406564b2049cdd59cc3e7a Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 27 Nov 2022 13:54:30 -0800 Subject: [PATCH] pkg/pixman: more getters --- pkg/pixman/image.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/pixman/image.zig b/pkg/pixman/image.zig index caccc65a9..51a868095 100644 --- a/pkg/pixman/image.zig +++ b/pkg/pixman/image.zig @@ -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)); }