We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a123010 commit c923c71Copy full SHA for c923c71
bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageGcDrawer.java
@@ -13,6 +13,8 @@
13
*******************************************************************************/
14
package org.eclipse.swt.graphics;
15
16
+import org.eclipse.swt.*;
17
+
18
/**
19
* Interface to provide a callback mechanism to draw on different GC instances
20
* depending on the zoom the image will be used for. A common use case is when
@@ -45,4 +47,15 @@ public interface ImageGcDrawer {
45
47
default void postProcess(ImageData imageData) {
46
48
}
49
50
+ /**
51
+ * Returns the GC style used when creating the GC instance.
52
+ * Default implementation returns <code>SWT.NONE</code>.
53
+ *
54
+ * @return the GC style constant
55
56
+ * @since 3.130
57
+ */
58
+ default int getGcStyle() {
59
+ return SWT.NONE;
60
+ }
61
0 commit comments