Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Are colors really resources?
Are colors really resources? [message #459546] Wed, 10 August 2005 09:06 Go to next message
Eclipse UserFriend
On bug 68979 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=68979) the
statement has been made that colors are not resources but in an article
on eclipse.org
( http://www.eclipse.org/articles/swt-design-2/swt-design-2.ht ml) it
states that they are. Can someone clear up the confusion here?
Re: Are colors really resources? [message #459560 is a reply to message #459546] Wed, 10 August 2005 13:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

They are resources. But on some systems it is not very heavy. Where they
really are true resources is on Unix and Linux on certain displays. In
these systems there may be a limited number of color slots available,
and they need to be disposed. On those systems they are managed and
reside as a handle to a color over on the X server.

Brad Reynolds wrote:
> On bug 68979 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=68979) the
> statement has been made that colors are not resources but in an article
> on eclipse.org
> ( http://www.eclipse.org/articles/swt-design-2/swt-design-2.ht ml) it
> states that they are. Can someone clear up the confusion here?

--
Thanks,
Rich Kulp
Re: Are colors really resources? [message #459573 is a reply to message #459546] Thu, 11 August 2005 08:31 Go to previous message
Eclipse UserFriend
Thanks for the response. Maybe the question shouldn't have been "are colors really resources?" but maybe "how expensive is the allocation of colors?". Does anyone know of a location that has the OS specific costs of SWT resources? It seems like it would be nice to have a good understanding of the behavior and cost on each OS and could be quite valuable in debugging. On the same thread there was also a question about the cost of GCs and the proper usage of these resources.
Previous Topic:Format ToolTips
Next Topic:TableViewer with ControlListener
Goto Forum:
  


Current Time: Sat Jul 05 02:53:25 EDT 2025

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

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

Back to the top