pub struct AlignmentRuleOption { /* private fields */ }Expand description
Alignment-rule option wrapper for relative container layout.
Implementations§
Source§impl AlignmentRuleOption
impl AlignmentRuleOption
pub fn new() -> ArkUIResult<Self>
pub fn dispose(self)
pub fn set_start( &mut self, id: Option<&str>, alignment: HorizontalAlignment, ) -> ArkUIResult<()>
pub fn set_end( &mut self, id: Option<&str>, alignment: HorizontalAlignment, ) -> ArkUIResult<()>
pub fn set_center_horizontal( &mut self, id: Option<&str>, alignment: HorizontalAlignment, ) -> ArkUIResult<()>
pub fn set_top( &mut self, id: Option<&str>, alignment: VerticalAlignment, ) -> ArkUIResult<()>
pub fn set_bottom( &mut self, id: Option<&str>, alignment: VerticalAlignment, ) -> ArkUIResult<()>
pub fn set_center_vertical( &mut self, id: Option<&str>, alignment: VerticalAlignment, ) -> ArkUIResult<()>
pub fn set_bias_horizontal(&mut self, bias: f32)
pub fn set_bias_vertical(&mut self, bias: f32)
pub fn get_start_id(&self) -> Option<String>
pub fn get_start_alignment(&self) -> HorizontalAlignment
pub fn get_end_id(&self) -> Option<String>
pub fn get_end_alignment(&self) -> HorizontalAlignment
pub fn get_center_id_horizontal(&self) -> Option<String>
pub fn get_center_alignment_horizontal(&self) -> HorizontalAlignment
pub fn get_top_id(&self) -> Option<String>
pub fn get_top_alignment(&self) -> VerticalAlignment
pub fn get_bottom_id(&self) -> Option<String>
pub fn get_bottom_alignment(&self) -> VerticalAlignment
pub fn get_center_id_vertical(&self) -> Option<String>
pub fn get_center_alignment_vertical(&self) -> VerticalAlignment
pub fn get_bias_horizontal(&self) -> f32
pub fn get_bias_vertical(&self) -> f32
Trait Implementations§
Source§impl From<&AlignmentRuleOption> for ArkUINodeAttributeItem
impl From<&AlignmentRuleOption> for ArkUINodeAttributeItem
Source§fn from(value: &AlignmentRuleOption) -> Self
fn from(value: &AlignmentRuleOption) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Send for AlignmentRuleOption
impl !Sync for AlignmentRuleOption
impl Freeze for AlignmentRuleOption
impl RefUnwindSafe for AlignmentRuleOption
impl Unpin for AlignmentRuleOption
impl UnsafeUnpin for AlignmentRuleOption
impl UnwindSafe for AlignmentRuleOption
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