Auto merge of #516 - keiya01:fix/use-animate-set-frame, r=jdm
fix: add animate property to NSWindow:setFrame: I added animate property to `NSWindow:setFrame:`. If this behavior is intended, I'm sorry but please close this PR.
This commit is contained in:
@@ -974,6 +974,7 @@ pub trait NSWindow: Sized {
|
||||
unsafe fn constrainFrameRect_toScreen_(self, frameRect: NSRect, screen: id);
|
||||
unsafe fn cascadeTopLeftFromPoint_(self, topLeft: NSPoint) -> NSPoint;
|
||||
unsafe fn setFrame_display_(self, windowFrame: NSRect, display: BOOL);
|
||||
unsafe fn setFrame_display_animate_(self, windowFrame: NSRect, display: BOOL, animate: BOOL);
|
||||
unsafe fn setFrame_displayViews_(self, windowFrame: NSRect, display: BOOL);
|
||||
unsafe fn aspectRatio(self) -> NSSize;
|
||||
unsafe fn setAspectRatio_(self, aspectRatio: NSSize);
|
||||
@@ -1363,6 +1364,10 @@ impl NSWindow for id {
|
||||
msg_send![self, setFrame:windowFrame display:display]
|
||||
}
|
||||
|
||||
unsafe fn setFrame_display_animate_(self, windowFrame: NSRect, display: BOOL, animate: BOOL) {
|
||||
msg_send![self, setFrame:windowFrame display:display animate: animate]
|
||||
}
|
||||
|
||||
unsafe fn setFrame_displayViews_(self, windowFrame: NSRect, display: BOOL) {
|
||||
msg_send![self, setFrame:windowFrame displayViews:display]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user