checkbox.c File Reference

Implementation of the CheckBox functions. More...

#include "checkbox.h"
#include "component.h"

Include dependency graph for checkbox.c:

Go to the source code of this file.

Functions

ItemListener addCheckBoxItemListener (CheckBox *checkbox, void(*func)(Component, jboolean, const char *))
 Adds an ItemListener for the CheckBox to call back the specified function.
void createCheckBox_ (CheckBox *checkbox)
 Creates the CheckBox by getting the Java CheckBox-Class, the method ids and createing a new Java CheckBox-Object.
void createCheckBoxC (CheckBox_ *checkbox)
 Function is called when working with C and calling the function createCheckBox.
void createCheckBoxCPP (CheckBoxCPP_ *checkbox)
 Function is called when working with C++ and calling the function createCheckBox.
void deleteCheckBox_ (CheckBox *checkbox)
 Deletes the CheckBox by deleting the global references.
void deleteCheckBoxC (CheckBox_ *checkbox)
 Function is called when working with C and calling the function deleteCheckBox.
void deleteCheckBoxCPP (CheckBoxCPP_ *checkbox)
 Function is called when working with C++ and calling the function deleteCheckBox.
jint getCheckBoxHeight (CheckBox *checkbox)
 Gets the height of the CheckBox.
char * getCheckBoxLabel (CheckBox *checkbox)
 Gets the label of the CheckBox.
jobject getCheckBoxObject (CheckBox *checkbox)
 Gets the reference to the java checkbox object.
jboolean getCheckBoxState (CheckBox *checkbox)
 Gets the state of the CheckBox.
jint getCheckBoxWidth (CheckBox *checkbox)
 Gets the width of the CheckBox.
jint getCheckBoxX (CheckBox *checkbox)
 Gets the X-Pos of the CheckBox.
jint getCheckBoxY (CheckBox *checkbox)
 Gets the Y-Pos of the CheckBox.
void initCheckBox_ (CheckBox_ *checkbox)
 Initializes the CheckBox_ structure by setting the function pointers.
void removeCheckBoxItemListener (CheckBox *checkbox, ItemListener il)
 Removes an ItemListener from the CheckBox and deletes the global reference to the ItemListener.
void setCheckBoxCheckBoxGroup (CheckBox *checkbox, const CheckBoxGroup *checkboxgroup)
 Sets the CheckBoxGroup of the CheckBox.
void setCheckBoxLabel (CheckBox *checkbox, const char *label)
 Sets the label of the CheckBox.
void setCheckBoxLocation (CheckBox *checkbox, jint x, jint y)
 Sets the location of the CheckBox.
void setCheckBoxSize (CheckBox *checkbox, jint width, jint height)
 Sets Size of the CheckBox.
void setCheckBoxState (CheckBox *checkbox, jboolean state)
 Sets the state of the CheckBox.


Detailed Description

Implementation of the CheckBox functions.

A Checkbox is an control element which can be selected and deselceted. It can be member of a Checkboxgroup, then only one Checkbox of the group can be checked.

Author:
Stefan Gruber
Date:
20.02.2005

Definition in file checkbox.c.


Function Documentation

ItemListener addCheckBoxItemListener CheckBox checkbox,
void(*)(Component, jboolean, const char *)  func
 

Adds an ItemListener for the CheckBox to call back the specified function.

For more information see: addItemListener

Parameters:
checkbox - The CheckBox to add the checkboxener to.
func - The function to call back.
Returns:
the created ItemListener object.
See also:
removeCheckBoxItemListener(CheckBox* checkbox, ItemListener il)

Definition at line 192 of file checkbox.c.

void createCheckBox_ CheckBox checkbox  ) 
 

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

Parameters:
checkbox - The CheckBox to create.

Definition at line 237 of file checkbox.c.

void createCheckBoxC CheckBox_ checkbox  ) 
 

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

It initializes the CheckBox_ structure.

Parameters:
checkbox - A pointer to a CheckBox_ structure.

Definition at line 266 of file checkbox.c.

void createCheckBoxCPP CheckBoxCPP_ checkbox  ) 
 

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

It initializes the CheckBoxCPP_ structure.

Parameters:
checkbox - A pointer to a CheckBoxCPP_ structure.

Definition at line 254 of file checkbox.c.

void deleteCheckBox_ CheckBox checkbox  ) 
 

Deletes the CheckBox by deleting the global references.

Parameters:
checkbox - A pointer to a checkbox.

Definition at line 276 of file checkbox.c.

void deleteCheckBoxC CheckBox_ checkbox  ) 
 

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

Parameters:
checkbox - A pointer to a CheckBox_ structure.

Definition at line 296 of file checkbox.c.

void deleteCheckBoxCPP CheckBoxCPP_ checkbox  ) 
 

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

Parameters:
checkbox - A pointer to a CheckBoxCPP_ structure.

Definition at line 286 of file checkbox.c.

jint getCheckBoxHeight CheckBox checkbox  ) 
 

Gets the height of the CheckBox.

Parameters:
checkbox - Pointer to the checkbox.
Returns:
the current height of the CheckBox.
See also:
setCheckBoxSize(CheckBox* checkbox, jint width, jint height)

getCheckBoxWidth(CheckBox* checkbox)

Definition at line 68 of file checkbox.c.

char* getCheckBoxLabel CheckBox checkbox  ) 
 

Gets the label of the CheckBox.

Parameters:
checkbox - Pointer to the checkbox.
Returns:
the label of the checkbox.
See also:
setCheckBoxLabel(CheckBox* checkbox, const char* label)

Definition at line 137 of file checkbox.c.

jobject getCheckBoxObject CheckBox checkbox  ) 
 

Gets the reference to the java checkbox object.

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

Definition at line 26 of file checkbox.c.

jboolean getCheckBoxState CheckBox checkbox  ) 
 

Gets the state of the CheckBox.

Parameters:
checkbox - Pointer to the checkbox.
Returns:
the state of the checkbox.
See also:
setCheckBoxState(CheckBox* checkbox, jboolean state)

Definition at line 167 of file checkbox.c.

jint getCheckBoxWidth CheckBox checkbox  ) 
 

Gets the width of the CheckBox.

Parameters:
checkbox - Pointer to the checkbox.
Returns:
the current width of the CheckBox.
See also:
setCheckBoxSize(CheckBox* checkbox, jint width, jint height)

getCheckBoxHeight(CheckBox* checkbox)

Definition at line 54 of file checkbox.c.

jint getCheckBoxX CheckBox checkbox  ) 
 

Gets the X-Pos of the CheckBox.

Parameters:
checkbox - Pointer to the checkbox.
Returns:
the current X-Pos of the checkbox.
See also:
setCheckBoxLocation(CheckBox* checkbox, jint x, jint y)

getCheckBoxY(CheckBox* checkbox)

Definition at line 96 of file checkbox.c.

jint getCheckBoxY CheckBox checkbox  ) 
 

Gets the Y-Pos of the CheckBox.

Parameters:
checkbox - Pointer to the checkbox.
Returns:
the current Y-Pos of the checkbox.
See also:
setCheckBoxLocation(CheckBox* checkbox, jint x, jint y)

getCheckBoxX(CheckBox* checkbox)

Definition at line 110 of file checkbox.c.

void initCheckBox_ CheckBox_ checkbox  ) 
 

Initializes the CheckBox_ structure by setting the function pointers.

Parameters:
checkbox - A pointer to a CheckBox_ structure.

Definition at line 214 of file checkbox.c.

void removeCheckBoxItemListener CheckBox checkbox,
ItemListener  il
 

Removes an ItemListener from the CheckBox and deletes the global reference to the ItemListener.

Parameters:
checkbox - The Button to remove the checkboxener from.
il - The ItemListener to remove.
See also:
addCheckBoxItemListener(CheckBox* checkbox, void (*func)(Component, jboolean, const char*))

Definition at line 205 of file checkbox.c.

void setCheckBoxCheckBoxGroup CheckBox checkbox,
const CheckBoxGroup checkboxgroup
 

Sets the CheckBoxGroup of the CheckBox.

Parameters:
checkbox - Pointer to the checkbox.
checkboxgroup - The CheckBoxGroup to set.

Definition at line 177 of file checkbox.c.

void setCheckBoxLabel CheckBox checkbox,
const char *  label
 

Sets the label of the CheckBox.

Parameters:
checkbox - Pointer to the checkbox.
label - The label to set.
See also:
getCheckBoxLabel(CheckBox* checkbox)

Definition at line 122 of file checkbox.c.

void setCheckBoxLocation CheckBox checkbox,
jint  x,
jint  y
 

Sets the location of the CheckBox.

Parameters:
checkbox - Pointer to the checkbox.
x - New X-Pos.
y - New Y-Pos.
See also:
getCheckBoxX(CheckBox* checkbox)

getCheckBoxY(CheckBox* checkbox)

Definition at line 82 of file checkbox.c.

void setCheckBoxSize CheckBox checkbox,
jint  width,
jint  height
 

Sets Size of the CheckBox.

Parameters:
checkbox - Pointer to the checkbox.
width - New width.
height - New height.
See also:
getCheckBoxWidth(CheckBox* checkbox)

getCheckBoxHeight(CheckBox* checkbox)

Definition at line 40 of file checkbox.c.

void setCheckBoxState CheckBox checkbox,
jboolean  state
 

Sets the state of the CheckBox.

Parameters:
checkbox - Pointer to the checkbox.
state - The state to set.
See also:
getCheckBoxState(CheckBox* checkbox)

Definition at line 154 of file checkbox.c.


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