ghostty/pkg/fontconfig/range.zig
Mitchell Hashimoto aca36ba79b fontconfig: fc-match
2022-09-14 14:26:42 -07:00

17 lines
356 B
Zig

const std = @import("std");
const assert = std.debug.assert;
const c = @import("c.zig");
pub const Range = opaque {
pub fn destroy(self: *Range) void {
c.FcRangeDestroy(self.cval());
}
pub inline fn cval(self: *Range) *c.struct__FcRange {
return @ptrCast(
*c.struct__FcRange,
self,
);
}
};