pub enum BackgroundStyle {
Erase,
System,
Paint,
Colour,
}Expand description
Background style for windows, affecting how background painting is handled.
Variants§
Erase
The background is erased automatically by the system. This is the default for most controls and is suitable for most cases.
System
The background is erased by the system as in Erase, but using the current background color instead of the default one.
Paint
The background is not erased automatically, and the application is responsible for painting the entire background in its paint handler. This is optimal for custom drawing and animation as it prevents flicker.
Colour
Similar to Paint, but the background is filled with the background colour before calling the paint event handler.
Implementations§
Trait Implementations§
Source§impl Clone for BackgroundStyle
impl Clone for BackgroundStyle
Source§fn clone(&self) -> BackgroundStyle
fn clone(&self) -> BackgroundStyle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BackgroundStyle
impl Debug for BackgroundStyle
Source§impl PartialEq for BackgroundStyle
impl PartialEq for BackgroundStyle
impl Copy for BackgroundStyle
impl Eq for BackgroundStyle
impl StructuralPartialEq for BackgroundStyle
Auto Trait Implementations§
impl Freeze for BackgroundStyle
impl RefUnwindSafe for BackgroundStyle
impl Send for BackgroundStyle
impl Sync for BackgroundStyle
impl Unpin for BackgroundStyle
impl UnwindSafe for BackgroundStyle
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