Update ooo320-m1
[ooovba.git] / offapi / com / sun / star / awt / MouseEvent.idl
blob5e050a0df6883f8f4ab6828c2e7078da01a36e77
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: MouseEvent.idl,v $
10 * $Revision: 1.12 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_awt_MouseEvent_idl__
31 #define __com_sun_star_awt_MouseEvent_idl__
33 #ifndef __com_sun_star_awt_InputEvent_idl__
34 #include <com/sun/star/awt/InputEvent.idl>
35 #endif
38 //=============================================================================
40 module com { module sun { module star { module awt {
42 //=============================================================================
44 /** specifies an event from the mouse.
46 <p>This event is also used for popup menu requests on objects.
47 See <member>PopupTrigger</member> for details.</p>
49 @see XMouseListener
50 @see XMouseMotionListener
51 @see InputEvent
53 published struct MouseEvent: com::sun::star::awt::InputEvent
55 //-------------------------------------------------------------------------
57 /** contains the pressed mouse buttons.
59 <p>Zero ore more constants from the
60 <type scope="com::sun::star::awt">MouseButton</type> group.</p>
62 short Buttons;
64 //-------------------------------------------------------------------------
66 /** contains the x coordinate location of the mouse.
68 long X;
70 //-------------------------------------------------------------------------
72 /** contains the y coordinate location of the mouse.
74 long Y;
76 //-------------------------------------------------------------------------
78 /** contains the number of mouse clicks associated with event.
80 long ClickCount;
82 //-------------------------------------------------------------------------
84 /** specifies if this event is a popup-menu trigger event.
86 <p>If this member is <TRUE/>, the event describes a request for a popup menu,
87 also known as context menu, on an object.</p>
89 <p>In this case, <member>X</member> and <member>Y</member> describe the position
90 where the request was issued. If those members are <code>-1</code>, then the
91 request was issued using the keyboard, by pressing the operating-system dependent
92 key combination for this purpose.</p>
94 @see XMouseListener::mousePressed
96 boolean PopupTrigger;
98 };
100 //=============================================================================
102 }; }; }; };
104 #endif