mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-04-21 08:58:37 +03:00
17 lines
350 B
Zig
17 lines
350 B
Zig
const std = @import("std");
|
|
const assert = std.debug.assert;
|
|
const c = @import("c.zig").c;
|
|
|
|
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(c.CGAffineTransformIdentity);
|
|
}
|
|
};
|