mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +03:00

* update zig * pkg/fontconfig: clean up @as * pkg/freetype,harfbuzz: clean up @as * pkg/imgui: clean up @as * pkg/macos: clean up @as * pkg/pixman,utf8proc: clean up @as * clean up @as * lots more @as cleanup * undo flatpak changes * clean up @as
21 lines
454 B
Zig
21 lines
454 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);
|
|
}
|
|
|
|
pub fn cval(self: AffineTransform) c.struct_CGAffineTransform {
|
|
return @bitCast(self);
|
|
}
|
|
};
|