#include "component.h"
#include "container.h"
#include "frame.h"
Include dependency graph for frame.c:
Go to the source code of this file.
Functions | |
void | addFrameComponent (Frame *frame, jobject comp) |
Adds a Component to the Frame. | |
ComponentListener | addFrameComponentListener (Frame *frame, void(*func)(jint, Component)) |
Adds a ComponentListener for a Frame to call back the specified function. | |
void | addFrameComponentWithConstraint (Frame *frame, jobject comp, jobject constraint) |
Adds a Component to the Frame at a position. | |
MouseListener | addFrameMouseListener (Frame *frame, void(*func)(jint, Component, jint, jint, jint, jint)) |
Adds a MouseListener for a Frame to call back the specified function. | |
WindowListener | addFrameWindowListener (Frame *frame, void(*func)(jint, Window)) |
Adds a WindowListener for a Frame to call back the specified function. | |
void | clearFrameScreen (Frame *frame) |
Clears the screen of the Frame. | |
void | closeFrame (Frame *frame) |
Closes the Frame and releases all resources. | |
void | createFrame_ (Frame *frame) |
Creates the Frame by getting the Java Frame-Class, the method ids and createing a new Java Frame-Object. | |
void | createFrameC (Frame_ *frame) |
Function is called when working with C and calling the function createFrame. | |
void | createFrameCPP (FrameCPP_ *frame) |
Function is called when working with C++ and calling the function createFrame. | |
void | deleteFrame_ (Frame *frame) |
Deletes the Frame by deleting the global references. | |
void | deleteFrameC (Frame_ *frame) |
Function is called when working with C and calling the function deleteFrame. | |
void | deleteFrameCPP (FrameCPP_ *frame) |
Function is called when working with C++ and calling the function deleteFrame. | |
void | drawFrameEllipse (Frame *frame, jfloat x, jfloat y, jfloat width, jfloat height, jboolean filled, const Color *c) |
Draws an ellipse on the Frame. | |
void | drawFrameLine (Frame *frame, jfloat x1, jfloat y1, jfloat x2, jfloat y2, const Color *c) |
Draws a line on the Frame. | |
void | drawFrameRectangle (Frame *frame, jfloat x, jfloat y, jfloat width, jfloat height, jboolean filled, const Color *c) |
Draws a rectangle on the Frame. | |
void | drawFrameShape (Frame *frame, const Shape *s) |
Draws a Shape on the Frame. | |
void | drawFrameString (Frame *frame, const char *text, jfloat x, jfloat y, const Color *c) |
Draws a text on the Frame. | |
Color | getFrameBackgroundColor (Frame *frame) |
Gets the background color of the Frame. | |
Color | getFrameForegroundColor (Frame *frame) |
Gets the foreground color of the Frame. | |
jint | getFrameHeight (Frame *frame) |
Gets the height of the Frame. | |
jint | getFrameState (Frame *frame) |
Gets the state of the Frame. | |
char * | getFrameTitle (Frame *frame) |
Gets the Title of the Frame. | |
jint | getFrameWidth (Frame *frame) |
Gets the width of the Frame. | |
jint | getFrameX (Frame *frame) |
Gets the X-Pos of the Frame. | |
jint | getFrameY (Frame *frame) |
Gets the Y-Pos of the Frame. | |
void | hideFrame (Frame *frame) |
Hides the Frame. | |
void | initFrame_ (Frame_ *frame) |
Initializes the Frame_ structure by setting the function pointers. | |
jboolean | isSameWindow (Frame *frame, Window window) |
Compares if the windows are the same. | |
void | removeFrameComponentListener (Frame *frame, ComponentListener cl) |
Removes a ComponentListener from a Frame and deletes the global reference to the ComponentListener. | |
void | removeFrameMouseListener (Frame *frame, MouseListener ml) |
Removes a MouseListener from a Frame and deletes the global reference to the MouseListener. | |
void | removeFrameWindowListener (Frame *frame, WindowListener wl) |
Removes a WindowListener from a Frame and deletes the global reference to the WindowListener. | |
void | setFrameBackgroundColor (Frame *frame, const Color c) |
Sets the background color of the Frame. | |
void | setFrameForegroundColor (Frame *frame, const Color c) |
Sets the foreground color of the Frame. | |
void | setFrameLayout (Frame *frame, jobject layoutmanager) |
Sets a LayoutManager to the Frame. | |
void | setFrameLocation (Frame *frame, jint x, jint y) |
Sets the location of the Frame. | |
void | setFrameMenuBar (Frame *frame, MenuBar *menubar) |
Sets the MenuBar of the Frame. | |
void | setFrameSize (Frame *frame, jint width, jint height) |
Sets Size of the Frame. | |
void | setFrameState (Frame *frame, jint state) |
Sets the state of the Frame. | |
void | setFrameTitle (Frame *frame, const char *title) |
Sets the Title of the Frame. | |
void | showFrame (Frame *frame) |
Shows the Frame. |
A Frame is a container where you can place control elements or draw on it. The Frame structures permit access to the methods of an AWT Frame. You can change its appearance, add control elements, draw on it, etc.
For more information about the AWT Frame have a look at Sun's Java API documentation.
Definition in file frame.c.
|
Adds a Component to the Frame.
|
|
Adds a ComponentListener for a Frame to call back the specified function. For more information see: addComponentListener
|
|
Adds a Component to the Frame at a position.
|
|
Adds a MouseListener for a Frame to call back the specified function. For more information see: addMouseListener
|
|
Adds a WindowListener for a Frame to call back the specified function. For more information see: addWindowListener
|
|
Clears the screen of the Frame.
|
|
Closes the Frame and releases all resources.
|
|
Creates the Frame by getting the Java Frame-Class, the method ids and createing a new Java Frame-Object.
|
|
Function is called when working with C and calling the function createFrame. It initializes the Frame_ structure.
|
|
Function is called when working with C++ and calling the function createFrame. It initializes the FrameCPP_ structure.
|
|
Deletes the Frame by deleting the global references.
|
|
Function is called when working with C and calling the function deleteFrame.
|
|
Function is called when working with C++ and calling the function deleteFrame.
|
|
Draws an ellipse on the Frame.
|
|
Draws a line on the Frame.
|
|
Draws a rectangle on the Frame.
|
|
Draws a Shape on the Frame.
|
|
Draws a text on the Frame.
|
|
Gets the background color of the Frame.
|
|
Gets the foreground color of the Frame.
|
|
Gets the height of the Frame.
|
|
Gets the state of the Frame.
|
|
Gets the Title of the Frame.
|
|
Gets the width of the Frame.
|
|
Gets the X-Pos of the Frame.
|
|
Gets the Y-Pos of the Frame.
|
|
Hides the Frame.
|
|
Initializes the Frame_ structure by setting the function pointers.
|
|
Compares if the windows are the same.
|
|
Removes a ComponentListener from a Frame and deletes the global reference to the ComponentListener.
|
|
Removes a MouseListener from a Frame and deletes the global reference to the MouseListener.
|
|
Removes a WindowListener from a Frame and deletes the global reference to the WindowListener.
|
|
Sets the background color of the Frame.
|
|
Sets the foreground color of the Frame.
|
|
Sets a LayoutManager to the Frame.
|
|
Sets the location of the Frame.
|
|
Sets the MenuBar of the Frame.
|
|
Sets Size of the Frame.
|
|
Sets the state of the Frame.
|
|
Sets the Title of the Frame.
|
|
Shows the Frame.
|