[−][src]Struct tuikit::prelude::Win
A Win is like a div in HTML, it has its margin/padding, and border
Methods
impl<'a> Win<'a>
[src]
pub fn new(draw: &'a dyn Draw) -> Self
[src]
pub fn margin_top(self, margin_top: impl Into<Size>) -> Self
[src]
pub fn margin_right(self, margin_right: impl Into<Size>) -> Self
[src]
pub fn margin_bottom(self, margin_bottom: impl Into<Size>) -> Self
[src]
pub fn margin_left(self, margin_left: impl Into<Size>) -> Self
[src]
pub fn margin(self, margin: impl Into<Size>) -> Self
[src]
pub fn padding_top(self, padding_top: impl Into<Size>) -> Self
[src]
pub fn padding_right(self, padding_right: impl Into<Size>) -> Self
[src]
pub fn padding_bottom(self, padding_bottom: impl Into<Size>) -> Self
[src]
pub fn padding_left(self, padding_left: impl Into<Size>) -> Self
[src]
pub fn padding(self, padding: impl Into<Size>) -> Self
[src]
pub fn border_top(self, border_top: bool) -> Self
[src]
pub fn border_right(self, border_right: bool) -> Self
[src]
pub fn border_bottom(self, border_bottom: bool) -> Self
[src]
pub fn border_left(self, border_left: bool) -> Self
[src]
pub fn border(self, border: bool) -> Self
[src]
pub fn border_top_attr(self, border_top_attr: impl Into<Attr>) -> Self
[src]
pub fn border_right_attr(self, border_right_attr: impl Into<Attr>) -> Self
[src]
pub fn border_bottom_attr(self, border_bottom_attr: impl Into<Attr>) -> Self
[src]
pub fn border_left_attr(self, border_left_attr: impl Into<Attr>) -> Self
[src]
pub fn border_attr(self, attr: impl Into<Attr>) -> Self
[src]
pub fn basis(self, basis: impl Into<Size>) -> Self
[src]
pub fn grow(self, grow: usize) -> Self
[src]
pub fn shrink(self, shrink: usize) -> Self
[src]
Trait Implementations
impl<'a> Split for Win<'a>
[src]
fn get_basis(&self) -> Size
[src]
fn get_grow(&self) -> usize
[src]
fn get_shrink(&self) -> usize
[src]
fn inner_size(&self) -> (Size, Size)
[src]
get the default size of inner content, will be used if basis
is Default
impl<'a> Draw for Win<'a>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,