// refresh forces a complete redraw of the screen, even for cells that did not
// change.
refresh forces a complete redraw of the screen, even for cells that did not
change.
// refresh forces a complete redraw of the screen even for cells that did not // change .
func (app *App) refresh(gd Grid) Frame {
	gd.Rg.Min = Point{0, 0}
	gd.Rg.Max = gd.Rg.Min.Add(Point{gd.Ug.Width, gd.Ug.Height})
	app.grid.Copy(gd)
	it := gd.Iterator()
	for it.Next() {
		cdraw := FrameCell{Cell: it.Cell(), P: it.P()}
		app.frame.Cells = append(app.frame.Cells, cdraw)
	}
	return app.frame
}
func ( app * App ) refresh ( gd Grid ) Frame { gd . Rg . Min = Point { 0 , 0 } gd . Rg . Max = gd . Rg . Min . Add ( Point { gd . Ug . Width , gd . Ug . Height } ) app . grid . Copy ( gd ) it := gd . Iterator ( ) for it . Next ( ) { cdraw := FrameCell { Cell : it . Cell ( ) , P : it . P ( ) } app . frame . Cells = append ( app . frame . Cells , cdraw ) } return app . frame }
refresh forces a complete redraw of the screen, even for cells that did not
change.
refresh forces a complete redraw of the screen even for cells that did not change .