simplelayout.c File Reference

Implementation of the SimpleLayout functions. More...

#include "simplelayout.h"

Include dependency graph for simplelayout.c:

Go to the source code of this file.

Functions

void createBorderLayout_ (SimpleLayout *simplelayout, jint hgap, jint vgap)
 Creates the BorderLayout by getting the Java BorderLayout-Class and creating a new Java BorderLayout-Object.
void createBorderLayoutC (SimpleLayout_ *simplelayout, jint hgap, jint vgap)
 Function is called when working with C and calling the function createBorderLayout.
void createBorderLayoutCPP (SimpleLayoutCPP_ *simplelayout, jint hgap, jint vgap)
 Function is called when working with C++ and calling the function createBorderLayout.
void createFlowLayout_ (SimpleLayout *simplelayout, jint hgap, jint vgap, jint align)
 Creates the SimpleLayout by getting the Java FlowLayout-Class and creating a new Java FlowLayout-Object.
void createFlowLayoutC (SimpleLayout_ *simplelayout, jint hgap, jint vgap, jint align)
 Function is called when working with C and calling the function createFlowLayout.
void createFlowLayoutCPP (SimpleLayoutCPP_ *simplelayout, jint hgap, jint vgap, jint align)
 Function is called when working with C++ and calling the function createFlowLayout.
void createGridLayout_ (SimpleLayout *simplelayout, jint hgap, jint vgap, jint rows, jint cols)
 Creates the GridLayout by getting the Java GridLayout-Class and creating a new Java GridLayout-Object.
void createGridLayoutC (SimpleLayout_ *simplelayout, jint hgap, jint vgap, jint rows, jint cols)
 Function is called when working with C and calling the function createGridLayout.
void createGridLayoutCPP (SimpleLayoutCPP_ *simplelayout, jint hgap, jint vgap, jint rows, jint cols)
 Function is called when working with C++ and calling the function createGridLayout.
void createSimpleLayout_ (SimpleLayout *simplelayout)
 Creates the SimpleLayout by getting the method ids.
void deleteSimpleLayout_ (SimpleLayout *simplelayout)
 Deletes the SimpleLayout by deleting the global references.
void deleteSimpleLayoutC (SimpleLayout_ *simplelayout)
 Function is called when working with C and calling the function deleteSimpleLayout.
void deleteSimpleLayoutCPP (SimpleLayoutCPP_ *simplelayout)
 Function is called when working with C++ and calling the function deleteSimpleLayout.
jobject getSimpleLayoutObject (SimpleLayout *simplelayout)
 Gets the reference to the java simplelayout object.
void initSimpleLayout_ (SimpleLayout_ *simplelayout)
 Initializes the SimpleLayout_ structure by setting the function pointers.


Detailed Description

Implementation of the SimpleLayout functions.

The SimpleLayout provides you access to three layouts, namely BorderLayout, FlowLayout and GridLayout. The BorderLayout lets you to arrange the control elements in the north, south, east, west and in the center of the container. The FlowLayout lets you arrange the control elements in a line and the GridLayout in a rectangular grid.

Author:
Stefan Gruber
Date:
10.02.2005

Definition in file simplelayout.c.


Function Documentation

void createBorderLayout_ SimpleLayout simplelayout,
jint  hgap,
jint  vgap
 

Creates the BorderLayout by getting the Java BorderLayout-Class and creating a new Java BorderLayout-Object.

Parameters:
simplelayout - The SimpleLayout to create.
hgap - The horizontal gap between components.
vgap - The vertical gap between components.

Definition at line 104 of file simplelayout.c.

void createBorderLayoutC SimpleLayout_ simplelayout,
jint  hgap,
jint  vgap
 

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

It initializes the SimpleLayout_ structure.

Parameters:
simplelayout - A pointer to a SimpleLayout_ structure.
hgap - The horizontal gap between components.
vgap - The vertical gap between components.

Definition at line 134 of file simplelayout.c.

void createBorderLayoutCPP SimpleLayoutCPP_ simplelayout,
jint  hgap,
jint  vgap
 

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

It initializes the SimpleLayoutCPP_ structure.

Parameters:
simplelayout - A pointer to a SimpleLayoutCPP_ structure.
hgap - The horizontal gap between components.
vgap - The vertical gap between components.

Definition at line 120 of file simplelayout.c.

void createFlowLayout_ SimpleLayout simplelayout,
jint  hgap,
jint  vgap,
jint  align
 

Creates the SimpleLayout by getting the Java FlowLayout-Class and creating a new Java FlowLayout-Object.

Parameters:
simplelayout - The SimpleLayout to create.
hgap - The horizontal gap between components.
vgap - The vertical gap between components.
align - The alignment.

Definition at line 59 of file simplelayout.c.

void createFlowLayoutC SimpleLayout_ simplelayout,
jint  hgap,
jint  vgap,
jint  align
 

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

It initializes the SimpleLayout_ structure.

Parameters:
simplelayout - A pointer to a SimpleLayout_ structure.
hgap - The horizontal gap between components.
vgap - The vertical gap between components.
align - The alignment.

Definition at line 91 of file simplelayout.c.

void createFlowLayoutCPP SimpleLayoutCPP_ simplelayout,
jint  hgap,
jint  vgap,
jint  align
 

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

It initializes the SimpleLayoutCPP_ structure.

Parameters:
simplelayout - A pointer to a SimpleLayoutCPP_ structure.
hgap - The horizontal gap between components.
vgap - The vertical gap between components.
align - The alignment.

Definition at line 76 of file simplelayout.c.

void createGridLayout_ SimpleLayout simplelayout,
jint  hgap,
jint  vgap,
jint  rows,
jint  cols
 

Creates the GridLayout by getting the Java GridLayout-Class and creating a new Java GridLayout-Object.

Parameters:
simplelayout - The SimpleLayout to create.
hgap - The horizontal gap between components.
vgap - The vertical gap between components.
rows - The number of rows.
cols - The number of columns.

Definition at line 149 of file simplelayout.c.

void createGridLayoutC SimpleLayout_ simplelayout,
jint  hgap,
jint  vgap,
jint  rows,
jint  cols
 

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

It initializes the SimpleLayout_ structure.

Parameters:
simplelayout - A pointer to a SimpleLayout_ structure.
hgap - The horizontal gap between components.
vgap - The vertical gap between components.
rows - The number of rows.
cols - The number of columns.

Definition at line 183 of file simplelayout.c.

void createGridLayoutCPP SimpleLayoutCPP_ simplelayout,
jint  hgap,
jint  vgap,
jint  rows,
jint  cols
 

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

It initializes the SimpleLayoutCPP_ structure.

Parameters:
simplelayout - A pointer to a SimpleLayoutCPP_ structure.
hgap - The horizontal gap between components.
vgap - The vertical gap between components.
rows - The number of rows.
cols - The number of columns.

Definition at line 167 of file simplelayout.c.

void createSimpleLayout_ SimpleLayout simplelayout  ) 
 

Creates the SimpleLayout by getting the method ids.

Parameters:
simplelayout - The SimpleLayout to create.

Definition at line 46 of file simplelayout.c.

void deleteSimpleLayout_ SimpleLayout simplelayout  ) 
 

Deletes the SimpleLayout by deleting the global references.

Parameters:
simplelayout - A pointer to a simplelayout.

Definition at line 193 of file simplelayout.c.

void deleteSimpleLayoutC SimpleLayout_ simplelayout  ) 
 

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

Parameters:
simplelayout - A pointer to a SimpleLayout_ structure.

Definition at line 213 of file simplelayout.c.

void deleteSimpleLayoutCPP SimpleLayoutCPP_ simplelayout  ) 
 

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

Parameters:
simplelayout - A pointer to a SimpleLayoutCPP_ structure.

Definition at line 203 of file simplelayout.c.

jobject getSimpleLayoutObject SimpleLayout simplelayout  ) 
 

Gets the reference to the java simplelayout object.

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

Definition at line 28 of file simplelayout.c.

void initSimpleLayout_ SimpleLayout_ simplelayout  ) 
 

Initializes the SimpleLayout_ structure by setting the function pointers.

Parameters:
simplelayout - A pointer to a SimpleLayout_ structure.

Definition at line 37 of file simplelayout.c.


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