Popup

Struct Popup 

Source
pub struct Popup {
    pub box_style: ContentStyle,
    pub text_style: ContentStyle,
    /* private fields */
}

Fields§

§box_style: ContentStyle§text_style: ContentStyle

Implementations§

Source§

impl Popup

Source

pub fn new(title: impl Into<String>) -> Self

Source

pub fn with_texts<S, TS>(self, texts: TS) -> Self
where S: Into<String>, TS: IntoIterator<Item = S>,

Source

pub fn with_box_style(self, style: ContentStyle) -> Self

Source

pub fn with_text_style(self, style: ContentStyle) -> Self

Source

pub fn to_window(self) -> FullScreenPopup

Trait Implementations§

Source§

impl Drawable for Popup

Source§

type X = Align

Source§

type Y = Align

Source§

fn draw(&self, pos: impl Into<Pos<Align, Align>>, frame: &mut impl CanvasLike)

Source§

impl KnownHeight for Popup

Source§

fn h(&self) -> i32

Source§

impl KnownWidth for Popup

Source§

fn w(&self) -> i32

Auto Trait Implementations§

§

impl Freeze for Popup

§

impl RefUnwindSafe for Popup

§

impl Send for Popup

§

impl Sync for Popup

§

impl Unpin for Popup

§

impl UnwindSafe for Popup

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> FullyKnown for T

Source§

fn dims(&self) -> Dims

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.