Skip to content

Commit c3c7c18

Browse files
Add getGcStyle() method to accommodate styling
Add getGcStyle() having a default implementation returning SWT.None
1 parent a123010 commit c3c7c18

File tree

2 files changed

+21
-0
lines changed
  • binaries/org.eclipse.swt.win32.win32.x86_64/.settings
  • bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics

2 files changed

+21
-0
lines changed

binaries/org.eclipse.swt.win32.win32.x86_64/.settings/.api_filters

+8
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,14 @@
581581
</message_arguments>
582582
</filter>
583583
</resource>
584+
<resource path="Eclipse SWT/common/org/eclipse/swt/graphics/ImageGcDrawer.java" type="org.eclipse.swt.graphics.ImageGcDrawer">
585+
<filter id="404000815">
586+
<message_arguments>
587+
<message_argument value="org.eclipse.swt.graphics.ImageGcDrawer"/>
588+
<message_argument value="getGcStyle()"/>
589+
</message_arguments>
590+
</filter>
591+
</resource>
584592
<resource path="Eclipse SWT/common/org/eclipse/swt/graphics/ImageLoaderListener.java" type="org.eclipse.swt.graphics.ImageLoaderListener">
585593
<filter id="576720909">
586594
<message_arguments>

bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageGcDrawer.java

+13
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
*******************************************************************************/
1414
package org.eclipse.swt.graphics;
1515

16+
import org.eclipse.swt.*;
17+
1618
/**
1719
* Interface to provide a callback mechanism to draw on different GC instances
1820
* depending on the zoom the image will be used for. A common use case is when
@@ -45,4 +47,15 @@ public interface ImageGcDrawer {
4547
default void postProcess(ImageData imageData) {
4648
}
4749

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+
}
4861
}

0 commit comments

Comments
 (0)