[−][src]Struct fpsdk::host::prompt::PromptBuilder
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]
fn default() -> PromptBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for PromptBuilder
impl Send for PromptBuilder
impl Sync for PromptBuilder
impl Unpin for PromptBuilder
impl UnwindSafe for PromptBuilder
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,
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.
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>,