Mercurial > projects > dwt2
annotate org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/accessibility/AccessibleTextEvent.d @ 49:7a2dd761a8b2
more work until dmd 2.026 linux segfaults.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 27 Mar 2009 12:59:54 +0100 |
parents | f589fc20a5f9 |
children | 536e43f63c81 |
rev | line source |
---|---|
25 | 1 /******************************************************************************* |
2 * Copyright (c) 2000, 2008 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 org.eclipse.swt.accessibility.AccessibleTextEvent; | |
14 | |
15 import java.lang.all; | |
16 | |
17 | |
18 import org.eclipse.swt.internal.SWTEventObject; | |
19 | |
20 /** | |
21 * Instances of this class are sent as a result of | |
22 * accessibility clients sending messages to controls | |
23 * asking for detailed information about the implementation | |
24 * of the control instance. Typically, only implementors | |
25 * of custom controls need to listen for this event. | |
26 * <p> | |
27 * Note: The meaning of each field depends on the | |
28 * message that was sent. | |
29 * </p> | |
30 * | |
31 * @see AccessibleTextListener | |
32 * @see AccessibleTextAdapter | |
33 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> | |
34 * | |
35 * @since 3.0 | |
36 */ | |
37 public class AccessibleTextEvent : SWTEventObject { | |
38 public int childID; // IN | |
39 public int offset, length; // OUT | |
40 | |
49
7a2dd761a8b2
more work until dmd 2.026 linux segfaults.
Frank Benoit <benoit@tionex.de>
parents:
26
diff
changeset
|
41 //static const long serialVersionUID = 3977019530868308275L; |
25 | 42 |
43 /** | |
44 * Constructs a new instance of this class. | |
45 * | |
46 * @param source the object that fired the event | |
47 */ | |
48 public this (Object source) { | |
49 super (source); | |
50 } | |
51 | |
52 /** | |
53 * Returns a string containing a concise, human-readable | |
54 * description of the receiver. | |
55 * | |
56 * @return a string representation of the event | |
57 */ | |
58 public override String toString () { | |
59 return Format( "AccessibleTextEvent {{childID={} offset={} length={}}", | |
60 childID, | |
61 offset, | |
62 length); | |
63 } | |
64 } |