pub struct CompactPaintStyle { /* private fields */ }Expand description
Dense 32-byte cache-compact paint style storing hot fields inline and referencing rare effects via effect_id.
Implementations§
Source§impl CompactPaintStyle
Encoding and decoding helpers for 32-byte CompactPaintStyle.
impl CompactPaintStyle
Encoding and decoding helpers for 32-byte CompactPaintStyle.
Sourcepub fn from_paint(paint: &PaintStyle, effect_id: u32) -> Self
pub fn from_paint(paint: &PaintStyle, effect_id: u32) -> Self
Sourcepub fn background_color(&self) -> Option<Color>
pub fn background_color(&self) -> Option<Color>
Sourcepub fn corner_radius(&self) -> CornerRadius
pub fn corner_radius(&self) -> CornerRadius
Sourcepub fn cursor(&self) -> CursorIcon
pub fn cursor(&self) -> CursorIcon
Sourcepub fn pointer_events(&self) -> PointerEvents
pub fn pointer_events(&self) -> PointerEvents
Sourcepub fn stop_scroll_propagation(&self) -> bool
pub fn stop_scroll_propagation(&self) -> bool
Sourcepub fn stop_event_propagation(&self) -> bool
pub fn stop_event_propagation(&self) -> bool
Source§impl CompactPaintStyle
impl CompactPaintStyle
pub fn get_background(&self) -> Color
pub fn get_mut_background(&mut self) -> &mut Color
pub fn set_background(&mut self, val: Color) -> &mut Self
pub fn get_border_color(&self) -> Color
pub fn get_mut_border_color(&mut self) -> &mut Color
pub fn set_border_color(&mut self, val: Color) -> &mut Self
pub fn get_border_width(&self) -> f32
pub fn get_mut_border_width(&mut self) -> &mut f32
pub fn set_border_width(&mut self, val: f32) -> &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_effect_id(&self) -> u32
pub fn get_mut_effect_id(&mut self) -> &mut u32
pub fn set_effect_id(&mut self, val: u32) -> &mut Self
pub fn get_flags(&self) -> u32
pub fn get_mut_flags(&mut self) -> &mut u32
pub fn set_flags(&mut self, val: u32) -> &mut Self
Trait Implementations§
Source§impl Clone for CompactPaintStyle
impl Clone for CompactPaintStyle
impl Copy for CompactPaintStyle
Source§impl Debug for CompactPaintStyle
impl Debug for CompactPaintStyle
Source§impl Default for CompactPaintStyle
Default 32-byte compact paint style (opacity = 1.0, transparent background, no effects).
impl Default for CompactPaintStyle
Default 32-byte compact paint style (opacity = 1.0, transparent background, no effects).
Source§impl PartialEq for CompactPaintStyle
impl PartialEq for CompactPaintStyle
impl StructuralPartialEq for CompactPaintStyle
Auto Trait Implementations§
impl Forget for CompactPaintStyle
impl Freeze for CompactPaintStyle
impl Move for CompactPaintStyle
impl RefUnwindSafe for CompactPaintStyle
impl Send for CompactPaintStyle
impl Sync for CompactPaintStyle
impl Unpin for CompactPaintStyle
impl UnsafeUnpin for CompactPaintStyle
impl UnwindSafe for CompactPaintStyle
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