129
|
1 /*******************************************************************************
|
|
2 * Copyright (c) 2000, 2005 IBM Corporation and others.
|
|
3 * All rights reserved. This program and the accompanying materials
|
|
4 * are made available under the terms of the Eclipse Public License v1.0
|
|
5 * which accompanies this distribution, and is available at
|
|
6 * http://www.eclipse.org/legal/epl-v10.html
|
|
7 *
|
|
8 * Contributors:
|
|
9 * IBM Corporation - initial API and implementation
|
|
10 * Port to the D programming language:
|
|
11 * Frank Benoit <benoit@tionex.de>
|
|
12 *******************************************************************************/
|
|
13 module dwtx.jface.text.source.ISharedTextColors;
|
|
14
|
|
15 import dwt.dwthelper.utils;
|
|
16
|
|
17 import dwt.graphics.Color;
|
|
18 import dwt.graphics.RGB;
|
|
19
|
|
20
|
|
21 /**
|
|
22 * Manages DWT color objects. Until the <code>dispose</code> method is called,
|
|
23 * the same color object is returned for equal <code>RGB</code> values.
|
|
24 * <p>
|
|
25 * This interface may be implemented by clients.
|
|
26 * </p>
|
|
27 *
|
|
28 * @since 2.1
|
|
29 */
|
|
30 public interface ISharedTextColors {
|
|
31
|
|
32 /**
|
|
33 * Returns the color object for the value represented by the given
|
|
34 * <code>RGB</code> object.
|
|
35 *
|
|
36 * @param rgb the RBG color specification
|
|
37 * @return the color object for the given RGB value
|
|
38 */
|
|
39 Color getColor(RGB rgb);
|
|
40
|
|
41 /**
|
|
42 * Tells this object to dispose all its managed colors.
|
|
43 */
|
|
44 void dispose();
|
|
45 }
|