/// Draws the tabs which are the short forms of the live matches
Draws the tabs which are the short forms of the live matches
Draws the tabs which are the short forms of the live matches
fn draw_tab<B>(f: &mut Frame<B>, area: Rect, app: &App, ui_state: &mut UiState)
where
    B: Backend,
{
    let chunks = Layout::default()
        .constraints(
            [
                Constraint::Length(5),
                Constraint::Length(9),
                Constraint::Percentage(100),
            ]
            .as_ref(),
        )
        .split(area);
    let scores = get_match_summary_info(app, ui_state);
    let summ_block = Block::default().borders(Borders::ALL).title("Overview");
    let paragraph = Paragraph::new(scores).block(summ_block);
    f.render_widget(paragraph, chunks[0]);
    draw_live_feed(f, chunks[1], app, ui_state);
    draw_scorecard(f, chunks[2], app, ui_state);
}
fn draw_tab < B > ( f : & mut Frame < B > , area : Rect , app : & App , ui_state : & mut UiState ) where B : Backend , { let chunks = Layout :: default ( ) . constraints ( [ Constraint :: Length ( 5 ) , Constraint :: Length ( 9 ) , Constraint :: Percentage ( 100 ) , ] . as_ref ( ) , ) . split ( area ) ; let scores = get_match_summary_info ( app , ui_state ) ; let summ_block = Block :: default ( ) . borders ( Borders :: ALL ) . title ( " " ) ; let paragraph = Paragraph :: new ( scores ) . block ( summ_block ) ; f . render_widget ( paragraph , chunks [ 0 ] ) ; draw_live_feed ( f , chunks [ 1 ] , app , ui_state ) ; draw_scorecard ( f , chunks [ 2 ] , app , ui_state ) ; }
Draws the tabs which are the short forms of the live matches
Draws the tabs which are the short forms of the live matches
f
&mut Frame<B>
area
Rect
app
&App
ui_state
&mut UiState