window.c
changeset 999 8b2a34061963
parent 984 a50e131688d2
child 1019 6363b8a4273e
equal deleted inserted replaced
998:d9dc257b8949 999:8b2a34061963
   258 }
   258 }
   259 
   259 
   260 void DeleteWindowById(WindowClass cls, WindowNumber number)
   260 void DeleteWindowById(WindowClass cls, WindowNumber number)
   261 {
   261 {
   262 	DeleteWindow(FindWindowById(cls, number));
   262 	DeleteWindow(FindWindowById(cls, number));
       
   263 }
       
   264 
       
   265 void DeleteWindowByClass(WindowClass cls)
       
   266 {
       
   267 	Window *w;
       
   268 	for (w = _windows; w != _last_window;) {
       
   269 		if (w->window_class == cls) {
       
   270 			DeleteWindow(w);
       
   271 			w = _windows;
       
   272 		} else
       
   273 			w++;
       
   274 	}
   263 }
   275 }
   264 
   276 
   265 Window *BringWindowToFrontById(WindowClass cls, WindowNumber number)
   277 Window *BringWindowToFrontById(WindowClass cls, WindowNumber number)
   266 {
   278 {
   267 	Window *w = FindWindowById(cls, number);
   279 	Window *w = FindWindowById(cls, number);