textfield.c File Reference

Implementation of the TextField functions. More...

#include "textfield.h"
#include "component.h"

Include dependency graph for textfield.c:

Go to the source code of this file.

Functions

void createTextField_ (TextField *textfield)
 Creates the TextField by getting the Java TextField-Class, the method ids and createing a new Java TextField-Object.
void createTextFieldC (TextField_ *textfield)
 Function is called when working with C and calling the function createTextField.
void createTextFieldCPP (TextFieldCPP_ *textfield)
 Function is called when working with C++ and calling the function createTextField.
void deleteTextField_ (TextField *textfield)
 Deletes the TextField by deleting the global references.
void deleteTextFieldC (TextField_ *textfield)
 Function is called when working with C and calling the function deleteTextField.
void deleteTextFieldCPP (TextFieldCPP_ *textfield)
 Function is called when working with C++ and calling the function deleteTextField.
jint getTextFieldColumns (TextField *textfield)
 Gets columns of the TextField.
jint getTextFieldHeight (TextField *textfield)
 Gets the height of the TextField.
jobject getTextFieldObject (TextField *textfield)
 Gets the reference to the java textfield object.
char * getTextFieldText (TextField *textfield)
 Gets the Title of the TextField.
jint getTextFieldWidth (TextField *textfield)
 Gets the width of the TextField.
jint getTextFieldX (TextField *textfield)
 Gets the X-Pos of the TextField.
jint getTextFieldY (TextField *textfield)
 Gets the Y-Pos of the TextField.
void initTextField_ (TextField_ *textfield)
 Initializes the TextField_ structure by setting the function pointers.
void setTextFieldColumns (TextField *textfield, jint columns)
 Sets columns of the TextField.
void setTextFieldLocation (TextField *textfield, jint x, jint y)
 Sets the location of the TextField.
void setTextFieldSize (TextField *textfield, jint width, jint height)
 Sets Size of the TextField.
void setTextFieldText (TextField *textfield, const char *text)
 Sets the Title of the TextField.


Detailed Description

Implementation of the TextField functions.

A Textfield allows you to display a single line of text and to interact with the user. The user can edit the text.

Author:
Stefan Gruber
Date:
01.02.2005

Definition in file textfield.c.


Function Documentation

void createTextField_ TextField textfield  ) 
 

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

Parameters:
textfield - The TextField to create.

Definition at line 196 of file textfield.c.

void createTextFieldC TextField_ textfield  ) 
 

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

It initializes the TextField_ structure.

Parameters:
textfield - A pointer to a TextField_ structure.

Definition at line 224 of file textfield.c.

void createTextFieldCPP TextFieldCPP_ textfield  ) 
 

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

It initializes the TextFieldCPP_ structure.

Parameters:
textfield - A pointer to a TextFieldCPP_ structure.

Definition at line 212 of file textfield.c.

void deleteTextField_ TextField textfield  ) 
 

Deletes the TextField by deleting the global references.

Parameters:
textfield - A pointer to a textfield.

Definition at line 234 of file textfield.c.

void deleteTextFieldC TextField_ textfield  ) 
 

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

Parameters:
textfield - A pointer to a TextField_ structure.

Definition at line 254 of file textfield.c.

void deleteTextFieldCPP TextFieldCPP_ textfield  ) 
 

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

Parameters:
textfield - A pointer to a TextFieldCPP_ structure.

Definition at line 244 of file textfield.c.

jint getTextFieldColumns TextField textfield  ) 
 

Gets columns of the TextField.

Parameters:
textfield - Pointer to the textfield.
Returns:
the current count of columns of the textfield.
See also:
void setTextFieldColumns(TextField* textfield, jint columns)

Definition at line 154 of file textfield.c.

jint getTextFieldHeight TextField textfield  ) 
 

Gets the height of the TextField.

Parameters:
textfield - Pointer to the textfield.
Returns:
the current height of the TextField.
See also:
setTextFieldSize(TextField* textfield, jint width, jint height)

getTextFieldWidth(TextField* textfield)

Definition at line 99 of file textfield.c.

jobject getTextFieldObject TextField textfield  ) 
 

Gets the reference to the java textfield object.

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

Definition at line 25 of file textfield.c.

char* getTextFieldText TextField textfield  ) 
 

Gets the Title of the TextField.

Parameters:
textfield - Pointer to the textfield.
Returns:
a char* with the current textfield.
See also:
setTextFieldText(TextField* textfield, const char* textfield)

Definition at line 52 of file textfield.c.

jint getTextFieldWidth TextField textfield  ) 
 

Gets the width of the TextField.

Parameters:
textfield - Pointer to the textfield.
Returns:
the current width of the TextField.
See also:
setTextFieldSize(TextField* textfield, jint width, jint height)

getTextFieldHeight(TextField* textfield)

Definition at line 85 of file textfield.c.

jint getTextFieldX TextField textfield  ) 
 

Gets the X-Pos of the TextField.

Parameters:
textfield - Pointer to the textfield.
Returns:
the current X-Pos of the textfield.
See also:
setTextFieldLocation(TextField* textfield, jint x, jint y)

getTextFieldY(TextField* textfield)

Definition at line 127 of file textfield.c.

jint getTextFieldY TextField textfield  ) 
 

Gets the Y-Pos of the TextField.

Parameters:
textfield - Pointer to the textfield.
Returns:
the current Y-Pos of the textfield.
See also:
setTextFieldLocation(TextField* textfield, jint x, jint y)

getTextFieldX(TextField* textfield)

Definition at line 141 of file textfield.c.

void initTextField_ TextField_ textfield  ) 
 

Initializes the TextField_ structure by setting the function pointers.

Parameters:
textfield - A pointer to a TextField_ structure.

Definition at line 175 of file textfield.c.

void setTextFieldColumns TextField textfield,
jint  columns
 

Sets columns of the TextField.

Parameters:
textfield - Pointer to the textfield.
columns - The new count of columns.
See also:
getTextFieldColumns(TextField* textfield)

Definition at line 166 of file textfield.c.

void setTextFieldLocation TextField textfield,
jint  x,
jint  y
 

Sets the location of the TextField.

Parameters:
textfield - Pointer to the textfield.
x - New X-Pos.
y - New Y-Pos.
See also:
getTextFieldX(TextField* textfield)

getTextFieldY(TextField* textfield)

Definition at line 113 of file textfield.c.

void setTextFieldSize TextField textfield,
jint  width,
jint  height
 

Sets Size of the TextField.

Parameters:
textfield - Pointer to the textfield.
width - New width.
height - New height.
See also:
getTextFieldWidth(TextField* textfield)

getTextFieldHeight(TextField* textfield)

Definition at line 71 of file textfield.c.

void setTextFieldText TextField textfield,
const char *  text
 

Sets the Title of the TextField.

Parameters:
textfield - Pointer to the textfield.
text - The new textfield.
See also:
getTextFieldText(TextField* textfield)

Definition at line 37 of file textfield.c.


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