#[cfg(feature = "appkit")]
use crate::dragdrop::{DragInfo, DragOperation};
use crate::view::View;
#[allow(unused_variables)]
pub trait ViewDelegate {
const NAME: &'static str;
fn subclass_name(&self) -> &'static str {
Self::NAME
}
fn did_load(&mut self, view: View) {}
fn will_appear(&self, animated: bool) {}
fn did_appear(&self, animated: bool) {}
fn will_disappear(&self, animated: bool) {}
fn did_disappear(&self, animated: bool) {}
#[cfg(feature = "appkit")]
fn dragging_entered(&self, info: DragInfo) -> DragOperation {
DragOperation::None
}
#[cfg(feature = "appkit")]
fn prepare_for_drag_operation(&self, info: DragInfo) -> bool {
false
}
#[cfg(feature = "appkit")]
fn perform_drag_operation(&self, info: DragInfo) -> bool {
false
}
#[cfg(feature = "appkit")]
fn conclude_drag_operation(&self, info: DragInfo) {}
#[cfg(feature = "appkit")]
fn dragging_exited(&self, info: DragInfo) {}
}