[][src]Struct unsegen::base::window::ExtentEstimationWindow

pub struct ExtentEstimationWindow { /* fields omitted */ }

A dummy window that does not safe any of the content written to it, but records the maximal coordinates used.

This is therefore suitable for determining the required space demand of a widget if nothing or not enough is known about the content of a widget.

Implementations

impl ExtentEstimationWindow[src]

pub fn with_width(width: Width) -> Self[src]

Create an ExtentEstimationWindow with a fixed width

pub fn unbounded() -> Self[src]

Create an ExtentEstimationWindow with an unbounded width

pub fn extent_x(&self) -> Width[src]

Get the width of the window required to display the contents written to the window.

pub fn extent_y(&self) -> Height[src]

Get the height of the window required to display the contents written to the window.

Trait Implementations

impl CursorTarget for ExtentEstimationWindow[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, 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.