|
CTWM
|
#include "ctwm.h"#include <stdio.h>#include <stdlib.h>#include "add_window.h"#include "functions_defs.h"#include "image.h"#include "screen.h"#include "win_decorations_init.h"Go to the source code of this file.
Macros | |
| #define | MKBTN(bmap, func, isrt) |
Functions | |
| static void | ComputeCommonTitleOffsets (void) |
| void | InitTitlebarButtons (void) |
| void | SetCurrentTBAction (int button, int nmods, int func, char *action, MenuRoot *menuroot) |
| bool | CreateTitleButton (char *name, int func, char *action, MenuRoot *menuroot, bool rightside, bool append) |
Variables | |
| static TitleButton * | cur_tb = NULL |
| #define MKBTN | ( | bmap, | |
| func, | |||
| isrt ) |
Referenced by InitTitlebarButtons().
|
static |
Definition at line 144 of file win_decorations_init.c.
References Scr.
Referenced by InitTitlebarButtons().
| bool CreateTitleButton | ( | char * | name, |
| int | func, | ||
| char * | action, | ||
| MenuRoot * | menuroot, | ||
| bool | rightside, | ||
| bool | append ) |
Definition at line 241 of file win_decorations_init.c.
References cur_tb, MAX_BUTTONS, TitleButton::next, ProgramName, TitleButton::rightside, Scr, and SetCurrentTBAction().
Referenced by GotTitleButton().
| void InitTitlebarButtons | ( | void | ) |
Definition at line 41 of file win_decorations_init.c.
References AddDefaultFuncButtons(), ComputeCommonTitleOffsets(), TitleButton::dstx, TitleButton::dsty, GetImage(), Image::height, TitleButton::height, TitleButton::image, MKBTN, TitleButton::name, TitleButton::next, ProgramName, Scr, TitleButton::srcx, TitleButton::srcy, TBPM_QUESTION, Image::width, and TitleButton::width.
Referenced by ctwm_main().
| void SetCurrentTBAction | ( | int | button, |
| int | nmods, | ||
| int | func, | ||
| char * | action, | ||
| MenuRoot * | menuroot ) |
Definition at line 203 of file win_decorations_init.c.
References TitleButtonFunc::action, cur_tb, TitleButtonFunc::func, TitleButtonFunc::menuroot, TitleButtonFunc::mods, TitleButtonFunc::next, TitleButtonFunc::num, and ProgramName.
Referenced by CreateTitleButton().
|
static |
Definition at line 26 of file win_decorations_init.c.
Referenced by CreateTitleButton(), and SetCurrentTBAction().