Skip to content

Commit

Permalink
metal layer: Add setOpaque and setOpacity
Browse files Browse the repository at this point in the history
  • Loading branch information
foxnne authored and emidoots committed Dec 3, 2024
1 parent a3c4ebf commit 0edc9de
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/quartz_core.zig
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ pub const MetalLayer = opaque {
pub fn setColorspace(self_: *@This(), colorspace_: cg.ColorSpaceRef) void {
return objc.msgSend(self_, "setColorspace:", void, .{colorspace_});
}
pub fn setOpaque(self_: *@This(), opaque_: bool) void {
return objc.msgSend(self_, "setOpaque:", void, .{opaque_});
}
pub fn setOpacity(self_: *@This(), opacity_: f32) void {
return objc.msgSend(self_, "setOpaque:", void, .{opacity_});
}
pub fn wantsExtendedDynamicRangeContent(self_: *@This()) bool {
return objc.msgSend(self_, "wantsExtendedDynamicRangeContent", bool, .{});
}
Expand Down

0 comments on commit 0edc9de

Please sign in to comment.