Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ImageDrawingProvider interface for Images #143

Open
akoch-yatta opened this issue Nov 5, 2024 · 0 comments
Open

Add ImageDrawingProvider interface for Images #143

akoch-yatta opened this issue Nov 5, 2024 · 0 comments
Assignees
Labels
Enhancement A Request for an Enhancement of an Existing Feature HiDPI A HiDPI-Related Issue or Feature SWT Issue for SWT
Milestone

Comments

@akoch-yatta
Copy link

akoch-yatta commented Nov 5, 2024

Currently some custom-drawing image scenarios (e.g. in CTabFolder) are solved via ImageDataProvider. Problem with that is, that in the provider another image is created to draw the image and retrieve the ImageData. As there is no way in the current API to pass the zoom from getImageData() into a new image, this use case should be convered by another interface. This interface will look like

public interface ImageDrawingProvider {
	void drawImage(GC gc);

the GC that is passed to the method will be preconfigured with the correct zoom.

The implementation must be done for the win32, gtk and cocoa implementation. Most of the code should be added to the common package, but the Image implementation must be provided for all three variants

@akoch-yatta akoch-yatta converted this from a draft issue Nov 5, 2024
@akoch-yatta akoch-yatta added SWT Issue for SWT HiDPI A HiDPI-Related Issue or Feature Enhancement A Request for an Enhancement of an Existing Feature labels Nov 5, 2024
@akoch-yatta akoch-yatta added this to the 4.35 M1 milestone Nov 5, 2024
@akoch-yatta akoch-yatta self-assigned this Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement A Request for an Enhancement of an Existing Feature HiDPI A HiDPI-Related Issue or Feature SWT Issue for SWT
Projects
Status: 🏗 In Work: Short
Development

No branches or pull requests

2 participants