pub struct EntryBox {}
Expand description
empty struct representing a rofi window used to take and return user input as a string
Implementations§
Source§impl<'a> EntryBox
impl<'a> EntryBox
Sourcepub fn create_window() -> Window<'a>
pub fn create_window() -> Window<'a>
create a rofi window with 0 lines. This is important as it simulates a text entry field
Sourcepub fn display(prompt: String) -> RustofiResult
pub fn display(prompt: String) -> RustofiResult
run the constructed rofi window and return the user input as a string wrapped in a
RustofiResult::Selection
Auto Trait Implementations§
impl Freeze for EntryBox
impl RefUnwindSafe for EntryBox
impl Send for EntryBox
impl Sync for EntryBox
impl Unpin for EntryBox
impl UnwindSafe for EntryBox
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more