diff options
author | Silenio Quarti <silenio> | 2005-02-25 17:35:17 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2005-02-25 17:35:17 +0000 |
commit | 9cb7cdf84ef357a2976f30c6ee9f378ab567fe22 (patch) | |
tree | d15dd8b4b98a104e8e3ee24b222ce72ed85edd47 /bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics | |
parent | 4c716f6e835e2d48dc135591190ea2cb868ec584 (diff) | |
download | eclipse.platform.swt-9cb7cdf84ef357a2976f30c6ee9f378ab567fe22.tar.gz eclipse.platform.swt-9cb7cdf84ef357a2976f30c6ee9f378ab567fe22.tar.xz eclipse.platform.swt-9cb7cdf84ef357a2976f30c6ee9f378ab567fe22.zip |
fill rule and path hit test
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/GC.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/GC.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/GC.java index 2a156ad405..df9e3d1af6 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/GC.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/GC.java @@ -1972,6 +1972,12 @@ public void getClipping (Region region) { } } +public int getFillRule() { + if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); + //TODO - implement fill rule + return SWT.FILL_EVEN_ODD; +} + /** * Returns the font currently being used by the receiver * to draw and measure text. @@ -2340,6 +2346,18 @@ public void setClipping (Region region) { dirtyBits |= DIRTY_CLIPPING; } +public void setFillRule(int rule) { + if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); + switch (rule) { + case SWT.FILL_WINDING: + case SWT.FILL_EVEN_ODD: + break; + default: + SWT.error(SWT.ERROR_INVALID_ARGUMENT); + } + //TODO - implement fill rule +} + /** * Sets the font which will be used by the receiver * to draw and measure text to the argument. If the |