Mercurial > projects > dynamin
diff dynamin/gui/windows_clipboard.d @ 106:acdbb30fee7e
Port to D2.
Most of the effort was dealing with immutable and const.
author | Jordan Miner <jminer7@gmail.com> |
---|---|
date | Mon, 17 Dec 2012 23:41:50 -0600 |
parents | 73060bc3f004 |
children |
line wrap: on
line diff
--- a/dynamin/gui/windows_clipboard.d Sat Nov 24 10:21:50 2012 -0600 +++ b/dynamin/gui/windows_clipboard.d Mon Dec 17 23:41:50 2012 -0600 @@ -14,7 +14,7 @@ import Utf = tango.text.convert.Utf; template ClipboardBackend() { - void backend_setText(string text) { + void backend_setText(cstring text) { if(!OpenClipboard(msgWnd)) return; EmptyClipboard(); @@ -27,7 +27,7 @@ SetClipboardData(CF_UNICODETEXT, data); CloseClipboard(); } - string backend_getText() { + mstring backend_getText() { if(!OpenClipboard(msgWnd)) return null; wchar* data = cast(wchar*)GetClipboardData(CF_UNICODETEXT); @@ -48,9 +48,9 @@ // Windows only has one clipboard template SelectionBackend() { - void backend_setText(string text) { + void backend_setText(cstring text) { } - string backend_getText() { + mstring backend_getText() { return null; } bool backend_containsText() {