Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "17 Colors"

 
Line 1: Line 1:
 
'''Class RGB.'''
 
'''Class RGB.'''
 +
 +
Works the same as in SWT.
  
 
'''Class Color.'''
 
'''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 <code>dispose()</code> method.
 +
To reduce memory footprint, the constructors were replaced by static mathods
 +
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
 +
those.
 +
 +
Window system-specific colors such as <code>COLOR_WIDGET_BORDER</code> are not yet implemented.

Revision as of 10:22, 8 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.

Back to the top