From 5b9a27e4cb1f8ec805da424cc0cdae7ff475fc8f Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Sat, 26 Nov 2016 15:06:06 -0500 Subject: [PATCH] Init `NSColor` trait, add `clearColor` constructor. --- src/appkit.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/appkit.rs b/src/appkit.rs index d3d0a78..98aec91 100644 --- a/src/appkit.rs +++ b/src/appkit.rs @@ -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] + } +}