LogBookCfg

Struct LogBookCfg 

Source
pub struct LogBookCfg<U> { /* private fields */ }
Expand description

Implementations§

Source§

impl<U> LogBookCfg<U>

Source

pub fn open_by_default(self) -> Self

Have the LogBook be open by default

Source

pub fn keep_open_on_unfocus(self) -> Self

Keeps the LogBook open when unfocused, as opposed to hiding it

Source

pub fn formatted( self, fmt: impl FnMut(Record) -> Option<Text> + Send + 'static, ) -> Self

Changes the way Records are formatted by the LogBook

This function returns an Option<Text>, which means you can filter out unnecessary Records. By default, all valid Records (those with level Debug or higher.

Source

pub fn on_the_right(self) -> Self

Pushes the LogBook to the right, as opposed to below

Source

pub fn on_the_left(self) -> Self

Pushes the LogBook to the left, as opposed to below

Source

pub fn above(self) -> Self

Pushes the LogBook above, as opposed to below

Source

pub fn height(self, height: usize) -> Self

Sets the height of the LogBook

This is ignored if pushing to the left or to the right.

Source

pub fn width(self, width: usize) -> Self

Sets the width of the LogBook

This is ignored if pushing above or below.

Source

pub fn height_ratio(self, den: u16, div: u16) -> Self

Sets a ratio for the height of the LogBook

This is ignored if pushing to the left or to the right.

Source

pub fn width_ratio(self, den: u16, div: u16) -> Self

Sets a ratio for the witdh of the LogBook

This is ignored if pushing above or below.

Trait Implementations§

Source§

impl<U: Ui> WidgetCfg<U> for LogBookCfg<U>

Source§

type Widget = LogBook

The Widget that will be created by this WidgetCfg
Source§

fn build(self, _: &mut Pass, _: BuildInfo<U>) -> (Self::Widget, PushSpecs)

Builds the Widget alongside PushSpecs Read more

Auto Trait Implementations§

§

impl<U> Freeze for LogBookCfg<U>

§

impl<U> !RefUnwindSafe for LogBookCfg<U>

§

impl<U> Send for LogBookCfg<U>
where U: Send,

§

impl<U> !Sync for LogBookCfg<U>

§

impl<U> Unpin for LogBookCfg<U>
where U: Unpin,

§

impl<U> !UnwindSafe for LogBookCfg<U>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<Cfg, U> WidgetAlias<U> for Cfg
where Cfg: WidgetCfg<U>, U: Ui,

Source§

fn push_alias(self, builder: &mut RawUiBuilder<'_, U>) -> AreaId

“Pushes Widgets to a UiBuilder, in a specific U::Area