aboutsummaryrefslogtreecommitdiff
path: root/src/winmenu.h
blob: a7b1f6efbd7e6f2ae72bdde323e9d55aaf3473d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
 * @file tray.h
 * @author Joe Wingbermuehle
 * @date 2004-2006
 *
 * @brief Header for the window menu functions.
 *
 */

#ifndef WINMENU_H
#define WINMENU_H

#include "menu.h"

struct ClientNode;

/** Get the size of a window menu.
 * @param np The client for the window menu.
 * @param width The width return.
 * @param heigth The height return.
 */
void GetWindowMenuSize(struct ClientNode *np, int *width, int *height);

/** Show a window menu.
 * @param np The client for the window menu.
 * @param x The x-coordinate of the menu (root relative).
 * @param y The y-coordinate of the menu (root relative).
 */
void ShowWindowMenu(struct ClientNode *np, int x, int y);

/** Grab the mouse to select a window.
 * @param action The action to perform when a window is selected.
 */
void ChooseWindow(const MenuAction *action); 

#endif