pub struct BrepApp { /* private fields */ }Implementations§
Source§impl BrepApp
impl BrepApp
Sourcepub fn automation(&self) -> &Arc<AutomationQueue> ⓘ
pub fn automation(&self) -> &Arc<AutomationQueue> ⓘ
The automation queue a host submits commands to.
Sourcepub fn view_rect(&self) -> Option<Rect>
pub fn view_rect(&self) -> Option<Rect>
The 3D viewport rect of the last frame, in egui points.
Sourcepub fn docs_engine(&self) -> &EngineState
pub fn docs_engine(&self) -> &EngineState
The active document’s engine.
pub fn new(cc: &CreationContext<'_>) -> Result<Self, String>
Sourcepub fn new_with(
cc: &CreationContext<'_>,
opts: AppOptions,
) -> Result<Self, String>
pub fn new_with( cc: &CreationContext<'_>, opts: AppOptions, ) -> Result<Self, String>
Build the app with host-supplied options: an isolated store (a host MUST pass one, spec §8) and whether to start on the seed model.
Sourcepub fn set_settings_window_open(&mut self, open: bool)
pub fn set_settings_window_open(&mut self, open: bool)
Open or close the floating Settings window — the toolbar gear’s flag,
reachable from the automation layer (settings_window).
Sourcepub fn set_part_properties_window_open(&mut self, open: bool)
pub fn set_part_properties_window_open(&mut self, open: bool)
Open or close the floating Part Properties window — the toolbar tag
button’s flag, reachable from the automation layer
(part_properties_window).
Sourcepub fn set_info_window_open(&mut self, open: bool)
pub fn set_info_window_open(&mut self, open: bool)
Open or close the floating Info window — the toolbar info button’s flag,
reachable from the automation layer (info_window).
Sourcepub fn diagnostics(&self) -> &Diagnostics
pub fn diagnostics(&self) -> &Diagnostics
What this session is running on. The app’s ONE record of it: the Info
window draws it, a problem report carries it, the diagnostics command
returns it and the MCP banner names its adapter — all from here.
Sourcepub fn begin_bug_report(&mut self, ctx: &Context)
pub fn begin_bug_report(&mut self, ctx: &Context)
Begin the in-app problem report: the same call the Submit Bug button
makes, and for the same reason it makes it THIS frame — request
captures the current frame before its own dialog exists.
Sourcepub fn update_components(
&mut self,
run: bool,
) -> Result<(usize, Vec<String>, usize), String>
pub fn update_components( &mut self, run: bool, ) -> Result<(usize, Vec<String>, usize), String>
The parts-library staleness check and its refresh — the Constraints
header’s “Update components (N)” button, reachable as the
component_update command. Returns (outdated, missing, refreshed);
run is skipped when nothing is outdated.
Run what a WORKBENCH TOOLBAR button does, by its WorkbenchButton::id.
Split out of ui so a toolbar click and the workbench_button command
run the SAME arms: the workbench registry declares a button, this
dispatches it, and the automation surface owns no second copy of the
list. Returns whether the id was known.
Trait Implementations§
Source§impl App for BrepApp
impl App for BrepApp
Source§fn raw_input_hook(&mut self, ctx: &Context, raw_input: &mut RawInput)
fn raw_input_hook(&mut self, ctx: &Context, raw_input: &mut RawInput)
Phase 1 of the automation frame (§4.4): queued input commands become
egui events; a screenshot that landed completes its reply. Called by
every eframe runner before ui; the headless host calls it itself.
Source§fn ui(&mut self, ui: &mut Ui, _frame: &mut Frame)
fn ui(&mut self, ui: &mut Ui, _frame: &mut Frame)
Source§fn logic(&mut self, ctx: &Context, frame: &mut Frame)
fn logic(&mut self, ctx: &Context, frame: &mut Frame)
Self::ui,
and additionally also called when the UI is hidden, but egui::Context::request_repaint was called. Read moreSource§fn save(&mut self, _storage: &mut dyn Storage)
fn save(&mut self, _storage: &mut dyn Storage)
Source§fn on_exit(&mut self)
fn on_exit(&mut self)
Self::save. Read moreSource§fn auto_save_interval(&self) -> Duration
fn auto_save_interval(&self) -> Duration
Self::saveSource§fn clear_color(&self, _visuals: &Visuals) -> [f32; 4]
fn clear_color(&self, _visuals: &Visuals) -> [f32; 4]
gl.clearColor. Read moreSource§fn persist_egui_memory(&self) -> bool
fn persist_egui_memory(&self) -> bool
Auto Trait Implementations§
impl !RefUnwindSafe for BrepApp
impl !Send for BrepApp
impl !Sync for BrepApp
impl !UnwindSafe for BrepApp
impl Freeze for BrepApp
impl Unpin for BrepApp
impl UnsafeUnpin for BrepApp
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more