Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Cloning a GC
Cloning a GC [message #650842] Wed, 26 January 2011 19:05 Go to next message
Greg Brown is currently offline Greg BrownFriend
Messages: 16
Registered: December 2010
Junior Member
Hi all,

Is there any way to clone or copy a GC, similar to AWT's Graphics#create() method? I know I can do it manually by creating a new GC and copying the state from an existing GC, but I was wondering if there might be an easier way.

Thanks,
Greg
Re: Cloning a GC [message #650904 is a reply to message #650842] Thu, 27 January 2011 06:27 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
On 2011-01-26 20:05, Greg Brown wrote:
> Is there any way to clone or copy a GC, similar to AWT's
> Graphics#create() method?

AFAIK, there is no direct way to realize this request.

- Daniel
Re: Cloning a GC [message #651035 is a reply to message #650904] Thu, 27 January 2011 14:26 Go to previous message
Greg Brown is currently offline Greg BrownFriend
Messages: 16
Registered: December 2010
Junior Member
OK, thanks. It's easy enough to code myself - it just would have been a bit easier if there was, for example, a GC constructor that took a source GC as an argument, or a clone() method.

Greg
Previous Topic:Failed to create Ole Client.
Next Topic:OLE Automation - disable menubar
Goto Forum:
  


Current Time: Tue Jan 26 13:35:40 GMT 2021

Powered by FUDForum. Page generated in 0.01911 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top