Enum makepad_widgets::Event
pub enum Event {
Show 43 variants
Construct,
Destruct,
Pause,
Resume,
Draw(DrawEvent),
LiveEdit,
AppGotFocus,
AppLostFocus,
NextFrame(NextFrameEvent),
XRUpdate(XRUpdateEvent),
WindowDragQuery(WindowDragQueryEvent),
WindowCloseRequested(WindowCloseRequestedEvent),
WindowClosed(WindowClosedEvent),
WindowGeomChange(WindowGeomChangeEvent),
VirtualKeyboard(VirtualKeyboardEvent),
ClearAtlasses,
MouseDown(MouseDownEvent),
MouseMove(MouseMoveEvent),
MouseUp(MouseUpEvent),
TouchUpdate(TouchUpdateEvent),
Scroll(ScrollEvent),
Timer(TimerEvent),
Signal,
Trigger(TriggerEvent),
MenuCommand(MenuCommand),
KeyFocus(KeyFocusEvent),
KeyFocusLost(KeyFocusEvent),
KeyDown(KeyEvent),
KeyUp(KeyEvent),
TextInput(TextInputEvent),
TextCopy(TextClipboardEvent),
TextCut(TextClipboardEvent),
Drag(DragEvent),
Drop(DropEvent),
DragEnd,
AudioDevices(AudioDevicesEvent),
MidiPorts(MidiPortsEvent),
VideoInputs(VideoInputsEvent),
NetworkResponses(Vec<NetworkResponseEvent, Global>),
VideoStream(VideoStreamEvent),
VideoDecodingInitialized(VideoDecodingInitializedEvent),
VideoChunkDecoded(LiveId),
VideoDecodingError(VideoDecodingErrorEvent),
}
Variants§
Construct
Destruct
Pause
Resume
Draw(DrawEvent)
LiveEdit
AppGotFocus
AppLostFocus
NextFrame(NextFrameEvent)
XRUpdate(XRUpdateEvent)
WindowDragQuery(WindowDragQueryEvent)
WindowCloseRequested(WindowCloseRequestedEvent)
WindowClosed(WindowClosedEvent)
WindowGeomChange(WindowGeomChangeEvent)
VirtualKeyboard(VirtualKeyboardEvent)
ClearAtlasses
MouseDown(MouseDownEvent)
MouseMove(MouseMoveEvent)
MouseUp(MouseUpEvent)
TouchUpdate(TouchUpdateEvent)
Scroll(ScrollEvent)
Timer(TimerEvent)
Signal
Trigger(TriggerEvent)
MenuCommand(MenuCommand)
KeyFocus(KeyFocusEvent)
KeyFocusLost(KeyFocusEvent)
KeyDown(KeyEvent)
KeyUp(KeyEvent)
TextInput(TextInputEvent)
TextCopy(TextClipboardEvent)
TextCut(TextClipboardEvent)
Drag(DragEvent)
Drop(DropEvent)
DragEnd
AudioDevices(AudioDevicesEvent)
MidiPorts(MidiPortsEvent)
VideoInputs(VideoInputsEvent)
NetworkResponses(Vec<NetworkResponseEvent, Global>)
VideoStream(VideoStreamEvent)
VideoDecodingInitialized(VideoDecodingInitializedEvent)
VideoChunkDecoded(LiveId)
VideoDecodingError(VideoDecodingErrorEvent)
Implementations§
§impl Event
impl Event
pub fn requires_visibility(&self) -> bool
§impl Event
impl Event
pub fn hits(&self, cx: &mut Cx, area: Area) -> Hit
pub fn hits_with_sweep_area( &self, cx: &mut Cx, area: Area, sweep_area: Area ) -> Hit
pub fn hits_with_capture_overload( &self, cx: &mut Cx, area: Area, capture_overload: bool ) -> Hit
pub fn hits_with_options( &self, cx: &mut Cx, area: Area, options: HitOptions ) -> Hit
§impl Event
impl Event
pub fn drag_hits(&self, cx: &mut Cx, area: Area) -> DragHit
pub fn drag_hits_with_options( &self, cx: &mut Cx, area: Area, options: HitOptions ) -> DragHit
§impl Event
impl Event
pub fn network_responses( &self ) -> NetworkResponseIter<Iter<'_, NetworkResponseEvent>> ⓘ
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Event
impl !Send for Event
impl !Sync for Event
impl Unpin for Event
impl !UnwindSafe for Event
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