comparison dynamin/gui/windows_window.d @ 23:d55b5b998412

Implement built-in mouse cursors with X.
author Jordan Miner <jminer7@gmail.com>
date Sat, 25 Jul 2009 14:58:43 -0500
parents ef81af74a306
children 00efca2c1545
comparison
equal deleted inserted replaced
22:9a50d6d96815 23:d55b5b998412
194 //if not created, create the handle by calling Handle() 194 //if not created, create the handle by calling Handle()
195 ShowWindow(handle, b ? SW_SHOW : SW_HIDE); 195 ShowWindow(handle, b ? SW_SHOW : SW_HIDE);
196 } 196 }
197 void backend_borderStyle(WindowBorderStyle border) { 197 void backend_borderStyle(WindowBorderStyle border) {
198 backend_updateWindowStyles(); 198 backend_updateWindowStyles();
199 }
200 void backend_setCurrentCursor(Cursor cur) {
201 SetCursor(cur.handle);
199 } 202 }
200 void backend_repaint(Rect rect) { 203 void backend_repaint(Rect rect) {
201 RECT wrect; 204 RECT wrect;
202 wrect.left = cast(int)(rect.x-_borderSize.left); 205 wrect.left = cast(int)(rect.x-_borderSize.left);
203 wrect.top = cast(int)(rect.y-_borderSize.top); 206 wrect.top = cast(int)(rect.y-_borderSize.top);