[][src]Struct fpsdk::host::prompt::PromptBuilder

pub struct PromptBuilder { /* fields omitted */ }

Use this to show Prompt.

Implementations

impl PromptBuilder[src]

pub fn with_x(self, x: u32) -> Self[src]

Set horizontal position. Otherwise it's centered horizontally.

pub fn with_y(self, y: u32) -> Self[src]

Set vertical position. Otherwise it's centered vertically.

pub fn with_color(self) -> Self[src]

Call if you want user to set color also.

pub fn show(self, host: &mut Host, message: String) -> Option<Prompt>[src]

Show prompt the user and return Prompt, if he/she closed the window by clicking OK. The method returns None otherwise.

Trait Implementations

impl Debug for PromptBuilder[src]

impl Default for PromptBuilder[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.