[−][src]Struct tuifw_screen_base::Thickness
Implementations
impl Thickness
[src]
pub fn new(l: i32, t: i32, r: i32, b: i32) -> Self
[src]
pub unsafe fn new_unchecked(l: i32, t: i32, r: i32, b: i32) -> Self
[src]
pub fn all(a: i32) -> Thickness
[src]
pub fn l(self) -> i32
[src]
pub fn t(self) -> i32
[src]
pub fn r(self) -> i32
[src]
pub fn b(self) -> i32
[src]
pub fn align(
inner: Vector,
outer: Vector,
h_align: HAlign,
v_align: VAlign
) -> Thickness
[src]
inner: Vector,
outer: Vector,
h_align: HAlign,
v_align: VAlign
) -> Thickness
pub fn shrink_rect(self, rect: Rect) -> Rect
[src]
pub fn expand_rect(self, rect: Rect) -> Rect
[src]
pub fn shrink_rect_size(self, rect_size: Vector) -> Vector
[src]
pub fn expand_rect_size(self, rect_size: Vector) -> Vector
[src]
pub fn shrink_band_h(self, band_h: i16) -> i16
[src]
pub fn expand_band_h(self, band_h: i16) -> i16
[src]
pub fn shrink_band_w(self, band_w: i16) -> i16
[src]
pub fn expand_band_w(self, band_w: i16) -> i16
[src]
Trait Implementations
impl Add<Thickness> for Thickness
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Self
[src]
impl AddAssign<Thickness> for Thickness
[src]
fn add_assign(&mut self, other: Self)
[src]
impl Clone for Thickness
[src]
fn clone(&self) -> Thickness
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Thickness
[src]
impl Debug for Thickness
[src]
impl Default for Thickness
[src]
impl Eq for Thickness
[src]
impl Hash for Thickness
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Index<Side> for Thickness
[src]
impl IndexMut<Side> for Thickness
[src]
impl Neg for Thickness
[src]
impl PartialEq<Thickness> for Thickness
[src]
impl StructuralEq for Thickness
[src]
impl StructuralPartialEq for Thickness
[src]
impl Sub<Thickness> for Thickness
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: Self) -> Self
[src]
impl SubAssign<Thickness> for Thickness
[src]
fn sub_assign(&mut self, other: Self)
[src]
Auto Trait Implementations
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> 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>,