Struct i_slint_compiler::layout::LayoutConstraints
source · [−]pub struct LayoutConstraints {
pub min_width: Option<NamedReference>,
pub max_width: Option<NamedReference>,
pub min_height: Option<NamedReference>,
pub max_height: Option<NamedReference>,
pub preferred_width: Option<NamedReference>,
pub preferred_height: Option<NamedReference>,
pub horizontal_stretch: Option<NamedReference>,
pub vertical_stretch: Option<NamedReference>,
pub fixed_width: bool,
pub fixed_height: bool,
}
Fields
min_width: Option<NamedReference>
max_width: Option<NamedReference>
min_height: Option<NamedReference>
max_height: Option<NamedReference>
preferred_width: Option<NamedReference>
preferred_height: Option<NamedReference>
horizontal_stretch: Option<NamedReference>
vertical_stretch: Option<NamedReference>
fixed_width: bool
fixed_height: bool
Implementations
sourceimpl LayoutConstraints
impl LayoutConstraints
pub fn new(element: &ElementRc, diag: &mut BuildDiagnostics) -> Self
pub fn has_explicit_restrictions(&self) -> bool
pub fn for_each_restrictions<'a>(
&'a self,
orientation: Orientation
) -> impl Iterator<Item = (&NamedReference, &'static str)>
pub fn visit_named_references(
&mut self,
visitor: &mut impl FnMut(&mut NamedReference)
)
Trait Implementations
sourceimpl Clone for LayoutConstraints
impl Clone for LayoutConstraints
sourcefn clone(&self) -> LayoutConstraints
fn clone(&self) -> LayoutConstraints
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for LayoutConstraints
impl Debug for LayoutConstraints
sourceimpl Default for LayoutConstraints
impl Default for LayoutConstraints
sourcefn default() -> LayoutConstraints
fn default() -> LayoutConstraints
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for LayoutConstraints
impl !Send for LayoutConstraints
impl !Sync for LayoutConstraints
impl Unpin for LayoutConstraints
impl !UnwindSafe for LayoutConstraints
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
sourcefn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian()
.
sourcefn read_from_big_endian(read: &mut R) -> Result<Self, Error>
fn read_from_big_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian()
.
sourcefn read_from_native_endian(read: &mut R) -> Result<Self, Error>
fn read_from_native_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian()
.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more