Ensure macOS still works, and make these things call super when need be

This commit is contained in:
Ryan McGrath 2020-04-04 21:12:17 -07:00
parent 4ff69c008a
commit ba59b06177
No known key found for this signature in database
GPG key ID: 811674B62B666830

View file

@ -10,16 +10,16 @@ pub trait ViewDelegate {
fn did_load(&self, _view: View) {}
/// Called when this is about to be added to the view heirarchy.
fn will_appear(&self, animated: bool) {}
fn will_appear(&self, _animated: bool) {}
/// Called after this has been added to the view heirarchy.
fn did_appear(&self, animated: bool) {}
fn did_appear(&self, _animated: bool) {}
/// Called when this is about to be removed from the view heirarchy.
fn will_disappear(&self, animated: bool) {}
fn will_disappear(&self, _animated: bool) {}
/// Called when this has been removed from the view heirarchy.
fn did_disappear(&self, animated: bool) {}
fn did_disappear(&self, _animated: bool) {}
/// Invoked when the dragged image enters destination bounds or frame; returns dragging operation to perform.
fn dragging_entered(&self, _info: DragInfo) -> DragOperation { DragOperation::None }