#include "../jnilib.h"
#include "../graphic/color.h"
Include dependency graph for component.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Functions | |
Color | getBackground (jobject obj) |
Gets the background color of the Component. | |
Color | getForeground (jobject obj) |
Gets the foreground color of the Component. | |
jint | getHeight (jobject obj) |
Gets the height of the Component. | |
jint | getWidth (jobject obj) |
Gets the width of the Component. | |
jint | getX (jobject obj) |
Gets the X-Pos of a Component. | |
jint | getY (jobject obj) |
Gets the Y-Pos of the Component. | |
void | setBackground (jobject obj, const Color c) |
Sets the background color of the Component. | |
void | setForeground (jobject obj, const Color c) |
Sets the foreground color of the Component. | |
void | setLocation (jobject obj, jint x, jint y) |
Sets the location of the Component. | |
void | setSize (jobject obj, jint width, jint height) |
Sets Size of the Component. |
In the Java AWT Component hirarchy all GUI elements like frames, panels, buttons, textfields, etc. extend in their hirarchy from the Component class. With these functions you can change the look in size, location and color of these components.
Definition in file component.h.
|
Gets the background color of the Component.
Definition at line 157 of file component.c. |
|
Gets the foreground color of the Component.
Definition at line 126 of file component.c. |
|
Gets the height of the Component.
Definition at line 57 of file component.c. |
|
Gets the width of the Component.
Definition at line 43 of file component.c. |
|
Gets the X-Pos of a Component.
Definition at line 71 of file component.c. |
|
Gets the Y-Pos of the Component.
Definition at line 85 of file component.c. |
|
Sets the background color of the Component.
Definition at line 142 of file component.c. |
|
Sets the foreground color of the Component.
Definition at line 111 of file component.c. |
|
Sets the location of the Component.
Definition at line 99 of file component.c. |
|
Sets Size of the Component.
Definition at line 29 of file component.c. |