LibreOffice
LibreOffice 24.2 SDK API Reference
|
makes it possible to receive events from the mouse in a certain window. More...
import"XMouseListener.idl";
Public Member Functions | |
void | mousePressed ([in] com::sun::star::awt::MouseEvent e) |
is invoked when a mouse button has been pressed on a window. More... | |
void | mouseReleased ([in] com::sun::star::awt::MouseEvent e) |
is invoked when a mouse button has been released on a window. More... | |
void | mouseEntered ([in] com::sun::star::awt::MouseEvent e) |
is invoked when the mouse enters a window. More... | |
void | mouseExited ([in] com::sun::star::awt::MouseEvent e) |
is invoked when the mouse exits a window. More... | |
Public Member Functions inherited from XEventListener | |
void | disposing ([in] com::sun::star::lang::EventObject Source) |
gets called when the broadcaster is about to be disposed. More... | |
Public Member Functions inherited from XInterface | |
any | queryInterface ([in] type aType) |
queries for a new interface to an existing UNO object. More... | |
void | acquire () |
increases the reference counter by one. More... | |
void | release () |
decreases the reference counter by one. More... | |
makes it possible to receive events from the mouse in a certain window.
Use the following interfaces which allow to receive (and consume) mouse events even on windows which are not at the top:
void mouseEntered | ( | [in] com::sun::star::awt::MouseEvent | e | ) |
is invoked when the mouse enters a window.
void mouseExited | ( | [in] com::sun::star::awt::MouseEvent | e | ) |
is invoked when the mouse exits a window.
void mousePressed | ( | [in] com::sun::star::awt::MouseEvent | e | ) |
is invoked when a mouse button has been pressed on a window.
Since mouse presses are usually also used to indicate requests for pop-up menus (also known as context menus) on objects, you might receive two events for a single mouse press: For example, if, on your operating system, pressing the right mouse button indicates the request for a context menu, then you will receive one call to mousePressed() indicating the mouse click, and another one indicating the context menu request. For the latter, the MouseEvent::PopupTrigger member of the event will be set to TRUE
.
void mouseReleased | ( | [in] com::sun::star::awt::MouseEvent | e | ) |
is invoked when a mouse button has been released on a window.