mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-09 19:36:45 +00:00
macos: frames, attributed strings, stylized strings
This commit is contained in:
@@ -22,6 +22,13 @@ pub const Frame = opaque {
|
||||
@ptrCast(*c.CGPoint, points.ptr),
|
||||
);
|
||||
}
|
||||
|
||||
pub fn getLines(self: *Frame) *foundation.Array {
|
||||
return @intToPtr(
|
||||
*foundation.Array,
|
||||
@ptrToInt(c.CTFrameGetLines(@ptrCast(c.CTFrameRef, self))),
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
test {
|
||||
|
Reference in New Issue
Block a user