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.AccessibleControlEvent;
14 
15 import org.eclipse.swt.accessibility.Accessible;
16 
17 import org.eclipse.swt.internal.SWTEventObject;
18 import java.lang.all;
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 AccessibleControlListener
32  * @see AccessibleControlAdapter
33  * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
34  *
35  * @since 2.0
36  */
37 public class AccessibleControlEvent : SWTEventObject {
38     public int childID;         // IN/OUT
39     public Accessible accessible;   // OUT
40     public int x, y;                // IN/OUT
41     public int width, height;       // OUT
42     public int detail;          // IN/OUT
43     public String result;           // OUT
44     public Object[] children;       // [OUT]
45 
46     //static final long serialVersionUID = 3257281444169529141L;
47 
48 /**
49  * Constructs a new instance of this class.
50  *
51  * @param source the object that fired the event
52  */
53 public this(Object source) {
54     super(source);
55 }
56 
57 /**
58  * Returns a string containing a concise, human-readable
59  * description of the receiver.
60  *
61  * @return a string representation of the event
62  */
63 override
64 public String toString () {
65     return Format( "AccessibleControlEvent {{childID={} accessible={} x={} y={} width={} heigth={} detail={} result={}}",
66         childID, accessible, x, y, width, height, detail, result);
67 }
68 }