[][src]Enum azul_css::Overflow

pub enum Overflow {
    Scroll,
    Auto,
    Hidden,
    Visible,
}

Represents a overflow-x or overflow-y property, see TextOverflowBehaviour - default: Auto

Variants

Scroll

Always shows a scroll bar, overflows on scroll

Auto

Does not show a scroll bar by default, only when text is overflowing

Hidden

Never shows a scroll bar, simply clips text

Visible

Doesn't show a scroll bar, simply overflows the text

Implementations

impl Overflow[src]

pub fn needs_scrollbar(&self, currently_overflowing: bool) -> bool[src]

Returns whether this overflow value needs to display the scrollbars.

  • overflow:scroll always shows the scrollbar
  • overflow:auto only shows the scrollbar when the content is currently overflowing
  • overflow:hidden and overflow:visible do not show any scrollbars

pub fn is_overflow_visible(&self) -> bool[src]

Returns whether this is an overflow:visible node (the only overflow type that doesn't clip its children)

Trait Implementations

impl Clone for Overflow[src]

impl Copy for Overflow[src]

impl Debug for Overflow[src]

impl Default for Overflow[src]

impl Eq for Overflow[src]

impl Hash for Overflow[src]

impl Ord for Overflow[src]

impl PartialEq<Overflow> for Overflow[src]

impl PartialOrd<Overflow> for Overflow[src]

impl StructuralEq for Overflow[src]

impl StructuralPartialEq for Overflow[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> 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.