pub struct PanelState {
pub selected: Option<u32>,
pub log: Vec<String>,
pub cmdline: String,
pub assistant_line: String,
pub open_menu: Option<String>,
pub tab_pick: Option<String>,
pub edits: HashMap<String, String>,
pub scrub: Option<(String, [f32; 2])>,
pub popup: Option<Rect>,
pub drag_panel: Option<String>,
pub drag_ended: bool,
pub drop: Option<(String, DockEdge)>,
}Expand description
Panel-übergreifender UI-Zustand über Frames.
Fields§
§selected: Option<u32>Ausgewählte Entity (Index); die Selektion im EditorState wird
über die Capability editor.selection.set nachgezogen.
log: Vec<String>Konsolen-Puffer (älteste Zeile zuerst).
cmdline: StringKommandozeile der Konsole.
assistant_line: StringEingabefeld des Assistant-Docks.
Geöffnetes Aufklapp-Menü (Menü-id) oder None.
tab_pick: Option<String>Von einem Tab-Knopf angeforderte Aktivierung — die App setzt sie
im Dock-Baum um (activate_tab) und leert das Feld.
edits: HashMap<String, String>Editier-Puffer des Inspektors: “entity/komponente/pfad” → Text.
scrub: Option<(String, [f32; 2])>Läuft gerade ein Wert-Scrubbing: live-Wert + Anker des Wert-Kästchens unter der Zeile.
popup: Option<Rect>Popup-Rechteck des offenen Menüs (für Klick-außerhalb-Test).
drag_panel: Option<String>Läuft ein Tab-Umlager-Drag (Panel-id)?
drag_ended: boolDer Umlager-Drag ist im aktuellen Frame losgelassen worden.
drop: Option<(String, DockEdge)>Aktive Drop-Zone während des Umlager-Drag (Ziel-Panel + Kante).
Implementations§
Trait Implementations§
Source§impl Default for PanelState
impl Default for PanelState
Source§fn default() -> PanelState
fn default() -> PanelState
Auto Trait Implementations§
impl Freeze for PanelState
impl RefUnwindSafe for PanelState
impl Send for PanelState
impl Sync for PanelState
impl Unpin for PanelState
impl UnsafeUnpin for PanelState
impl UnwindSafe for PanelState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> Component for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().