pub struct TextEditPlugin;Expand description
Plugin that wires the text-edit systems.
Ordering inside TickStage::Systems:
text_attach_bufferearly (so freshly-spawned<input>has a buffer).text_apply_editsinTextEditSet::Apply, afterTextEditSet::Producers-lumen-inputtags its request producers (type_into_focused,text_pointer_to_caret,text_pointer_drag_select,route_ime_events,cycle_focus_on_tab) with that shared label, so pointer edits apply on the tick they were produced. The set edge is inert when no producer is installed.text_mirror_buffer_to_content(TextEditSet::Mirror) aftertext_apply_edits.text_reflect_content_to_bufferafter the mirror (catches signal bindings and any legacy directTextContentwrites).caret_blinkafter the mirror so a same-tick edit resets the phase before extract reads it.
Bind-text mirroring runs in its own stage; the mirror system writes
TextContent so push_textinput_to_signal (which filters on
Changed<TextContent>) keeps picking up edits.
Trait Implementations§
Source§impl Default for TextEditPlugin
Default plugin metadata for TextEditPlugin.
impl Default for TextEditPlugin
Default plugin metadata for TextEditPlugin.
Auto Trait Implementations§
impl Freeze for TextEditPlugin
impl RefUnwindSafe for TextEditPlugin
impl Send for TextEditPlugin
impl Sync for TextEditPlugin
impl Unpin for TextEditPlugin
impl UnsafeUnpin for TextEditPlugin
impl UnwindSafe for TextEditPlugin
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
§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Creates Self using default().
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.