pub struct Window<'m> {
pub prompt: String,
pub message: Option<&'m str>,
pub additional_args: Vec<String>,
pub location: Location,
pub padding: Padding,
pub dimensions: Dimensions,
pub fullscreen: bool,
pub format: ReturnFormat,
}
Expand description
represents the raw ‘window’ that rofi shows
the Window
can be customized to change the appearance of the shown window
note that some fields will be overwritten by types in components.rs
and lib.rs
Fields§
§prompt: String
message to display next to the entry field
message: Option<&'m str>
short message displayed beneath this field and above all options
additional_args: Vec<String>
Additional args to pass to rofi
location: Location
location on screen to place the window
padding: Padding
X and Y offsets from the Location
dimensions: Dimensions
width, height, rows and columns of the window
fullscreen: bool
whether to show in fullscreen. Overrides location and padding
format: ReturnFormat
return user selection as an index or string
Implementations§
Source§impl<'a, 's, 'm> Window<'m>
impl<'a, 's, 'm> Window<'m>
Sourcepub fn dimensions(self, d: Dimensions) -> Self
pub fn dimensions(self, d: Dimensions) -> Self
set the window’s dimensions
Sourcepub fn fullscreen(self, f: bool) -> Self
pub fn fullscreen(self, f: bool) -> Self
set if the window should be fullscreen
Trait Implementations§
Auto Trait Implementations§
impl<'m> Freeze for Window<'m>
impl<'m> RefUnwindSafe for Window<'m>
impl<'m> Send for Window<'m>
impl<'m> Sync for Window<'m>
impl<'m> Unpin for Window<'m>
impl<'m> UnwindSafe for Window<'m>
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