JWM Source Documentation

root.h File Reference

Header for the root menu functions. More...

Go to the source code of this file.

Functions

void SetRootMenu (const char *indexes, struct Menu *m)
 Set the root menu to be used for the specified indexes.
void SetShowExitConfirmation (char v)
 Set whether a confirmation dialog is displayed on exit.
int IsRootMenuDefined (int index)
 Determine if a root menu is defined for the specified index.
void GetRootMenuSize (int index, int *width, int *height)
 Get the size of a root menu.
int ShowRootMenu (int index, int x, int y)
 Show a root menu.
void Restart ()
 Restart the window manager.
void Exit ()
 Exit the window manager.
void ReloadMenu ()
 Reload the menu.
void InitializeRootMenu ()
void StartupRootMenu ()
void ShutdownRootMenu ()
void DestroyRootMenu ()

Detailed Description

Header for the root menu functions.

Author:
Joe Wingbermuehle
Date:
2004-2006

Definition in file root.h.


Function Documentation

void DestroyRootMenu ( )
void Exit ( )

Exit the window manager.

void GetRootMenuSize ( int  index,
int *  width,
int *  height 
)

Get the size of a root menu.

Parameters:
indexThe root menu index.
widthThe width output.
heightThe height output.
void InitializeRootMenu ( )
int IsRootMenuDefined ( int  index)

Determine if a root menu is defined for the specified index.

Returns:
1 if it is defined, 0 if not.
void ReloadMenu ( )

Reload the menu.

void Restart ( )

Restart the window manager.

void SetRootMenu ( const char *  indexes,
struct Menu m 
)

Set the root menu to be used for the specified indexes.

Parameters:
indexesThe indexes (ASCII string of '0' to '9').
mThe menu to use for the specified indexes.
void SetShowExitConfirmation ( char  v)

Set whether a confirmation dialog is displayed on exit.

Parameters:
v1 to display confirmation, 0 to just exit.
int ShowRootMenu ( int  index,
int  x,
int  y 
)

Show a root menu.

Parameters:
indexThe root menu index.
xThe x-coordinate.
yThe y-coordinate.
Returns:
1 if a menu was displayed, 0 if not.
void ShutdownRootMenu ( )
void StartupRootMenu ( )