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.IPaintPositionManager;
|
|
14
|
|
15 import dwt.dwthelper.utils;
|
|
16
|
|
17
|
|
18
|
|
19 /**
|
|
20 * Manages and updates positions used by {@link IPainter}s.
|
|
21 *
|
|
22 * @see dwtx.jface.text.IPainter
|
|
23 * @since 2.1
|
|
24 */
|
|
25 public interface IPaintPositionManager {
|
|
26
|
|
27 /**
|
|
28 * Starts managing the given position until <code>unmanagePosition</code> is called.
|
|
29 *
|
|
30 * @param position the position to manage
|
|
31 * @see #unmanagePosition(Position)
|
|
32 */
|
|
33 void managePosition(Position position);
|
|
34
|
|
35 /**
|
|
36 * Stops managing the given position. If the position is not managed
|
|
37 * by this managed, this call has no effect.
|
|
38 *
|
|
39 * @param position the position that should no longer be managed
|
|
40 */
|
|
41 void unmanagePosition(Position position);
|
|
42 }
|