In order to support clipboard and drag-and-drop operations involving Windows Metafiles alongside other formats (bitmaps, text, etc.), it would be very useful to have a wxMetafileDataObject
class.
Such a class would make it possible to combine different formats within a single wxDataObjectComposite
instance.
While searching for wxMetafileDataObject
, I found references to it in Cross-Platform GUI Programming with wxWidgets by Julian Smart and Kevin Hock, which suggests that this class may have existed in earlier versions. If that’s the case, I’m not sure why it was removed.
Thank you for considering this!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Closed #25861 as completed.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
It hasn't been removed, but it's only available under Windows, in wx/msw/metafile.h
header.
I don't think it makes sense to implement it for the other platforms as it's inherently Windows-specific, so I don't think we can/should do anything else here.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Oh I see, that's good to know! Thanks!
I would suggest adding this class to the official documentation: it doesn't appear either the class index or in the wxDataObject
class hierarchy.
I'll try it in wxPython under Windows. It’s a bit odd that wx.MetafileDC
is well documented and importable even on Linux, while wxMetafileDataObject
seems somewhat hidden.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
No, the class doesn't appear to exist in wxPython, not even under wx.msw
where I can find MetafileDC
(now deprecated and moved to wx
)...
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
wxPython uses the wxWidgets interface headers (the files under the interface
) directory in order to decide what classes and methods to make available to Python. This class isn't currently documented in the interface headers. @vadz should this class be documented?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Reopened #25861.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Yes, I don't see why it shouldn't (unless it doesn't work? to be honest I've never used it in my life).
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.