[][src]Struct tuifw_screen_base::Thickness

pub struct Thickness { /* fields omitted */ }

Implementations

impl Thickness[src]

pub const fn new(l: i32, t: i32, r: i32, b: i32) -> Self[src]

pub const unsafe fn new_unchecked(l: i32, t: i32, r: i32, b: i32) -> Self[src]

pub const 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]

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.

impl AddAssign<Thickness> for Thickness[src]

impl Clone for Thickness[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]

impl Index<Side> for Thickness[src]

type Output = i32

The returned type after indexing.

impl IndexMut<Side> for Thickness[src]

impl Neg for Thickness[src]

type Output = Self

The resulting type after applying the - operator.

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.

impl SubAssign<Thickness> for Thickness[src]

Auto Trait Implementations

impl Send for Thickness

impl Sync for Thickness

impl Unpin for Thickness

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> 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.