fn draw_data(txt: &str, x: i32, y: i32, w: i32, h: i32, selected: bool) {
    draw::push_clip(x, y, w, h);
    if selected {
        draw::set_draw_color(Color::from_u32(0xD3D3D3));
    } else {
        draw::set_draw_color(Color::White);
    }
    draw::draw_rectf(x, y, w, h);
    draw::set_draw_color(Color::Gray0);
    draw::draw_text2(txt, x, y, w, h, Align::Center);
    draw::draw_rect(x, y, w, h);
    draw::pop_clip();
}
// The selected flag sets the color of the cell to a grayish color, otherwise white
The selected flag sets the color of the cell to a grayish color, otherwise white
The selected flag sets the color of the cell to a grayish color otherwise white
fn draw_data(txt: &str, x: i32, y: i32, w: i32, h: i32, selected: bool) {
    draw::push_clip(x, y, w, h);
    if selected {
        draw::set_draw_color(Color::from_u32(0xD3D3D3));
    } else {
        draw::set_draw_color(Color::White);
    }
    draw::draw_rectf(x, y, w, h);
    draw::set_draw_color(Color::Gray0);
    draw::draw_text2(txt, x, y, w, h, Align::Center);
    draw::draw_rect(x, y, w, h);
    draw::pop_clip();
}
fn draw_data ( txt : & str , x : i32 , y : i32 , w : i32 , h : i32 , selected : bool ) { draw :: push_clip ( x , y , w , h ) ; if selected { draw :: set_draw_color ( Color :: from_u32 ( 0xD3D3D3 ) ) ; } else { draw :: set_draw_color ( Color :: White ) ; } draw :: draw_rectf ( x , y , w , h ) ; draw :: set_draw_color ( Color :: Gray0 ) ; draw :: draw_text2 ( txt , x , y , w , h , Align :: Center ) ; draw :: draw_rect ( x , y , w , h ) ; draw :: pop_clip ( ) ; }
The selected flag sets the color of the cell to a grayish color, otherwise white
The selected flag sets the color of the cell to a grayish color otherwise white
txt
&str
x
i32
y
i32
w
i32
h
i32
selected
bool
txt
&str
x
i32
y
i32
w
i32
h
i32
selected
bool