pub struct UiInput {
pub pointer: Option<[f32; 2]>,
pub shift: bool,
pub ctrl: bool,
pub pressed: bool,
pub released: bool,
pub scroll: f32,
pub chars: String,
pub backspace: bool,
pub enter: bool,
}Expand description
Eingabe-Lage eines Frames. Der Editor mappt Plattform-Events
(re-platform) hierher; die Widgets kennen keine Plattform.
Fields§
§pointer: Option<[f32; 2]>Zeigerposition in Fenster-Pixeln; None = außerhalb.
shift: boolHält der Nutzer gerade Shift (Scrubbing läuft ×10 schneller)?
ctrl: boolHält der Nutzer gerade Strg (Scrubbing läuft ×10 feiner)?
pressed: boolLinke Maustaste in diesem Frame gedrückt worden.
released: boolLinke Maustaste in diesem Frame losgelassen worden.
scroll: f32Scroll-Rad in Pixeln (positiv = Inhalt nach unten schieben).
chars: StringGetippte Zeichen dieses Frames (bereits decoded).
backspace: bool§enter: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for UiInput
impl RefUnwindSafe for UiInput
impl Send for UiInput
impl Sync for UiInput
impl Unpin for UiInput
impl UnsafeUnpin for UiInput
impl UnwindSafe for UiInput
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