1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
22 module com
{ module sun
{ module star
{ module awt
{
25 /** specifies the basic operations for a window component.
27 <p>A window is a rectangular region on an output device with
28 its own position, size, and internal coordinate system.
29 A window is used for displaying data. In addition, the window
30 receives events from the user.</p>
32 published
interface XWindow
: com
::sun
::star
::lang
::XComponent
35 /** sets the outer bounds of the window.
38 the x-coordinate of the window.
41 the y-coordinate of the window.
44 the width of the window.
47 the height of the window.
50 Flags are of type PosSize and specify, which parameters
51 are taken into account when setting the outer bounds of the window.
53 void setPosSize
( [in] long X
,
60 /** returns the outer bounds of the window.
62 com
::sun
::star
::awt
::Rectangle getPosSize
();
65 /** shows or hides the window depending on the parameter.
67 void setVisible
( [in] boolean Visible
);
70 /** enables or disables the window depending on the parameter.
72 void setEnable
( [in] boolean Enable
);
75 /** sets the focus to the window.
80 /** adds a window listener to the object.
83 the listener to add. If this listener also supports the XWindowListener2 interface,
84 it will receive the additional events declared in XWindowListener2.
86 void addWindowListener
( [in] com
::sun
::star
::awt
::XWindowListener xListener
);
89 /** removes the specified window listener from the listener list.
91 void removeWindowListener
( [in] com
::sun
::star
::awt
::XWindowListener xListener
);
94 /** adds a focus listener to the object.
96 void addFocusListener
( [in] com
::sun
::star
::awt
::XFocusListener xListener
);
99 /** removes the specified focus listener from the listener list.
101 void removeFocusListener
( [in] com
::sun
::star
::awt
::XFocusListener xListener
);
104 /** adds a key listener to the object.
106 void addKeyListener
( [in] com
::sun
::star
::awt
::XKeyListener xListener
);
109 /** removes the specified key listener from the listener list.
111 void removeKeyListener
( [in] com
::sun
::star
::awt
::XKeyListener xListener
);
114 /** adds a mouse listener to the object.
116 void addMouseListener
( [in] com
::sun
::star
::awt
::XMouseListener xListener
);
119 /** removes the specified mouse listener from the listener list.
121 void removeMouseListener
( [in] com
::sun
::star
::awt
::XMouseListener xListener
);
124 /** adds a mouse motion listener to the object.
126 void addMouseMotionListener
( [in] com
::sun
::star
::awt
::XMouseMotionListener xListener
);
129 /** removes the specified mouse motion listener from the listener list.
131 void removeMouseMotionListener
( [in] com
::sun
::star
::awt
::XMouseMotionListener xListener
);
134 /** adds a paint listener to the object.
136 void addPaintListener
( [in] com
::sun
::star
::awt
::XPaintListener xListener
);
139 /** removes the specified paint listener from the listener list.
141 void removePaintListener
( [in] com
::sun
::star
::awt
::XPaintListener xListener
);
148 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */