Auto merge of #195 - jrmuizel:backing, r=jdm

Add convertRectToBacking to NSView

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/195)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo
2018-02-07 14:05:26 -05:00
committed by GitHub
+5
View File
@@ -1673,6 +1673,7 @@ pub trait NSView: Sized {
unsafe fn widthAnchor(self) -> id;
unsafe fn heightAnchor(self) -> id;
unsafe fn convertRectToBacking(self, rect: NSRect) -> NSRect;
}
impl NSView for id {
@@ -1743,6 +1744,10 @@ impl NSView for id {
unsafe fn heightAnchor(self) -> id {
msg_send![self, heightAnchor]
}
unsafe fn convertRectToBacking(self, rect: NSRect) -> NSRect {
msg_send![self, convertRectToBacking:rect]
}
}
pub type NSAutoresizingMaskOptions = u64;