[][src]Struct iced_audio::core::TexturePadding

pub struct TexturePadding {
    pub top: u16,
    pub bottom: u16,
    pub left: u16,
    pub right: u16,
}

The texture padding around a bounding rectangle. This is useful when the texture is larger than the intended bounds of the widget, such as a glowing button texture or a slider with a drop shadow, etc.

Fields

top: u16

Padding above the bounding rectangle in pixels

bottom: u16

Padding below the bounding rectangle in pixels

left: u16

Padding to the left of the bounding rectangle in pixels

right: u16

Padding to the right of the bounding rectangle in pixels

Implementations

impl TexturePadding[src]

pub fn from_single(padding: u16) -> Self[src]

Creates a new TexturePadding with top, bottom, left, and right all set to padding.

pub fn from_v_h(vertical_pad: u16, horizontal_pad: u16) -> Self[src]

Creates a new TexturePadding

Arguments

  • vertical_pad - padding for top and bottom
  • horizontal_pad - padding for left and right

Trait Implementations

impl Clone for TexturePadding[src]

impl Copy for TexturePadding[src]

impl Debug for TexturePadding[src]

impl Default for TexturePadding[src]

impl PartialEq<TexturePadding> for TexturePadding[src]

impl StructuralPartialEq for TexturePadding[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,