Init NSColor trait, add clearColor constructor.

This commit is contained in:
Corey Farwell
2016-11-26 15:06:06 -05:00
parent d1775d8d49
commit 5b9a27e4cb
+10
View File
@@ -3662,3 +3662,13 @@ impl NSLayoutDimension for id {
msg_send![self, constraintGreaterThanOrEqualToConstant:c]
}
}
pub trait NSColor {
unsafe fn clearColor(_: Self) -> id;
}
impl NSColor for id {
unsafe fn clearColor(_: Self) -> id {
msg_send![class("NSColor"), clearColor]
}
}