pub struct MultiselectionStyle {
pub label_style: LabelStyle,
pub submitted_formatting: Formatting,
pub filter_formatting: Formatting,
pub help_message_formatting: Formatting,
pub marker: Marker,
pub highlighted_option_formatting: Formatting,
pub normal_option_formatting: Formatting,
}Expand description
Style for the Multiselection prompt
Fields§
§label_style: LabelStyleStyle for the prompt itself
submitted_formatting: FormattingFormatting for the user’s input when the prompt is completed
filter_formatting: FormattingFormatting for the filter string
help_message_formatting: FormattingFormatting for the help message
marker: MarkerMarker to use
highlighted_option_formatting: FormattingFormatting for the option that is currently highlighted
normal_option_formatting: FormattingFormatting for the option which is not currently highlighted
Implementations§
Source§impl MultiselectionStyle
impl MultiselectionStyle
Sourcepub fn print_option(
&self,
option_text: &str,
is_selected: bool,
is_highlighted: bool,
commands: &mut impl CommandBuffer,
)
pub fn print_option( &self, option_text: &str, is_selected: bool, is_highlighted: bool, commands: &mut impl CommandBuffer, )
Prints the option with the given text along with the marker to the provided command buffer
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MultiselectionStyle
impl RefUnwindSafe for MultiselectionStyle
impl Send for MultiselectionStyle
impl Sync for MultiselectionStyle
impl Unpin for MultiselectionStyle
impl UnwindSafe for MultiselectionStyle
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