fn render_cancel(&self, screen: &mut Screen, cancel_y: Coord) {
        if let Some(selected) = self.cancel {
            let colors = if selected {
                self.menu.selected_colors
            } else {
                self.menu.unselected_colors
            };
            let string = tstring!["> Cancel <"];

            let style = Style::new()
                .align(1, 3)
                .colors(colors)
                .top_margin(cancel_y - 2);
            screen.styled_text(&string, style);
        }
    }
/// Renders the cancel option, if any.
Renders the cancel option, if any.
Renders the cancel option if any .
fn render_cancel(&self, screen: &mut Screen, cancel_y: Coord) {
        if let Some(selected) = self.cancel {
            let colors = if selected {
                self.menu.selected_colors
            } else {
                self.menu.unselected_colors
            };
            let string = tstring!["> Cancel <"];
            let style = Style::new()
                .align(1, 3)
                .colors(colors)
                .top_margin(cancel_y - 2);
            screen.styled_text(&string, style);
        }
    }
fn render_cancel ( & self , screen : & mut Screen , cancel_y : Coord ) { if let Some ( selected ) = self . cancel { let colors = if selected { self . menu . selected_colors } else { self . menu . unselected_colors } ; let string = tstring ! [ " " ] ; let style = Style :: new ( ) . align ( 1 , 3 ) . colors ( colors ) . top_margin ( cancel_y - 2 ) ; screen . styled_text ( & string , style ) ; } }
Renders the cancel option, if any.
Renders the cancel option if any .
&self
screen
&mut Screen
cancel_y
Coord
&self
screen
&mut Screen
cancel_y
Coord