mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-05-25 09:38:36 +03:00
21 lines
499 B
Zig
21 lines
499 B
Zig
const std = @import("std");
|
|
const assert = std.debug.assert;
|
|
const c = @import("c.zig");
|
|
|
|
pub const AffineTransform = extern struct {
|
|
a: c.CGFloat,
|
|
b: c.CGFloat,
|
|
c: c.CGFloat,
|
|
d: c.CGFloat,
|
|
tx: c.CGFloat,
|
|
ty: c.CGFloat,
|
|
|
|
pub fn identity() AffineTransform {
|
|
return @bitCast(AffineTransform, c.CGAffineTransformIdentity);
|
|
}
|
|
|
|
pub fn cval(self: AffineTransform) c.struct_CGAffineTransform {
|
|
return @bitCast(c.struct_CGAffineTransform, self);
|
|
}
|
|
};
|