pub struct PresenterHostStyle {
pub flex_direction: Option<FlexDirection>,
pub justify_content: Option<JustifyContent>,
pub align_items: Option<AlignItems>,
pub background: Option<u32>,
pub padding: Option<EdgeInsets>,
pub corners: Option<Corners>,
pub border: Option<Border>,
pub shadow: Option<Shadow>,
pub cursor: Option<CursorStyle>,
pub opacity: Option<f32>,
}Fields§
§flex_direction: Option<FlexDirection>§justify_content: Option<JustifyContent>§align_items: Option<AlignItems>§background: Option<u32>§padding: Option<EdgeInsets>§corners: Option<Corners>§border: Option<Border>§shadow: Option<Shadow>§cursor: Option<CursorStyle>§opacity: Option<f32>Implementations§
Source§impl PresenterHostStyle
impl PresenterHostStyle
pub const fn new() -> Self
pub fn flex_direction(self, value: FlexDirection) -> Self
pub fn justify_content(self, value: JustifyContent) -> Self
pub fn align_items(self, value: AlignItems) -> Self
pub fn background(self, value: u32) -> Self
pub fn padding(self, value: EdgeInsets) -> Self
pub fn corners(self, value: Corners) -> Self
pub fn border(self, value: Border) -> Self
pub fn shadow(self, value: Shadow) -> Self
pub fn cursor(self, value: CursorStyle) -> Self
pub fn opacity(self, value: f32) -> Self
Trait Implementations§
Source§impl Clone for PresenterHostStyle
impl Clone for PresenterHostStyle
Source§fn clone(&self) -> PresenterHostStyle
fn clone(&self) -> PresenterHostStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PresenterHostStyle
Source§impl Debug for PresenterHostStyle
impl Debug for PresenterHostStyle
Source§impl Default for PresenterHostStyle
impl Default for PresenterHostStyle
Source§fn default() -> PresenterHostStyle
fn default() -> PresenterHostStyle
Returns the “default value” for a type. Read more
Source§impl PartialEq for PresenterHostStyle
impl PartialEq for PresenterHostStyle
impl StructuralPartialEq for PresenterHostStyle
Auto Trait Implementations§
impl Freeze for PresenterHostStyle
impl RefUnwindSafe for PresenterHostStyle
impl Send for PresenterHostStyle
impl Sync for PresenterHostStyle
impl Unpin for PresenterHostStyle
impl UnsafeUnpin for PresenterHostStyle
impl UnwindSafe for PresenterHostStyle
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