textarea.c File Reference

Implementation of the TextArea functions. More...

#include "textarea.h"
#include "component.h"

Include dependency graph for textarea.c:

Go to the source code of this file.

Functions

void createTextArea_ (TextArea *textarea)
 Creates the TextArea by getting the Java TextArea-Class, the method ids and createing a new Java TextArea-Object.
void createTextAreaC (TextArea_ *textarea)
 Function is called when working with C and calling the function createTextArea.
void createTextAreaCPP (TextAreaCPP_ *textarea)
 Function is called when working with C++ and calling the function createTextArea.
void deleteTextArea_ (TextArea *textarea)
 Deletes the TextArea by deleting the global references.
void deleteTextAreaC (TextArea_ *textarea)
 Function is called when working with C and calling the function deleteTextArea.
void deleteTextAreaCPP (TextAreaCPP_ *textarea)
 Function is called when working with C++ and calling the function deleteTextArea.
jint getTextAreaColumns (TextArea *textarea)
 Gets columns of the TextArea.
jint getTextAreaHeight (TextArea *textarea)
 Gets the height of the TextArea.
jobject getTextAreaObject (TextArea *textarea)
 Gets the reference to the java textarea object.
jint getTextAreaRows (TextArea *textarea)
 Gets rows of the TextArea.
char * getTextAreaText (TextArea *textarea)
 Gets the Title of the TextArea.
jint getTextAreaWidth (TextArea *textarea)
 Gets the width of the TextArea.
jint getTextAreaX (TextArea *textarea)
 Gets the X-Pos of the TextArea.
jint getTextAreaY (TextArea *textarea)
 Gets the Y-Pos of the TextArea.
void initTextArea_ (TextArea_ *textarea)
 Initializes the TextArea_ structure by setting the function pointers.
void setTextAreaColumns (TextArea *textarea, jint columns)
 Sets columns of the TextArea.
void setTextAreaLocation (TextArea *textarea, jint x, jint y)
 Sets the location of the TextArea.
void setTextAreaRows (TextArea *textarea, jint rows)
 Sets rows of the TextArea.
void setTextAreaSize (TextArea *textarea, jint width, jint height)
 Sets Size of the TextArea.
void setTextAreaText (TextArea *textarea, const char *text)
 Sets the Title of the TextArea.


Detailed Description

Implementation of the TextArea functions.

A Textarea allows you to display multiple lines of text and to interact with the user. The user can edit the text.

Author:
Stefan Gruber
Date:
01.02.2005

Definition in file textarea.c.


Function Documentation

void createTextArea_ TextArea textarea  ) 
 

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

Parameters:
textarea - The TextArea to create.

Definition at line 223 of file textarea.c.

void createTextAreaC TextArea_ textarea  ) 
 

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

It initializes the TextArea_ structure.

Parameters:
textarea - A pointer to a TextArea_ structure.

Definition at line 253 of file textarea.c.

void createTextAreaCPP TextAreaCPP_ textarea  ) 
 

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

It initializes the TextAreaCPP_ structure.

Parameters:
textarea - A pointer to a TextAreaCPP_ structure.

Definition at line 241 of file textarea.c.

void deleteTextArea_ TextArea textarea  ) 
 

Deletes the TextArea by deleting the global references.

Parameters:
textarea - A pointer to a textarea.

Definition at line 263 of file textarea.c.

void deleteTextAreaC TextArea_ textarea  ) 
 

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

Parameters:
textarea - A pointer to a TextArea_ structure.

Definition at line 283 of file textarea.c.

void deleteTextAreaCPP TextAreaCPP_ textarea  ) 
 

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

Parameters:
textarea - A pointer to a TextAreaCPP_ structure.

Definition at line 273 of file textarea.c.

jint getTextAreaColumns TextArea textarea  ) 
 

Gets columns of the TextArea.

Parameters:
textarea - Pointer to the textarea.
Returns:
the current count of columns of the textarea.
See also:
setTextAreaColumns(TextArea* textarea, jint columns)

Definition at line 154 of file textarea.c.

jint getTextAreaHeight TextArea textarea  ) 
 

Gets the height of the TextArea.

Parameters:
textarea - Pointer to the textarea.
Returns:
the current height of the TextArea.
See also:
setTextAreaSize(TextArea* textarea, jint width, jint height)

getTextAreaWidth(TextArea* textarea)

Definition at line 99 of file textarea.c.

jobject getTextAreaObject TextArea textarea  ) 
 

Gets the reference to the java textarea object.

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

Definition at line 25 of file textarea.c.

jint getTextAreaRows TextArea textarea  ) 
 

Gets rows of the TextArea.

Parameters:
textarea - Pointer to the textarea.
Returns:
the current count of columns of the textarea.
See also:
setTextAreaRows(TextArea* textarea, jint rows)

Definition at line 179 of file textarea.c.

char* getTextAreaText TextArea textarea  ) 
 

Gets the Title of the TextArea.

Parameters:
textarea - Pointer to the textarea.
Returns:
a char* with the current textarea.
See also:
setTextAreaText(TextArea* textarea, const char* textarea)

Definition at line 52 of file textarea.c.

jint getTextAreaWidth TextArea textarea  ) 
 

Gets the width of the TextArea.

Parameters:
textarea - Pointer to the textarea.
Returns:
the current width of the TextArea.
See also:
setTextAreaSize(TextArea* textarea, jint width, jint height)

getTextAreaHeight(TextArea* textarea)

Definition at line 85 of file textarea.c.

jint getTextAreaX TextArea textarea  ) 
 

Gets the X-Pos of the TextArea.

Parameters:
textarea - Pointer to the textarea.
Returns:
the current X-Pos of the textarea.
See also:
setTextAreaLocation(TextArea* textarea, jint x, jint y)

getTextAreaY(TextArea* textarea)

Definition at line 127 of file textarea.c.

jint getTextAreaY TextArea textarea  ) 
 

Gets the Y-Pos of the TextArea.

Parameters:
textarea - Pointer to the textarea.
Returns:
the current Y-Pos of the textarea.
See also:
setTextAreaLocation(TextArea* textarea, jint x, jint y)

getTextAreaX(TextArea* textarea)

Definition at line 141 of file textarea.c.

void initTextArea_ TextArea_ textarea  ) 
 

Initializes the TextArea_ structure by setting the function pointers.

Parameters:
textarea - A pointer to a TextArea_ structure.

Definition at line 200 of file textarea.c.

void setTextAreaColumns TextArea textarea,
jint  columns
 

Sets columns of the TextArea.

Parameters:
textarea - Pointer to the textarea.
columns - The new count of columns.
See also:
getTextAreaColumns(TextArea* textarea)

Definition at line 166 of file textarea.c.

void setTextAreaLocation TextArea textarea,
jint  x,
jint  y
 

Sets the location of the TextArea.

Parameters:
textarea - Pointer to the textarea.
x - New X-Pos.
y - New Y-Pos.
See also:
getTextAreaX(TextArea* textarea)

getTextAreaY(TextArea* textarea)

Definition at line 113 of file textarea.c.

void setTextAreaRows TextArea textarea,
jint  rows
 

Sets rows of the TextArea.

Parameters:
textarea - Pointer to the textarea.
rows - The new count of rows.
See also:
getTextAreaRows(TextArea* textarea)

Definition at line 191 of file textarea.c.

void setTextAreaSize TextArea textarea,
jint  width,
jint  height
 

Sets Size of the TextArea.

Parameters:
textarea - Pointer to the textarea.
width - New width.
height - New height.
See also:
getTextAreaWidth(TextArea* textarea)

getTextAreaHeight(TextArea* textarea)

Definition at line 71 of file textarea.c.

void setTextAreaText TextArea textarea,
const char *  text
 

Sets the Title of the TextArea.

Parameters:
textarea - Pointer to the textarea.
text - The new textarea.
See also:
getTextAreaText(TextArea* textarea)

Definition at line 37 of file textarea.c.


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