comparison dwt/custom/StyledTextEvent.d @ 0:380af2bdd8e5

Upload of whole dwt tree
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Sat, 09 Aug 2008 17:00:02 +0200
parents
children 1a8b3cb347e0
comparison
equal deleted inserted replaced
-1:000000000000 0:380af2bdd8e5
1 /*******************************************************************************
2 * Copyright (c) 2000, 2007 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 *******************************************************************************/
11 module dwt.custom;
12
13 import dwt.graphics.*;
14 import dwt.widgets.*;
15
16 /**
17 *
18 */
19 class StyledTextEvent : Event {
20 // used by LineStyleEvent
21 int[] ranges;
22 StyleRange[] styles;
23 int alignment;
24 int indent;
25 bool justify;
26 Bullet bullet;
27 int bulletIndex;
28 // used by LineBackgroundEvent
29 Color lineBackground;
30 // used by BidiSegmentEvent
31 int[] segments;
32 // used by TextChangedEvent
33 int replaceCharCount;
34 int newCharCount;
35 int replaceLineCount;
36 int newLineCount;
37 // used by PaintObjectEvent
38 int x;
39 int y;
40 int ascent;
41 int descent;
42 StyleRange style;
43
44 StyledTextEvent (StyledTextContent content) {
45 super();
46 data = content;
47 }
48 }
49
50