component.h File Reference

Deklares the functions for Objects extending the Java Component-Class. More...

#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.


Detailed Description

Deklares the functions for Objects extending the Java Component-Class.

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.

Author:
Stefan Gruber
Date:
01.02.2005

Definition in file component.h.


Function Documentation

Color getBackground jobject  obj  ) 
 

Gets the background color of the Component.

Parameters:
obj - The Component.
Returns:
the current color of th Component as struct Color.
See also:
setBackgroundColor(jobject obj, Color c)

Definition at line 157 of file component.c.

Color getForeground jobject  obj  ) 
 

Gets the foreground color of the Component.

Parameters:
obj - The Component.
Returns:
the current color of th Component as struct Color.
See also:
setForeground(jobject obj, Color c)

Definition at line 126 of file component.c.

jint getHeight jobject  obj  ) 
 

Gets the height of the Component.

Parameters:
obj - The Component.
Returns:
the current height of the Component.
See also:
setSize(jobject obj, jint width, jint height)

getWidth(jobject obj)

Definition at line 57 of file component.c.

jint getWidth jobject  obj  ) 
 

Gets the width of the Component.

Parameters:
obj - The Component.
Returns:
the current width of the Component.
See also:
setSize(jobject obj, jint width, jint height)

getHeight(jobject obj)

Definition at line 43 of file component.c.

jint getX jobject  obj  ) 
 

Gets the X-Pos of a Component.

Parameters:
obj - The Component.
Returns:
the current X-Pos of the Component.
See also:
setLocation(jobject obj, jint x, jint y)

getY(jobject obj)

Definition at line 71 of file component.c.

jint getY jobject  obj  ) 
 

Gets the Y-Pos of the Component.

Parameters:
obj - The Component.
Returns:
the current Y-Pos of the Component.
See also:
setLocation(jobject obj, jint x, jint y)

getX(jobject obj)

Definition at line 85 of file component.c.

void setBackground jobject  obj,
const Color  c
 

Sets the background color of the Component.

Parameters:
obj - The Component.
c - The new Color.
See also:
getBackground(jobject obj)

Definition at line 142 of file component.c.

void setForeground jobject  obj,
const Color  c
 

Sets the foreground color of the Component.

Parameters:
obj - The Component.
c - The new Color.
See also:
getForeground(jobject obj)

Definition at line 111 of file component.c.

void setLocation jobject  obj,
jint  x,
jint  y
 

Sets the location of the Component.

Parameters:
obj - The Component.
x - New X-Pos.
y - New Y-Pos.
See also:
getX(jobject obj)

getY(jobject obj)

Definition at line 99 of file component.c.

void setSize jobject  obj,
jint  width,
jint  height
 

Sets Size of the Component.

Parameters:
obj - The Component.
width - New width.
height - New height.
See also:
getWidth(jobject obj)

getHeight(jobject obj)

Definition at line 29 of file component.c.


Generated on Sat Nov 19 14:11:13 2005 for GrubC by  doxygen 1.4.4