pub trait FormFactory {
// Required methods
fn create_form(
&mut self,
ui: &mut Ui,
name: &str,
) -> Result<ComponentId, String>;
fn form_names(&self) -> Vec<String>;
}Expand description
Cria forms pelo nome (como o Application.CreateForm). O aylis-project instala um que
carrega os forms do projeto (forms/*.json).
Required Methods§
Sourcefn create_form(
&mut self,
ui: &mut Ui,
name: &str,
) -> Result<ComponentId, String>
fn create_form( &mut self, ui: &mut Ui, name: &str, ) -> Result<ComponentId, String>
Cria o form name (sem abrir) e devolve o id.
Sourcefn form_names(&self) -> Vec<String>
fn form_names(&self) -> Vec<String>
Nomes dos forms que esta fábrica sabe criar.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".