[−][src]Struct unsegen::base::window::ExtentEstimationWindow
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]
fn get_width(&self) -> Width
[src]
fn get_height(&self) -> Height
[src]
fn get_cell_mut(
&mut self,
x: ColIndex,
y: RowIndex
) -> Option<&mut StyledGraphemeCluster>
[src]
&mut self,
x: ColIndex,
y: RowIndex
) -> Option<&mut StyledGraphemeCluster>
fn get_cell(&self, x: ColIndex, _: RowIndex) -> Option<&StyledGraphemeCluster>
[src]
fn get_default_style(&self) -> Style
[src]
fn get_soft_width(&self) -> Width
[src]
Auto Trait Implementations
impl RefUnwindSafe for ExtentEstimationWindow
impl Send for ExtentEstimationWindow
impl Sync for ExtentEstimationWindow
impl Unpin for ExtentEstimationWindow
impl UnwindSafe for ExtentEstimationWindow
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,
pub 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, 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.
pub 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>,