pub struct PaintStyle { /* private fields */ }Expand description
Paint-only visual properties decoupled from layout calculation.
Implementations§
Source§impl PaintStyle
Non-panicking optional field readers for PaintStyle.
impl PaintStyle
Non-panicking optional field readers for PaintStyle.
Sourcepub fn background_color(&self) -> Option<Color>
pub fn background_color(&self) -> Option<Color>
Sourcepub fn background_gradient(&self) -> Option<LinearGradient>
pub fn background_gradient(&self) -> Option<LinearGradient>
Sourcepub fn box_shadow(&self) -> Option<Shadow>
pub fn box_shadow(&self) -> Option<Shadow>
Source§impl PaintStyle
impl PaintStyle
pub fn get_mut_background(&mut self) -> &mut Option<Color>
pub fn set_background(&mut self, val: Option<Color>) -> &mut Self
pub fn get_mut_gradient(&mut self) -> &mut Option<LinearGradient>
pub fn set_gradient(&mut self, val: Option<LinearGradient>) -> &mut Self
pub fn get_border(&self) -> Border
pub fn get_mut_border(&mut self) -> &mut Border
pub fn set_border(&mut self, val: Border) -> &mut Self
pub fn get_radius(&self) -> CornerRadius
pub fn get_mut_radius(&mut self) -> &mut CornerRadius
pub fn set_radius(&mut self, val: CornerRadius) -> &mut Self
pub fn get_mut_shadow(&mut self) -> &mut Option<Shadow>
pub fn set_shadow(&mut self, val: Option<Shadow>) -> &mut Self
pub fn get_mut_focus_ring(&mut self) -> &mut Option<Border>
pub fn set_focus_ring(&mut self, val: Option<Border>) -> &mut Self
pub fn get_opacity(&self) -> f32
pub fn get_mut_opacity(&mut self) -> &mut f32
pub fn set_opacity(&mut self, val: f32) -> &mut Self
pub fn get_transform(&self) -> Transform2D
pub fn get_mut_transform(&mut self) -> &mut Transform2D
pub fn set_transform(&mut self, val: Transform2D) -> &mut Self
pub fn get_cursor(&self) -> CursorIcon
pub fn get_mut_cursor(&mut self) -> &mut CursorIcon
pub fn set_cursor(&mut self, val: CursorIcon) -> &mut Self
pub fn get_pointer_events(&self) -> PointerEvents
pub fn get_mut_pointer_events(&mut self) -> &mut PointerEvents
pub fn set_pointer_events(&mut self, val: PointerEvents) -> &mut Self
pub fn get_stop_scroll_propagation(&self) -> bool
pub fn get_mut_stop_scroll_propagation(&mut self) -> &mut bool
pub fn set_stop_scroll_propagation(&mut self, val: bool) -> &mut Self
pub fn get_stop_event_propagation(&self) -> bool
pub fn get_mut_stop_event_propagation(&mut self) -> &mut bool
pub fn set_stop_event_propagation(&mut self, val: bool) -> &mut Self
Trait Implementations§
Source§impl Clone for PaintStyle
impl Clone for PaintStyle
impl Copy for PaintStyle
Source§impl Debug for PaintStyle
impl Debug for PaintStyle
Source§impl Default for PaintStyle
Default paint properties (opacity = 1.0, transparent background).
impl Default for PaintStyle
Default paint properties (opacity = 1.0, transparent background).
Source§impl PartialEq for PaintStyle
impl PartialEq for PaintStyle
impl StructuralPartialEq for PaintStyle
Auto Trait Implementations§
impl Forget for PaintStyle
impl Freeze for PaintStyle
impl Move for PaintStyle
impl RefUnwindSafe for PaintStyle
impl Send for PaintStyle
impl Sync for PaintStyle
impl Unpin for PaintStyle
impl UnsafeUnpin for PaintStyle
impl UnwindSafe for PaintStyle
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