mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-05 01:16:33 +00:00
Comment to show native access
This commit is contained in:
@@ -9,6 +9,14 @@ pub const Property = extern struct {
|
||||
pub fn getName(self: Property) [:0]const u8 {
|
||||
return std.mem.sliceTo(c.property_getName(self.value), 0);
|
||||
}
|
||||
|
||||
/// Returns the value of a property attribute given the attribute name.
|
||||
pub fn copyAttributeValue(self: Property, attr: [:0]const u8) ?[:0]u8 {
|
||||
return std.mem.sliceTo(
|
||||
c.property_copyAttributeValue(self.value, attr.ptr) orelse return null,
|
||||
0,
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
test {
|
||||
|
Reference in New Issue
Block a user