pub struct FormView {
pub name: String,
pub min_width: f32,
pub max_width: f32,
pub min_height: f32,
pub max_height: f32,
pub orientation: ViewOrientation,
pub platforms: Vec<String>,
pub font_scale: f32,
pub spacing_scale: f32,
pub changes: Vec<ViewChange>,
}Expand description
Uma vista: quando todas as condições valem, as changes e as escalas valem por cima do
base. Um limite 0 é “sem limite”.
Fields§
§name: Stringphone, tablet ou outro nome (a IDE mostra Celular, Tablet…).
min_width: f32§max_width: f32§min_height: f32§max_height: f32§orientation: ViewOrientation§platforms: Vec<String>As plataformas onde vale (vazio: todas), como em PLATFORMS.
font_scale: f32Multiplica o tamanho de todas as fontes do form (1: como no desenho).
spacing_scale: f32Multiplica os espaços do layout do form: padding, margins e o gap das grades e
fluxos (1: como no desenho).
changes: Vec<ViewChange>Implementations§
Trait Implementations§
impl StructuralPartialEq for FormView
Auto Trait Implementations§
impl Forget for FormView
impl Freeze for FormView
impl Move for FormView
impl RefUnwindSafe for FormView
impl Send for FormView
impl Sync for FormView
impl Unpin for FormView
impl UnsafeUnpin for FormView
impl UnwindSafe for FormView
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