/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
usesuper::{Element, ElementBuilder};
/// A box which lays out contents horizontally. #[derive(Default, Debug)] pubstruct HBox { pub items: Vec<Element>, pub spacing: u32, pub affirmative_order: bool,
}
/// Whether children are in affirmative order (and should be reordered based on platform /// conventions). /// /// The children passed to `add_child` should be in most-affirmative to least-affirmative order /// (e.g., "OK" then "Cancel" buttons). /// /// This is mainly useful for dialog buttons. pubfn affirmative_order(&mutself, value: bool) { self.element_type.affirmative_order = value;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.