#[repr(i32)]pub enum BackgroundSizing {
InnerBorderEdge = 0,
OuterBorderEdge = 1,
CenterBorder = 2,
}Expand description
Defines how a background is drawn relative to its border.
Variants§
InnerBorderEdge = 0
The background is drawn up to the inside edge of the border.
The background will never be drawn under the border itself and will not be visible underneath the border regardless of border transparency.
OuterBorderEdge = 1
The background is drawn completely to the outside edge of the border.
The background will be visible underneath the border if the border has transparency.
CenterBorder = 2
The background is drawn to the midpoint (center) of the border.
The background will be visible underneath half of the border if the border has
transparency. For this reason it is not recommended to use
CenterBorder if transparency is involved.
This value does not exist in other XAML frameworks and only exists for backwards
compatibility with legacy code. Before BackgroundSizing was added, rendering always
used this value (Skia’s default).
Trait Implementations§
Source§impl Clone for BackgroundSizing
impl Clone for BackgroundSizing
impl Copy for BackgroundSizing
Source§impl Debug for BackgroundSizing
impl Debug for BackgroundSizing
Source§impl Default for BackgroundSizing
impl Default for BackgroundSizing
impl Eq for BackgroundSizing
Source§impl Hash for BackgroundSizing
impl Hash for BackgroundSizing
Source§impl MarkupTyped for BackgroundSizing
impl MarkupTyped for BackgroundSizing
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
Source§impl PartialEq for BackgroundSizing
impl PartialEq for BackgroundSizing
impl StructuralPartialEq for BackgroundSizing
Auto Trait Implementations§
impl Freeze for BackgroundSizing
impl RefUnwindSafe for BackgroundSizing
impl Send for BackgroundSizing
impl Sync for BackgroundSizing
impl Unpin for BackgroundSizing
impl UnsafeUnpin for BackgroundSizing
impl UnwindSafe for BackgroundSizing
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
affects_render, metadata
overrides). Read more