CTWM
Loading...
Searching...
No Matches
Data Structures | Macros | Enumerations | Functions | Variables
/usr/src/RPM/BUILD/ctwm-4.1.0/menus.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  MenuItem
 
struct  MenuRoot
 
struct  MouseButton
 
struct  FuncButton
 
struct  FuncKey
 

Macros

#define TWM_ROOT   "bLoB_GoOp" /* my private root menu */
 
#define TWM_WINDOWS   "TwmWindows" /* for f.menu "TwmWindows" */
 
#define TWM_ICONS   "TwmIcons" /* for f.menu "TwmIcons" */
 
#define TWM_WORKSPACES   "TwmWorkspaces" /* for f.menu "TwmWorkspaces" */
 
#define TWM_ALLWINDOWS   "TwmAllWindows" /* for f.menu "TwmAllWindows" */
 
#define TWM_ALLICONS   "TwmAllIcons" /* for f.menu "TwmAllIcons" */
 
#define TWM_KEYS   "TwmKeys" /* for f.menu "TwmKeys" */
 
#define TWM_VISIBLE   "TwmVisible" /* for f.menu "TwmVisible" */
 
#define MAXMENUDEPTH   10 /* max number of nested menus */
 
#define WARPSCREEN_NEXT   "next"
 
#define WARPSCREEN_PREV   "prev"
 
#define WARPSCREEN_BACK   "back"
 
#define COLORMAP_NEXT   "next"
 
#define COLORMAP_PREV   "prev"
 
#define COLORMAP_DEFAULT   "default"
 

Enumerations

enum  MRMapState { MRM_NEVER , MRM_UNMAPPED , MRM_MAPPED }
 

Functions

MenuRootNewMenuRoot (char *name)
 
MenuItemAddToMenu (MenuRoot *menu, char *item, char *action, MenuRoot *sub, int func, char *fore, char *back)
 
bool PopUpMenu (MenuRoot *menu, int x, int y, bool center)
 
void MakeWorkspacesMenu (void)
 
MenuRootFindMenuRoot (char *name)
 
bool AddFuncKey (char *name, int cont, int mods, int func, MenuRoot *menu, char *win_name, char *action)
 
void AddFuncButton (int num, int cont, int mods, int func, MenuRoot *menu, MenuItem *item)
 
void AddDefaultFuncButtons (void)
 
void PopDownMenu (void)
 
void HideMenu (MenuRoot *menu)
 
void PaintEntry (MenuRoot *mr, MenuItem *mi, bool exposure)
 
void PaintMenu (MenuRoot *mr, XEvent *e)
 
bool cur_fromMenu (void)
 
void UpdateMenu (void)
 
void MakeMenus (void)
 
void MakeMenu (MenuRoot *mr)
 
void MoveMenu (XEvent *eventp)
 
void WarpCursorToDefaultEntry (MenuRoot *menu)
 
charmk_twmkeys_entry (const FuncKey *key)
 Generate up a string representation of a keybinding->action.
 

Variables

MenuRootActiveMenu
 
MenuItemActiveItem
 
bool menuFromFrameOrWindowOrTitlebar
 
charCurrentSelectedWorkspace
 
bool AlternateContext
 
int AlternateKeymap
 
int MenuDepth
 

Macro Definition Documentation

◆ COLORMAP_DEFAULT

#define COLORMAP_DEFAULT   "default"

Definition at line 137 of file menus.h.

Referenced by CheckColormapArg().

◆ COLORMAP_NEXT

#define COLORMAP_NEXT   "next"

Definition at line 135 of file menus.h.

Referenced by CheckColormapArg(), and f_colormap_impl().

◆ COLORMAP_PREV

#define COLORMAP_PREV   "prev"

Definition at line 136 of file menus.h.

Referenced by CheckColormapArg(), and f_colormap_impl().

◆ MAXMENUDEPTH

#define MAXMENUDEPTH   10 /* max number of nested menus */

Definition at line 128 of file menus.h.

Referenced by UpdateMenu().

◆ TWM_ALLICONS

#define TWM_ALLICONS   "TwmAllIcons" /* for f.menu "TwmAllIcons" */

Definition at line 27 of file menus.h.

Referenced by NewMenuRoot().

◆ TWM_ALLWINDOWS

#define TWM_ALLWINDOWS   "TwmAllWindows" /* for f.menu "TwmAllWindows" */

Definition at line 24 of file menus.h.

Referenced by NewMenuRoot().

◆ TWM_ICONS

#define TWM_ICONS   "TwmIcons" /* for f.menu "TwmIcons" */

Definition at line 22 of file menus.h.

Referenced by NewMenuRoot().

◆ TWM_KEYS

#define TWM_KEYS   "TwmKeys" /* for f.menu "TwmKeys" */

Definition at line 31 of file menus.h.

Referenced by NewMenuRoot().

◆ TWM_ROOT

#define TWM_ROOT   "bLoB_GoOp" /* my private root menu */

Definition at line 20 of file menus.h.

Referenced by GotButton().

◆ TWM_VISIBLE

#define TWM_VISIBLE   "TwmVisible" /* for f.menu "TwmVisible" */

Definition at line 32 of file menus.h.

Referenced by NewMenuRoot().

◆ TWM_WINDOWS

#define TWM_WINDOWS   "TwmWindows" /* for f.menu "TwmWindows" */

Definition at line 21 of file menus.h.

Referenced by NewMenuRoot().

◆ TWM_WORKSPACES

#define TWM_WORKSPACES   "TwmWorkspaces" /* for f.menu "TwmWorkspaces" */

Definition at line 23 of file menus.h.

Referenced by NewMenuRoot().

◆ WARPSCREEN_BACK

#define WARPSCREEN_BACK   "back"

Definition at line 133 of file menus.h.

Referenced by CheckWarpScreenArg(), and f_warptoscreen_impl().

◆ WARPSCREEN_NEXT

#define WARPSCREEN_NEXT   "next"

Definition at line 131 of file menus.h.

Referenced by CheckWarpRingArg(), CheckWarpScreenArg(), and f_warptoscreen_impl().

◆ WARPSCREEN_PREV

#define WARPSCREEN_PREV   "prev"

Definition at line 132 of file menus.h.

Referenced by CheckWarpRingArg(), CheckWarpScreenArg(), and f_warptoscreen_impl().

Enumeration Type Documentation

◆ MRMapState

Enumerator
MRM_NEVER 
MRM_UNMAPPED 
MRM_MAPPED 

Definition at line 41 of file menus.h.

Function Documentation

◆ AddDefaultFuncButtons()

void AddDefaultFuncButtons ( void )

Definition at line 223 of file menus.c.

References addingdefaults, C_ICON, C_ICONMGR, C_TITLE, PlaceX, and SETDEF.

Referenced by InitTitlebarButtons().

◆ AddFuncButton()

void AddFuncButton ( int num,
int cont,
int mods,
int func,
MenuRoot * menu,
MenuItem * item )

Definition at line 171 of file menus.c.

References addingdefaults, cont, PlaceX, and Scr.

Referenced by GotButton().

◆ AddFuncKey()

bool AddFuncKey ( char * name,
int cont,
int mods,
int func,
MenuRoot * menu,
char * win_name,
char * action )

Definition at line 102 of file menus.c.

References cont, dpy, PlaceX, and Scr.

Referenced by GotKey().

◆ AddToMenu()

MenuItem * AddToMenu ( MenuRoot * menu,
char * item,
char * action,
MenuRoot * sub,
int func,
char * fore,
char * back )

◆ cur_fromMenu()

bool cur_fromMenu ( void )

Definition at line 482 of file menus.c.

References fromMenu.

Referenced by f_resize_impl().

◆ FindMenuRoot()

MenuRoot * FindMenuRoot ( char * name)

Definition at line 1503 of file menus.c.

References PlaceX, and Scr.

Referenced by EF_main(), and GetRoot().

◆ HideMenu()

void HideMenu ( MenuRoot * menu)

Definition at line 1476 of file menus.c.

References dpy, MenuRoot::mapped, MRM_UNMAPPED, PlaceX, Scr, MenuRoot::shadow, and MenuRoot::w.

Referenced by HandleEnterNotify(), and PopDownMenu().

◆ MakeMenu()

void MakeMenu ( MenuRoot * mr)

◆ MakeMenus()

void MakeMenus ( void )

Definition at line 836 of file menus.c.

References MakeMenu(), MenuRoot::pinned, PlaceX, and Scr.

Referenced by ctwm_main().

◆ MakeWorkspacesMenu()

void MakeWorkspacesMenu ( void )

Definition at line 442 of file menus.c.

References AddToMenu(), MakeMenu(), WorkSpace::name, WorkSpace::next, PlaceX, and Scr.

Referenced by ctwm_main().

◆ mk_twmkeys_entry()

char * mk_twmkeys_entry ( const FuncKey * key)

Generate up a string representation of a keybinding->action.

Internally used in generating TwmKeys menu.

Definition at line 1657 of file menus.c.

References DO, MSLEN, and PlaceX.

Referenced by PopUpMenu().

◆ MoveMenu()

void MoveMenu ( XEvent * eventp)

◆ NewMenuRoot()

MenuRoot * NewMenuRoot ( char * name)

◆ PaintEntry()

void PaintEntry ( MenuRoot * mr,
MenuItem * mi,
bool exposure )

Definition at line 242 of file menus.c.

References Paint3DEntry(), PaintNormalEntry(), PlaceX, and Scr.

Referenced by HandleEnterNotify(), HandleKeyPress(), PaintMenu(), PopDownMenu(), and UpdateMenu().

◆ PaintMenu()

void PaintMenu ( MenuRoot * mr,
XEvent * e )

Definition at line 419 of file menus.c.

References dpy, Draw3DBorder(), off, PaintEntry(), PlaceX, and Scr.

Referenced by HandleExpose().

◆ PopDownMenu()

void PopDownMenu ( void )

◆ PopUpMenu()

bool PopUpMenu ( MenuRoot * menu,
int x,
int y,
bool center )

◆ UpdateMenu()

void UpdateMenu ( void )

◆ WarpCursorToDefaultEntry()

void WarpCursorToDefaultEntry ( MenuRoot * menu)

Variable Documentation

◆ ActiveItem

MenuItem* ActiveItem
extern

◆ ActiveMenu

MenuRoot* ActiveMenu
extern

◆ AlternateContext

bool AlternateContext
extern

Definition at line 65 of file menus.c.

Referenced by f_altcontext_impl(), HandleButtonPress(), HandleButtonRelease(), and HandleKeyPress().

◆ AlternateKeymap

int AlternateKeymap
extern

Definition at line 64 of file menus.c.

Referenced by f_altkeymap_impl(), HandleButtonPress(), HandleButtonRelease(), and HandleKeyPress().

◆ CurrentSelectedWorkspace

char* CurrentSelectedWorkspace
extern

Definition at line 61 of file menus.c.

Referenced by HandleKeyPress(), PopUpMenu(), and UpdateMenu().

◆ MenuDepth

int MenuDepth
extern

Definition at line 67 of file menus.c.

Referenced by HandleEnterNotify(), HandleKeyPress(), MoveMenu(), PopDownMenu(), PopUpMenu(), and UpdateMenu().

◆ menuFromFrameOrWindowOrTitlebar

bool menuFromFrameOrWindowOrTitlebar
extern