menubar.c File Reference

Implementation of the MenuBar functions. More...

#include "menubar.h"
#include "component.h"

Include dependency graph for menubar.c:

Go to the source code of this file.

Functions

void addMenuBarMenu (MenuBar *menubar, Menu *menu)
 Adds a Menu to the MenuBar.
void createMenuBar_ (MenuBar *menubar)
 Creates the MenuBar by getting the Java MenuBar-Class, the method ids and createing a new Java MenuBar-Object.
void createMenuBarC (MenuBar_ *menubar)
 Function is called when working with C and calling the function createMenuBar.
void createMenuBarCPP (MenuBarCPP_ *menubar)
 Function is called when working with C++ and calling the function createMenuBar.
void deleteMenuBar_ (MenuBar *menubar)
 Deletes the MenuBar by deleting the global references.
void deleteMenuBarC (MenuBar_ *menubar)
 Function is called when working with C and calling the function deleteMenuBar.
void deleteMenuBarCPP (MenuBarCPP_ *menubar)
 Function is called when working with C++ and calling the function deleteMenuBar.
jint getMenuBarMenuCount (MenuBar *menubar)
 Gets the number of items of the MenuBar.
jobject getMenuBarObject (MenuBar *menubar)
 Gets the reference to the java menubar object.
void initMenuBar_ (MenuBar_ *menubar)
 Initializes the MenuBar_ structure by setting the function pointers.
void removeMenuBarMenu (MenuBar *menubar, Menu *menu)
 Removes a Menu from the MenuBar.
void setMenuBarHelpMenu (MenuBar *menubar, Menu *menu)
 Sets the Help Menu of the MenuBar.


Detailed Description

Implementation of the MenuBar functions.

A MenuBar is placed on a Frame and displays all its Menus.

Author:
Stefan Gruber
Date:
01.02.2005

Definition in file menubar.c.


Function Documentation

void addMenuBarMenu MenuBar menubar,
Menu menu
 

Adds a Menu to the MenuBar.

Parameters:
menubar - Pointer to the menubar.
menu - The Menu to add.
See also:
removeMenuBarMenu(MenuBar* menubar, Menu* menu)

Definition at line 36 of file menubar.c.

void createMenuBar_ MenuBar menubar  ) 
 

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

Parameters:
menubar - The MenuBar to create.

Definition at line 99 of file menubar.c.

void createMenuBarC MenuBar_ menubar  ) 
 

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

It initializes the MenuBar_ structure.

Parameters:
menubar - A pointer to a MenuBar_ structure.

Definition at line 127 of file menubar.c.

void createMenuBarCPP MenuBarCPP_ menubar  ) 
 

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

It initializes the MenuBarCPP_ structure.

Parameters:
menubar - A pointer to a MenuBarCPP_ structure.

Definition at line 115 of file menubar.c.

void deleteMenuBar_ MenuBar menubar  ) 
 

Deletes the MenuBar by deleting the global references.

Parameters:
menubar - A pointer to a menubar.

Definition at line 137 of file menubar.c.

void deleteMenuBarC MenuBar_ menubar  ) 
 

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

Parameters:
menubar - A pointer to a MenuBar_ structure.

Definition at line 157 of file menubar.c.

void deleteMenuBarCPP MenuBarCPP_ menubar  ) 
 

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

Parameters:
menubar - A pointer to a MenuBarCPP_ structure.

Definition at line 147 of file menubar.c.

jint getMenuBarMenuCount MenuBar menubar  ) 
 

Gets the number of items of the MenuBar.

Parameters:
menubar - Pointer to the menubar.
Returns:
the number of items.

Definition at line 59 of file menubar.c.

jobject getMenuBarObject MenuBar menubar  ) 
 

Gets the reference to the java menubar object.

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

Definition at line 24 of file menubar.c.

void initMenuBar_ MenuBar_ menubar  ) 
 

Initializes the MenuBar_ structure by setting the function pointers.

Parameters:
menubar - A pointer to a MenuBar_ structure.

Definition at line 85 of file menubar.c.

void removeMenuBarMenu MenuBar menubar,
Menu menu
 

Removes a Menu from the MenuBar.

Parameters:
menubar - Pointer to the menubar.
menu - The Menu to remove.
See also:
addMenuBarMenu(MenuBar* menubar, Menu* menu)

Definition at line 48 of file menubar.c.

void setMenuBarHelpMenu MenuBar menubar,
Menu menu
 

Sets the Help Menu of the MenuBar.

Parameters:
menubar - Pointer to the menubar.
menu - The Help Menu.

Definition at line 69 of file menubar.c.


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