mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
pkg/pixman: more getters
This commit is contained in:
@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user