pub trait IPlugViewTrait {
// Required methods
unsafe fn isPlatformTypeSupported(&self, type: FIDString) -> tresult;
unsafe fn attached(&self, parent: *mut c_void, type: FIDString) -> tresult;
unsafe fn removed(&self) -> tresult;
unsafe fn onWheel(&self, distance: f32) -> tresult;
unsafe fn onKeyDown(
&self,
key: char16,
keyCode: int16,
modifiers: int16
) -> tresult;
unsafe fn onKeyUp(
&self,
key: char16,
keyCode: int16,
modifiers: int16
) -> tresult;
unsafe fn getSize(&self, size: *mut ViewRect) -> tresult;
unsafe fn onSize(&self, newSize: *mut ViewRect) -> tresult;
unsafe fn onFocus(&self, state: TBool) -> tresult;
unsafe fn setFrame(&self, frame: *mut IPlugFrame) -> tresult;
unsafe fn canResize(&self) -> tresult;
unsafe fn checkSizeConstraint(&self, rect: *mut ViewRect) -> tresult;
}