pub struct LayoutConstraint { /* private fields */ }Expand description
Layout constraint wrapper for max/min size rules.
Implementations§
Source§impl LayoutConstraint
impl LayoutConstraint
pub fn new() -> ArkUIResult<Self>
pub fn copy(&self) -> ArkUIResult<Self>
pub fn dispose(self)
pub fn get_max_width(&self) -> i32
pub fn get_min_width(&self) -> i32
pub fn get_max_height(&self) -> i32
pub fn get_min_height(&self) -> i32
pub fn get_percent_reference_width(&self) -> i32
pub fn get_percent_reference_height(&self) -> i32
pub fn set_max_width(&mut self, value: i32)
pub fn set_min_width(&mut self, value: i32)
pub fn set_max_height(&mut self, value: i32)
pub fn set_min_height(&mut self, value: i32)
pub fn set_percent_reference_width(&mut self, value: i32)
pub fn set_percent_reference_height(&mut self, value: i32)
Trait Implementations§
Source§impl From<&LayoutConstraint> for ArkUINodeAttributeItem
impl From<&LayoutConstraint> for ArkUINodeAttributeItem
Source§fn from(value: &LayoutConstraint) -> Self
fn from(value: &LayoutConstraint) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Send for LayoutConstraint
impl !Sync for LayoutConstraint
impl Freeze for LayoutConstraint
impl RefUnwindSafe for LayoutConstraint
impl Unpin for LayoutConstraint
impl UnsafeUnpin for LayoutConstraint
impl UnwindSafe for LayoutConstraint
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