mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-05-09 17:58:38 +03:00
17 lines
348 B
Zig
17 lines
348 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(c.CGAffineTransformIdentity);
|
|
}
|
|
};
|