Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "17 Colors"
m (17. Colors. moved to 17 Colors) |
m |
||
Line 1: | Line 1: | ||
[[Comparison SWT / RWT|back to table of content]] | [[Comparison SWT / RWT|back to table of content]] | ||
− | ===Class RGB | + | ===Class RGB=== |
Works the same as in SWT. | Works the same as in SWT. | ||
− | ===Class Color | + | ===Class Color=== |
Behaves the same as in SWT. | Behaves the same as in SWT. | ||
Line 13: | Line 13: | ||
that return shared Color instances. | that return shared Color instances. | ||
− | ===System Colors | + | ===System Colors=== |
Constants for 'natural' colors are defined in RWT and <code>Display.getSystemColor()</code> returns an instance of class Color for | Constants for 'natural' colors are defined in RWT and <code>Display.getSystemColor()</code> returns an instance of class Color for |
Revision as of 19:01, 9 January 2007
Class RGB
Works the same as in SWT.
Class Color
Behaves the same as in SWT.
Since there are no operating system resources allocated when creating a Color
object, the RWT Color class does not have a dispose()
method.
To reduce memory footprint, the constructors were replaced by static mathods
that return shared Color instances.
System Colors
Constants for 'natural' colors are defined in RWT and Display.getSystemColor()
returns an instance of class Color for
those.
Window system-specific colors such as COLOR_WIDGET_BORDER
are not yet implemented.