Mercurial > projects > dwt-linux
diff dwt/widgets/Button.d @ 150:f2e04420fd6c
reworked overrides and superclass aliases
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 31 Jan 2008 19:04:56 +0100 |
parents | 4f37e84078de |
children | 17f8449522fd |
line wrap: on
line diff
--- a/dwt/widgets/Button.d Sun Jan 27 16:20:03 2008 +0100 +++ b/dwt/widgets/Button.d Thu Jan 31 19:04:56 2008 +0100 @@ -51,6 +51,13 @@ * </p> */ public class Button : Control { + + alias Control.computeSize computeSize; + alias Control.mnemonicHit mnemonicHit; + alias Control.mnemonicMatch mnemonicMatch; + alias Control.setBackgroundColor setBackgroundColor; + alias Control.setForegroundColor setForegroundColor; + GtkWidget* boxHandle, labelHandle, imageHandle, arrowHandle, groupHandle; bool selected; ImageList imageList; @@ -144,7 +151,6 @@ addListener (DWT.DefaultSelection,typedListener); } -alias Control.computeSize computeSize; override public Point computeSize (int wHint, int hHint, bool changed) { checkWidget (); if (wHint !is DWT.DEFAULT && wHint < 0) wHint = 0; @@ -426,7 +432,6 @@ return false; } -alias Control.mnemonicHit mnemonicHit; override bool mnemonicHit (char key) { if (labelHandle is null) return false; bool result = super.mnemonicHit (labelHandle, key); @@ -434,7 +439,6 @@ return result; } -alias Control.mnemonicMatch mnemonicMatch; override bool mnemonicMatch (char key) { if (labelHandle is null) return false; return mnemonicMatch (labelHandle, key); @@ -608,7 +612,6 @@ } } -alias Control.setBackgroundColor setBackgroundColor; override void setBackgroundColor (GdkColor* color) { super.setBackgroundColor (color); setBackgroundColor(fixedHandle, color); @@ -631,7 +634,6 @@ return true; } -alias Control.setForegroundColor setForegroundColor; override void setForegroundColor (GdkColor* color) { super.setForegroundColor (color); setForegroundColor (fixedHandle, color);