Struct duat_term::Ui

source ·
pub struct Ui { /* private fields */ }

Trait Implementations§

source§

impl PassiveWidget<Ui> for VertRule

source§

fn build( globals: Context<Ui>, on_file: bool, ) -> (Widget<Ui>, impl Fn() -> bool, PushSpecs)

source§

fn update(&mut self, area: &Area)

Updates the widget, allowing the modification of its Area. Read more
source§

fn text(&self) -> &Text

The text that this widget prints out.
source§

fn once(_globals: Context<Ui>)

source§

fn print_cfg(&self) -> &PrintCfg

source§

fn print(&mut self, area: &<U as Ui>::Area)

source§

fn name() -> &'static str
where Self: Sized,

source§

impl Ui for Ui

§

type Area = Area

§

type ConstraintChangeErr = ConstraintChangeErr

§

type StaticFns = StaticFns

This is the underlying type that will be handled dynamically.
source§

fn new(statics: Self::StaticFns) -> Self

source§

fn start(&mut self, sender: Sender, context: Context<Self>)

Starts the Ui. Read more
source§

fn new_root(&mut self) -> Self::Area

Initiates and returns a new “master” Area. Read more
source§

fn open(&mut self)

Functions to trigger when the program begins.
source§

fn end(&mut self)

Ends the Ui. Read more
source§

fn close(&mut self)

Functions to trigger when the program ends.
source§

fn finish_printing(&self)

source§

impl WidgetCfg<Ui> for VertRuleCfg

§

type Widget = VertRule

source§

fn build( self, context: Context<Ui>, on_file: bool, ) -> (Widget<Ui>, impl Fn() -> bool + 'static, PushSpecs)

Auto Trait Implementations§

§

impl !Freeze for Ui

§

impl !RefUnwindSafe for Ui

§

impl Send for Ui

§

impl Sync for Ui

§

impl Unpin for Ui

§

impl !UnwindSafe for Ui

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>,

§

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>,

§

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.