simplelayout.h File Reference

Descripes the SimpleLayout structures, functions and constants. More...

#include "../jnilib.h"

Include dependency graph for simplelayout.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SimpleLayout_
 A structure for C, which describes the SimpleLayout. More...
struct  SimpleLayoutCPP_
 A structure for C++, which describes the SimpleLayout. More...
struct  SimpleLayoutData
 This structure holds the data needed for the SimpleLayout for C and C++. More...

Defines

#define BORDERLAYOUT_CENTER   getStaticObjectFieldByName(CLS_BORDERLAYOUT, "CENTER", "Ljava/lang/String;")
#define BORDERLAYOUT_EAST   getStaticObjectFieldByName(CLS_BORDERLAYOUT, "EAST", "Ljava/lang/String;")
#define BORDERLAYOUT_NORTH   getStaticObjectFieldByName(CLS_BORDERLAYOUT, "NORTH", "Ljava/lang/String;")
#define BORDERLAYOUT_SOUTH   getStaticObjectFieldByName(CLS_BORDERLAYOUT, "SOUTH", "Ljava/lang/String;")
#define BORDERLAYOUT_WEST   getStaticObjectFieldByName(CLS_BORDERLAYOUT, "WEST", "Ljava/lang/String;")
#define CLS_BORDERLAYOUT   "java/awt/BorderLayout"
 Defines the full name of the AWT-BorderLayout-Class.
#define CLS_FLOWLAYOUT   "java/awt/FlowLayout"
 Defines the full name of the AWT-FlowLayout-Class.
#define CLS_GRIDLAYOUT   "java/awt/GridLayout"
 Defines the full name of the AWT-GridLayout-Class.
#define createBorderLayout   createBorderLayoutC
 Defines which function to call when createBorderLayout is called.
#define createFlowLayout   createFlowLayoutC
 Defines which function to call when createFlowLayout is called.
#define createGridLayout   createGridLayoutC
 Defines which function to call when createGridLayout is called.
#define deleteSimpleLayout   deleteSimpleLayoutC
 Defines which function to call when deleteSimpleLayout is called.
#define FLOWLAYOUT_CENTER   getStaticIntFieldByName(CLS_FLOWLAYOUT, "CENTER")
#define FLOWLAYOUT_LEFT   getStaticIntFieldByName(CLS_FLOWLAYOUT, "LEFT")
#define FLOWLAYOUT_RIGHT   getStaticIntFieldByName(CLS_FLOWLAYOUT, "RIGHT")

Typedefs

typedef SimpleLayout_ SimpleLayout
 Defines which structure is used as SimpleLayout.
typedef SimpleLayout_ SimpleLayout_
 A structure for C, which describes the SimpleLayout.
typedef SimpleLayoutCPP_ SimpleLayoutCPP_
 A structure for C++, which describes the SimpleLayout.
typedef SimpleLayoutData SimpleLayoutData
 This structure holds the data needed for the SimpleLayout for C and C++.

Functions

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 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 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 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.


Detailed Description

Descripes the SimpleLayout structures, functions and constants.

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.h.


Define Documentation

#define BORDERLAYOUT_CENTER   getStaticObjectFieldByName(CLS_BORDERLAYOUT, "CENTER", "Ljava/lang/String;")
 

Definition at line 37 of file simplelayout.h.

#define BORDERLAYOUT_EAST   getStaticObjectFieldByName(CLS_BORDERLAYOUT, "EAST", "Ljava/lang/String;")
 

Definition at line 34 of file simplelayout.h.

#define BORDERLAYOUT_NORTH   getStaticObjectFieldByName(CLS_BORDERLAYOUT, "NORTH", "Ljava/lang/String;")
 

Definition at line 33 of file simplelayout.h.

#define BORDERLAYOUT_SOUTH   getStaticObjectFieldByName(CLS_BORDERLAYOUT, "SOUTH", "Ljava/lang/String;")
 

Definition at line 35 of file simplelayout.h.

#define BORDERLAYOUT_WEST   getStaticObjectFieldByName(CLS_BORDERLAYOUT, "WEST", "Ljava/lang/String;")
 

Definition at line 36 of file simplelayout.h.

#define CLS_BORDERLAYOUT   "java/awt/BorderLayout"
 

Defines the full name of the AWT-BorderLayout-Class.

Definition at line 28 of file simplelayout.h.

#define CLS_FLOWLAYOUT   "java/awt/FlowLayout"
 

Defines the full name of the AWT-FlowLayout-Class.

Definition at line 25 of file simplelayout.h.

#define CLS_GRIDLAYOUT   "java/awt/GridLayout"
 

Defines the full name of the AWT-GridLayout-Class.

Definition at line 31 of file simplelayout.h.

#define createBorderLayout   createBorderLayoutC
 

Defines which function to call when createBorderLayout is called.

Definition at line 56 of file simplelayout.h.

#define createFlowLayout   createFlowLayoutC
 

Defines which function to call when createFlowLayout is called.

Definition at line 55 of file simplelayout.h.

#define createGridLayout   createGridLayoutC
 

Defines which function to call when createGridLayout is called.

Definition at line 57 of file simplelayout.h.

#define deleteSimpleLayout   deleteSimpleLayoutC
 

Defines which function to call when deleteSimpleLayout is called.

Definition at line 58 of file simplelayout.h.

#define FLOWLAYOUT_CENTER   getStaticIntFieldByName(CLS_FLOWLAYOUT, "CENTER")
 

Definition at line 41 of file simplelayout.h.

#define FLOWLAYOUT_LEFT   getStaticIntFieldByName(CLS_FLOWLAYOUT, "LEFT")
 

Definition at line 39 of file simplelayout.h.

#define FLOWLAYOUT_RIGHT   getStaticIntFieldByName(CLS_FLOWLAYOUT, "RIGHT")
 

Definition at line 40 of file simplelayout.h.


Typedef Documentation

typedef struct SimpleLayout_ SimpleLayout
 

Defines which structure is used as SimpleLayout.

Definition at line 54 of file simplelayout.h.

typedef struct SimpleLayout_ SimpleLayout_
 

A structure for C, which describes the SimpleLayout.

typedef struct SimpleLayoutCPP_ SimpleLayoutCPP_
 

A structure for C++, which describes the SimpleLayout.

typedef struct SimpleLayoutData SimpleLayoutData
 

This structure holds the data needed for the SimpleLayout for C and C++.


Function Documentation

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 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 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 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.


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