label.c File Reference

Implementation of the Label functions. More...

#include "label.h"
#include "component.h"

Include dependency graph for label.c:

Go to the source code of this file.

Functions

void createLabel_ (Label *label)
 Creates the Label by getting the Java Label-Class, the method ids and createing a new Java Label-Object.
void createLabelC (Label_ *label)
 Function is called when working with C and calling the function createLabel.
void createLabelCPP (LabelCPP_ *label)
 Function is called when working with C++ and calling the function createLabel.
void deleteLabel_ (Label *label)
 Deletes the Label by deleting the global references.
void deleteLabelC (Label_ *label)
 Function is called when working with C and calling the function deleteLabel.
void deleteLabelCPP (LabelCPP_ *label)
 Function is called when working with C++ and calling the function deleteLabel.
jint getLabelHeight (Label *label)
 Gets the height of the Label.
jobject getLabelObject (Label *label)
 Gets the reference to the java label object.
char * getLabelText (Label *label)
 Gets the Title of the Label.
jint getLabelWidth (Label *label)
 Gets the width of the Label.
jint getLabelX (Label *label)
 Gets the X-Pos of the Label.
jint getLabelY (Label *label)
 Gets the Y-Pos of the Label.
void initLabel_ (Label_ *label)
 Initializes the Label_ structure by setting the function pointers.
void setLabelLocation (Label *label, jint x, jint y)
 Sets the location of the Label.
void setLabelSize (Label *label, jint width, jint height)
 Sets Size of the Label.
void setLabelText (Label *label, const char *text)
 Sets the Title of the Label.


Detailed Description

Implementation of the Label functions.

A Label is a control element, which displays a single line of text. The text can only be changed by the application.

Author:
Stefan Gruber
Date:
01.02.2005

Definition in file label.c.


Function Documentation

void createLabel_ Label label  ) 
 

Creates the Label by getting the Java Label-Class, the method ids and createing a new Java Label-Object.

Parameters:
label - The Label to create.

Definition at line 170 of file label.c.

void createLabelC Label_ label  ) 
 

Function is called when working with C and calling the function createLabel.

It initializes the Label_ structure.

Parameters:
label - A pointer to a Label_ structure.

Definition at line 196 of file label.c.

void createLabelCPP LabelCPP_ label  ) 
 

Function is called when working with C++ and calling the function createLabel.

It initializes the LabelCPP_ structure.

Parameters:
label - A pointer to a LabelCPP_ structure.

Definition at line 184 of file label.c.

void deleteLabel_ Label label  ) 
 

Deletes the Label by deleting the global references.

Parameters:
label - A pointer to a label.

Definition at line 206 of file label.c.

void deleteLabelC Label_ label  ) 
 

Function is called when working with C and calling the function deleteLabel.

Parameters:
label - A pointer to a Label_ structure.

Definition at line 226 of file label.c.

void deleteLabelCPP LabelCPP_ label  ) 
 

Function is called when working with C++ and calling the function deleteLabel.

Parameters:
label - A pointer to a LabelCPP_ structure.

Definition at line 216 of file label.c.

jint getLabelHeight Label label  ) 
 

Gets the height of the Label.

Parameters:
label - Pointer to the label.
Returns:
the current height of the Label.
See also:
setLabelSize(Label* label, jint width, jint height)

getLabelWidth(Label* label)

Definition at line 100 of file label.c.

jobject getLabelObject Label label  ) 
 

Gets the reference to the java label object.

Parameters:
label - Pointer to the label.
Returns:
the label object reference.

Definition at line 26 of file label.c.

char* getLabelText Label label  ) 
 

Gets the Title of the Label.

Parameters:
label - Pointer to the label.
Returns:
a char* with the current label.
See also:
setLabelText(Label* label, const char* label)

Definition at line 53 of file label.c.

jint getLabelWidth Label label  ) 
 

Gets the width of the Label.

Parameters:
label - Pointer to the label.
Returns:
the current width of the Label.
See also:
setLabelSize(Label* label, jint width, jint height)

getLabelHeight(Label* label)

Definition at line 86 of file label.c.

jint getLabelX Label label  ) 
 

Gets the X-Pos of the Label.

Parameters:
label - Pointer to the label.
Returns:
the current X-Pos of the label.
See also:
setLabelLocation(Label* label, jint x, jint y)

getLabelY(Label* label)

Definition at line 128 of file label.c.

jint getLabelY Label label  ) 
 

Gets the Y-Pos of the Label.

Parameters:
label - Pointer to the label.
Returns:
the current Y-Pos of the label.
See also:
setLabelLocation(Label* label, jint x, jint y)

getLabelX(Label* label)

Definition at line 142 of file label.c.

void initLabel_ Label_ label  ) 
 

Initializes the Label_ structure by setting the function pointers.

Parameters:
label - A pointer to a Label_ structure.

Definition at line 151 of file label.c.

void setLabelLocation Label label,
jint  x,
jint  y
 

Sets the location of the Label.

Parameters:
label - Pointer to the label.
x - New X-Pos.
y - New Y-Pos.
See also:
getLabelX(Label* label)

getLabelY(Label* label)

Definition at line 114 of file label.c.

void setLabelSize Label label,
jint  width,
jint  height
 

Sets Size of the Label.

Parameters:
label - Pointer to the label.
width - New width.
height - New height.
See also:
getLabelWidth(Label* label)

getLabelHeight(Label* label)

Definition at line 72 of file label.c.

void setLabelText Label label,
const char *  text
 

Sets the Title of the Label.

Parameters:
label - Pointer to the label.
text - The new label.
See also:
getLabelText(Label* label)

Definition at line 38 of file label.c.


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