pub struct XComponentCallbacks {
pub on_surface_created: OnSurfaceCreated,
pub on_surface_changed: OnSurfaceChanged,
pub on_surface_destroyed: OnSurfaceDestroyed,
pub dispatch_touch_event: DispatchTouchEvent,
pub on_frame_change: OnFrameChange,
pub on_key_event: OnKeyEvent,
pub on_mouse_event: OnMouseEvent,
pub on_hover_event: OnHoverEvent,
pub on_ui_input_event: OnUIInputEvent,
}Fields§
§on_surface_created: OnSurfaceCreated§on_surface_changed: OnSurfaceChanged§on_surface_destroyed: OnSurfaceDestroyed§dispatch_touch_event: DispatchTouchEvent§on_frame_change: OnFrameChange§on_key_event: OnKeyEvent§on_mouse_event: OnMouseEvent§on_hover_event: OnHoverEvent§on_ui_input_event: OnUIInputEventTrait Implementations§
Source§impl Clone for XComponentCallbacks
impl Clone for XComponentCallbacks
Source§fn clone(&self) -> XComponentCallbacks
fn clone(&self) -> XComponentCallbacks
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for XComponentCallbacks
impl Default for XComponentCallbacks
Source§fn default() -> XComponentCallbacks
fn default() -> XComponentCallbacks
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for XComponentCallbacks
impl !RefUnwindSafe for XComponentCallbacks
impl !Send for XComponentCallbacks
impl !Sync for XComponentCallbacks
impl Unpin for XComponentCallbacks
impl UnsafeUnpin for XComponentCallbacks
impl !UnwindSafe for XComponentCallbacks
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more