[−][src]Struct iced_audio::core::TexturePadding
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 fortop
andbottom
horizontal_pad
- padding forleft
andright
Trait Implementations
impl Clone for TexturePadding
[src]
fn clone(&self) -> TexturePadding
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for TexturePadding
[src]
impl Debug for TexturePadding
[src]
impl Default for TexturePadding
[src]
impl PartialEq<TexturePadding> for TexturePadding
[src]
fn eq(&self, other: &TexturePadding) -> bool
[src]
fn ne(&self, other: &TexturePadding) -> bool
[src]
impl StructuralPartialEq for TexturePadding
[src]
Auto Trait Implementations
impl RefUnwindSafe for TexturePadding
impl Send for TexturePadding
impl Sync for TexturePadding
impl Unpin for TexturePadding
impl UnwindSafe for TexturePadding
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,