#include "button.h"
#include "component.h"
Include dependency graph for button.c:

Go to the source code of this file.
| Functions | |
| ActionListener | addButtonActionListener (Button *button, void(*func)(Component)) | 
| Adds an ActionListener for the Button to call back the specified function. | |
| void | createButton_ (Button *button) | 
| Creates the Button by getting the Java Button-Class, the method ids and createing a new Java Button-Object. | |
| void | createButtonC (Button_ *button) | 
| Function is called when working with C and calling the function createButton. | |
| void | createButtonCPP (ButtonCPP_ *button) | 
| Function is called when working with C++ and calling the function createButton. | |
| void | deleteButton_ (Button *button) | 
| Deletes the Button by deleting the global references. | |
| void | deleteButtonC (Button_ *button) | 
| Function is called when working with C and calling the function deleteButton. | |
| void | deleteButtonCPP (ButtonCPP_ *button) | 
| Function is called when working with C++ and calling the function deleteButton. | |
| jint | getButtonHeight (Button *button) | 
| Gets the height of the Button. | |
| char * | getButtonLabel (Button *button) | 
| Gets the Title of the Button. | |
| jobject | getButtonObject (Button *button) | 
| Gets the reference to the java button object. | |
| jint | getButtonWidth (Button *button) | 
| Gets the width of the Button. | |
| jint | getButtonX (Button *button) | 
| Gets the X-Pos of the Button. | |
| jint | getButtonY (Button *button) | 
| Gets the Y-Pos of the Button. | |
| void | initButton_ (Button_ *button) | 
| Initializes the Button_ structure by setting the function pointers. | |
| void | removeButtonActionListener (Button *button, ActionListener al) | 
| Removes an ActionListener from the Button and deletes the global reference to the ActionListener. | |
| void | setButtonLabel (Button *button, const char *label) | 
| Sets the Title of the Button. | |
| void | setButtonLocation (Button *button, jint x, jint y) | 
| Sets the location of the Button. | |
| void | setButtonSize (Button *button, jint width, jint height) | 
| Sets Size of the Button. | |
A Button is a simple control element with a label. You can push it to cause an event and the application to perform an action.
Definition in file button.c.
| 
 | ||||||||||||
| Adds an ActionListener for the Button to call back the specified function. For more information see: addActionListener 
 
 
 | 
| 
 | 
| Creates the Button by getting the Java Button-Class, the method ids and createing a new Java Button-Object. 
 
 | 
| 
 | 
| Function is called when working with C and calling the function createButton. It initializes the Button_ structure. 
 
 | 
| 
 | 
| Function is called when working with C++ and calling the function createButton. It initializes the ButtonCPP_ structure. 
 
 | 
| 
 | 
| Deletes the Button by deleting the global references. 
 
 | 
| 
 | 
| Function is called when working with C and calling the function deleteButton. 
 
 | 
| 
 | 
| Function is called when working with C++ and calling the function deleteButton. 
 
 | 
| 
 | 
| Gets the height of the Button. 
 
 
 | 
| 
 | 
| Gets the Title of the Button. 
 
 
 | 
| 
 | 
| Gets the reference to the java button object. 
 
 
 | 
| 
 | 
| Gets the width of the Button. 
 
 
 | 
| 
 | 
| Gets the X-Pos of the Button. 
 
 
 | 
| 
 | 
| Gets the Y-Pos of the Button. 
 
 
 | 
| 
 | 
| Initializes the Button_ structure by setting the function pointers. 
 
 | 
| 
 | ||||||||||||
| Removes an ActionListener from the Button and deletes the global reference to the ActionListener. 
 
 
 | 
| 
 | ||||||||||||
| Sets the Title of the Button. 
 
 
 | 
| 
 | ||||||||||||||||
| Sets the location of the Button. 
 
 | 
| 
 | ||||||||||||||||
| Sets Size of the Button. 
 
 | 
 1.4.4
 1.4.4