CTWM
Loading...
Searching...
No Matches
/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)
char * mk_twmkeys_entry (const FuncKey *key)
 Generate up a string representation of a keybinding->action.

Variables

MenuRootActiveMenu
MenuItemActiveItem
bool menuFromFrameOrWindowOrTitlebar
char * CurrentSelectedWorkspace
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

enum 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, and SETDEF.

Referenced by InitTitlebarButtons().

◆ AddFuncButton()

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

◆ AddFuncKey()

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

◆ AddToMenu()

◆ 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 MenuRoot::name, MenuRoot::next, 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, Scr, MenuRoot::shadow, and MenuRoot::w.

Referenced by HandleEnterNotify(), and PopDownMenu().

◆ MakeMenu()

◆ MakeMenus()

void MakeMenus ( void )

Definition at line 836 of file menus.c.

References MakeMenu(), MenuRoot::next, MenuRoot::pinned, MenuRoot::real_menu, 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, 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 FuncKey::action, DO, MSLEN, and FuncKey::name.

Referenced by PopUpMenu().

◆ MoveMenu()

void MoveMenu ( XEvent * eventp)

◆ NewMenuRoot()

◆ PaintEntry()

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

◆ PaintMenu()

void PaintMenu ( MenuRoot * mr,
XEvent * e )

◆ PopDownMenu()

◆ PopUpMenu()

◆ UpdateMenu()

◆ WarpCursorToDefaultEntry()

void WarpCursorToDefaultEntry ( MenuRoot * menu)

Variable Documentation

◆ ActiveItem

◆ ActiveMenu

◆ 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