#include "../jnilib.h"
Include dependency graph for listeners.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | CB_COMPONENT_HIDDEN 4 |
#define | CB_COMPONENT_MOVED 2 |
#define | CB_COMPONENT_RESIZED 1 |
#define | CB_COMPONENT_SHOWN 3 |
#define | CB_MOUSE_CLICKED 1 |
#define | CB_MOUSE_ENTERED 4 |
#define | CB_MOUSE_EXITED 5 |
#define | CB_MOUSE_PRESSED 2 |
#define | CB_MOUSE_RELEASED 3 |
#define | CB_WINDOW_ACTIVATED 6 |
#define | CB_WINDOW_CLOSED 3 |
#define | CB_WINDOW_CLOSING 2 |
#define | CB_WINDOW_DEACTIVATED 7 |
#define | CB_WINDOW_DEICONIFIED 5 |
#define | CB_WINDOW_ICONIFIED 4 |
#define | CB_WINDOW_OPENED 1 |
Typedefs | |
typedef jobject | ActionListener |
typedef jobject | Component |
typedef jobject | ComponentListener |
typedef jobject | ItemListener |
typedef jobject | MouseListener |
typedef jobject | Window |
typedef jobject | WindowListener |
Functions | |
ActionListener | addActionListener (jobject obj, void(*func)(Component)) |
Adds an ActionListener for a Component to call back the specified function. | |
ComponentListener | addComponentListener (jobject obj, void(*func)(jint, Component)) |
Adds a ComponentListener for a Component to call back the specified function. | |
ItemListener | addItemListener (jobject obj, void(*func)(Component, jboolean, const char *)) |
Adds a ItemListener for a Component to call back the specified function. | |
MouseListener | addMouseListener (jobject obj, void(*func)(jint, Component, jint, jint, jint, jint)) |
Adds a MouseListener for a Component to call back the specified function. | |
WindowListener | addWindowListener (jobject obj, void(*func)(jint, Window)) |
Adds a WindowListener for a Window to call back the specified function. | |
void | removeActionListener (jobject obj, ActionListener al) |
Removes an ActionListener from a Component and deletes the global reference to the ActionListener. | |
void | removeComponentListener (jobject obj, ComponentListener cl) |
Removes a ComponentListener from a Component and deletes the global reference to the ComponentListener. | |
void | removeItemListener (jobject obj, ItemListener il) |
Removes a ItemListener from a Component and deletes the global reference to the MouseListener. | |
void | removeMouseListener (jobject obj, MouseListener ml) |
Removes a MouseListener from a Component and deletes the global reference to the MouseListener. | |
void | removeWindowListener (jobject obj, WindowListener wl) |
Removes a WindowListener from a Window and deletes the global reference to the WindowListener. |
In Java Listeners are objects which want to get informed about specific events. In this library callback functions where used to get informed about events. These functions allow to register the callback functions as listeners. The callback functions must have a certain signature depending on the event(s) you want to get informed about.
Definition in file listeners.h.
|
Definition at line 41 of file listeners.h. |
|
Definition at line 39 of file listeners.h. |
|
Definition at line 38 of file listeners.h. |
|
Definition at line 40 of file listeners.h. |
|
Definition at line 32 of file listeners.h. |
|
Definition at line 35 of file listeners.h. |
|
Definition at line 36 of file listeners.h. |
|
Definition at line 33 of file listeners.h. |
|
Definition at line 34 of file listeners.h. |
|
Definition at line 29 of file listeners.h. |
|
Definition at line 26 of file listeners.h. |
|
Definition at line 25 of file listeners.h. |
|
Definition at line 30 of file listeners.h. |
|
Definition at line 28 of file listeners.h. |
|
Definition at line 27 of file listeners.h. |
|
Definition at line 24 of file listeners.h. |
|
Definition at line 49 of file listeners.h. |
|
Definition at line 44 of file listeners.h. |
|
Definition at line 47 of file listeners.h. |
|
Definition at line 50 of file listeners.h. |
|
Definition at line 48 of file listeners.h. |
|
Definition at line 43 of file listeners.h. |
|
Definition at line 46 of file listeners.h. |
|
Adds an ActionListener for a Component to call back the specified function. The parameters of the function pointer are:
Definition at line 285 of file listeners.c. |
|
Adds a ComponentListener for a Component to call back the specified function. The parameters of the function pointer are:
Definition at line 137 of file listeners.c. |
|
Adds a ItemListener for a Component to call back the specified function. The parameters of the function pointer are:
Definition at line 359 of file listeners.c. |
|
Adds a MouseListener for a Component to call back the specified function. The parameters of the function pointer are:
Definition at line 216 of file listeners.c. |
|
Adds a WindowListener for a Window to call back the specified function. The parameters of the function pointer are:
Definition at line 66 of file listeners.c. |
|
Removes an ActionListener from a Component and deletes the global reference to the ActionListener.
Definition at line 318 of file listeners.c. |
|
Removes a ComponentListener from a Component and deletes the global reference to the ComponentListener.
Definition at line 170 of file listeners.c. |
|
Removes a ItemListener from a Component and deletes the global reference to the MouseListener.
Definition at line 392 of file listeners.c. |
|
Removes a MouseListener from a Component and deletes the global reference to the MouseListener.
Definition at line 249 of file listeners.c. |
|
Removes a WindowListener from a Window and deletes the global reference to the WindowListener.
Definition at line 99 of file listeners.c. |