CTWM
|
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 | |
MenuRoot * | NewMenuRoot (char *name) |
MenuItem * | AddToMenu (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) |
MenuRoot * | FindMenuRoot (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 | |
MenuRoot * | ActiveMenu |
MenuItem * | ActiveItem |
bool | menuFromFrameOrWindowOrTitlebar |
char * | CurrentSelectedWorkspace |
bool | AlternateContext |
int | AlternateKeymap |
int | MenuDepth |
#define COLORMAP_DEFAULT "default" |
Definition at line 137 of file menus.h.
Referenced by CheckColormapArg().
#define COLORMAP_NEXT "next" |
Definition at line 135 of file menus.h.
Referenced by CheckColormapArg(), and f_colormap_impl().
#define COLORMAP_PREV "prev" |
Definition at line 136 of file menus.h.
Referenced by CheckColormapArg(), and f_colormap_impl().
Definition at line 128 of file menus.h.
Referenced by UpdateMenu().
Definition at line 27 of file menus.h.
Referenced by NewMenuRoot().
Definition at line 24 of file menus.h.
Referenced by NewMenuRoot().
Definition at line 22 of file menus.h.
Referenced by NewMenuRoot().
Definition at line 31 of file menus.h.
Referenced by NewMenuRoot().
Definition at line 20 of file menus.h.
Referenced by GotButton().
Definition at line 32 of file menus.h.
Referenced by NewMenuRoot().
Definition at line 21 of file menus.h.
Referenced by NewMenuRoot().
Definition at line 23 of file menus.h.
Referenced by NewMenuRoot().
#define WARPSCREEN_BACK "back" |
Definition at line 133 of file menus.h.
Referenced by CheckWarpScreenArg(), and f_warptoscreen_impl().
#define WARPSCREEN_NEXT "next" |
Definition at line 131 of file menus.h.
Referenced by CheckWarpRingArg(), CheckWarpScreenArg(), and f_warptoscreen_impl().
#define WARPSCREEN_PREV "prev" |
Definition at line 132 of file menus.h.
Referenced by CheckWarpRingArg(), CheckWarpScreenArg(), and f_warptoscreen_impl().
Definition at line 223 of file menus.c.
References addingdefaults, C_ICON, C_ICONMGR, C_TITLE, PlaceX, and SETDEF.
Referenced by InitTitlebarButtons().
Definition at line 171 of file menus.c.
References addingdefaults, cont, PlaceX, and Scr.
Referenced by GotButton().
MenuItem * AddToMenu | ( | MenuRoot * | menu, |
char * | item, | ||
char * | action, | ||
MenuRoot * | sub, | ||
int | func, | ||
char * | fore, | ||
char * | back ) |
Definition at line 732 of file menus.c.
References CreateFonts(), MenuRoot::defaultitem, dpy, MenuRoot::first, GetColor(), GetShadeColors(), MenuItem::item, MenuRoot::items, MenuRoot::last, MenuItem::next, PlaceX, MenuItem::prev, MenuRoot::pull, Scr, and MenuRoot::width.
Referenced by GotButton(), MakeWorkspacesMenu(), and PopUpMenu().
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().
Definition at line 851 of file menus.c.
References dpy, ENTRY_SPACING, GetColor(), GetShadeColors(), MenuItem::item_num, MAX, MenuContext, MRM_NEVER, MRM_UNMAPPED, MenuItem::next, PlaceX, Scr, ScreenContext, and UNUSED_PIXEL.
Referenced by f_pin_impl(), MakeMenus(), MakeWorkspacesMenu(), and PopUpMenu().
Definition at line 836 of file menus.c.
References MakeMenu(), MenuRoot::pinned, PlaceX, and Scr.
Referenced by ctwm_main().
Definition at line 442 of file menus.c.
References AddToMenu(), MakeMenu(), WorkSpace::name, WorkSpace::next, PlaceX, and Scr.
Referenced by ctwm_main().
Definition at line 1538 of file menus.c.
References ActiveMenu, ButtonPressed, ConstrainByBorders1(), cont, DispatchEvent(), dpy, Event, MenuRoot::height, MenuDepth, MenuOrigins, MenuRoot::pinned, PlaceX, Scr, MenuRoot::w, MenuRoot::width, MenuRoot::x, and MenuRoot::y.
Referenced by HandleButtonPress().
Definition at line 637 of file menus.c.
References MRM_NEVER, NewMenuRoot(), PlaceX, Scr, TWM_ALLICONS, TWM_ALLWINDOWS, TWM_ICONS, TWM_KEYS, TWM_VISIBLE, TWM_WINDOWS, TWM_WORKSPACES, and UNUSED_PIXEL.
Referenced by GetRoot(), and NewMenuRoot().
Definition at line 242 of file menus.c.
References Paint3DEntry(), PaintNormalEntry(), PlaceX, and Scr.
Referenced by HandleEnterNotify(), HandleKeyPress(), PaintMenu(), PopDownMenu(), and UpdateMenu().
Definition at line 419 of file menus.c.
References dpy, Draw3DBorder(), off, PaintEntry(), PlaceX, and Scr.
Referenced by HandleExpose().
Definition at line 1442 of file menus.c.
References ActiveItem, ActiveMenu, C_FRAME, C_ICON, C_TITLE, C_WINDOW, Context, dpy, HideMenu(), MenuDepth, menuFromFrameOrWindowOrTitlebar, PaintEntry(), PlaceX, MenuRoot::prev, MenuItem::state, and UninstallRootColormap().
Referenced by f_exec_impl(), f_movetitlebar_impl(), f_pin_impl(), f_resize_impl(), HandleButtonPress(), HandleButtonRelease(), HandleKeyPress(), HandleLeaveNotify(), and movewindow().
Definition at line 1130 of file menus.c.
References ActiveMenu, AddToMenu(), ColorPair::back, ConstrainByLayout(), CurrentSelectedWorkspace, DestroyMenu(), dpy, MenuRoot::entered, MenuRoot::first, ColorPair::fore, MenuRoot::height, MenuRoot::highlight, InstallRootColormap(), MenuRoot::items, MenuRoot::last, LookInList(), MakeMenu(), MenuRoot::mapped, MenuDepth, MenuOrigins, mk_twmkeys_entry(), MRM_MAPPED, MRM_NEVER, FuncKey::next, OCCUPY, MenuRoot::pinned, PlaceX, MenuRoot::prev, Scr, MenuRoot::shadow, SHADOWWIDTH, UNUSED_PIXEL, MenuRoot::w, MenuRoot::width, x, MenuRoot::x, y, and MenuRoot::y.
Referenced by do_key_menu(), do_menu(), HandleEnterNotify(), and UpdateMenu().
Definition at line 487 of file menus.c.
References ActiveItem, ActiveMenu, Cancel, CurrentSelectedWorkspace, DispatchEvent(), dpy, MenuRoot::entered, Event, MenuRoot::first, fromMenu, MenuItem::func, MenuRoot::height, MenuItem::item, MenuItem::item_num, JunkChild, JunkMask, JunkRoot, MAXMENUDEPTH, MenuDepth, menuFromFrameOrWindowOrTitlebar, MenuOrigins, PaintEntry(), PlaceX, PopUpMenu(), Scr, ScreenContext, MenuItem::state, MenuItem::sub, MenuRoot::w, MenuRoot::width, x, MenuRoot::x, and y.
Referenced by do_key_menu(), do_menu(), and HandleEnterNotify().
Definition at line 1626 of file menus.c.
References MenuRoot::defaultitem, dpy, Event, MenuRoot::first, MenuRoot::height, MenuRoot::last, MenuItem::next, PlaceX, root, Scr, MenuRoot::w, MenuRoot::width, x, and y.
Referenced by HandleButtonRelease().
|
extern |
Definition at line 59 of file menus.c.
Referenced by f_menu_impl(), HandleButtonPress(), HandleButtonRelease(), HandleEnterNotify(), HandleKeyPress(), PopDownMenu(), and UpdateMenu().
|
extern |
Definition at line 58 of file menus.c.
Referenced by AutoLowerWindow(), AutoRaiseWindow(), f_pin_impl(), HandleButtonPress(), HandleButtonRelease(), HandleEnterNotify(), HandleKeyPress(), HandleLeaveNotify(), MoveMenu(), PopDownMenu(), PopUpMenu(), and UpdateMenu().
|
extern |
Definition at line 65 of file menus.c.
Referenced by f_altcontext_impl(), HandleButtonPress(), HandleButtonRelease(), and HandleKeyPress().
|
extern |
Definition at line 64 of file menus.c.
Referenced by f_altkeymap_impl(), HandleButtonPress(), HandleButtonRelease(), and HandleKeyPress().
|
extern |
Definition at line 61 of file menus.c.
Referenced by HandleKeyPress(), PopUpMenu(), and UpdateMenu().
|
extern |
Definition at line 67 of file menus.c.
Referenced by HandleEnterNotify(), HandleKeyPress(), MoveMenu(), PopDownMenu(), PopUpMenu(), and UpdateMenu().
|
extern |
Definition at line 60 of file menus.c.
Referenced by DispatchEvent2(), f_movetitlebar_impl(), HandleButtonPress(), movewindow(), PopDownMenu(), and UpdateMenu().