diff dwt/widgets/Display.d @ 54:0f25be5cbe6f

Added aliases and overrides from generated file, remaining widgets. Thanks torhu for doing this job.
author Frank Benoit <benoit@tionex.de>
date Mon, 04 Feb 2008 10:05:20 +0100
parents f5e70f9aeeda
children 42fc35b18200
line wrap: on
line diff
--- a/dwt/widgets/Display.d	Sun Feb 03 15:48:14 2008 -0800
+++ b/dwt/widgets/Display.d	Mon Feb 04 10:05:20 2008 +0100
@@ -747,7 +747,7 @@
     //if (!isValidClass (getClass ())) error (DWT.ERROR_INVALID_SUBCLASS);
 }
 
-protected void checkDevice () {
+override protected void checkDevice () {
     if (thread is null) error (DWT.ERROR_WIDGET_DISPOSED);
     if (thread !is Thread.getThis ()) error (DWT.ERROR_THREAD_INVALID_ACCESS);
     if (isDisposed ()) error (DWT.ERROR_DEVICE_DISPOSED);
@@ -816,7 +816,7 @@
  *
  * @see #init
  */
-protected void create (DeviceData data) {
+override protected void create (DeviceData data) {
     checkSubclass ();
     checkDisplay (thread = Thread.getThis (), true);
     createDisplay (data);
@@ -1142,7 +1142,7 @@
  * @see Device#dispose
  * @see #release
  */
-protected void destroy () {
+override protected void destroy () {
     if (this is Default) Default = null;
     deregister (this);
     destroyDisplay ();
@@ -1402,7 +1402,7 @@
  *    <li>ERROR_DEVICE_DISPOSED - if the receiver has been disposed</li>
  * </ul>
  */
-public Rectangle getBounds () {
+override public Rectangle getBounds () {
     checkDevice ();
     if (OS.GetSystemMetrics (OS.SM_CMONITORS) < 2) {
         int width = OS.GetSystemMetrics (OS.SM_CXSCREEN);
@@ -1470,7 +1470,7 @@
  *
  * @see #getBounds
  */
-public Rectangle getClientArea () {
+override public Rectangle getClientArea () {
     checkDevice ();
     if (OS.GetSystemMetrics (OS.SM_CMONITORS) < 2) {
         RECT rect;
@@ -2211,7 +2211,7 @@
  *
  * @see DWT
  */
-public Color getSystemColor (int id) {
+override public Color getSystemColor (int id) {
     checkDevice ();
     int pixel = 0x00000000;
     switch (id) {
@@ -2318,7 +2318,7 @@
  *    <li>ERROR_DEVICE_DISPOSED - if the receiver has been disposed</li>
  * </ul>
  */
-public Font getSystemFont () {
+override public Font getSystemFont () {
     checkDevice ();
     if (systemFont !is null) return systemFont;
     HFONT hFont;
@@ -2468,7 +2468,7 @@
  *    <li>ERROR_NO_HANDLES if a handle could not be obtained for gc creation</li>
  * </ul>
  */
-public HDC internal_new_GC (GCData data) {
+override public HDC internal_new_GC (GCData data) {
     if (isDisposed()) DWT.error(DWT.ERROR_DEVICE_DISPOSED);
     auto hDC = OS.GetDC (null);
     if (hDC is null) DWT.error (DWT.ERROR_NO_HANDLES);
@@ -2494,7 +2494,7 @@
  *
  * @see #create
  */
-protected void init () {
+override protected void init () {
     super.init ();
 
     /* Create the callbacks */
@@ -2597,7 +2597,7 @@
  * @param hDC the platform specific GC handle
  * @param data the platform specific GC data
  */
-public void internal_dispose_GC (HDC hDC, GCData data) {
+override public void internal_dispose_GC (HDC hDC, GCData data) {
     OS.ReleaseDC (null, hDC);
 }
 
@@ -3438,7 +3438,7 @@
  * @see Device#dispose
  * @see #destroy
  */
-protected void release () {
+override protected void release () {
     sendEvent (DWT.Dispose, new Event ());
     Shell [] shells = getShells ();
     for (int i=0; i<shells.length; i++) {