blob: 92a407f7347dd0192fe848afd49a31adb7ba6a48 (
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
38
39
40
41
42
|
/**
* @file resize.h
* @author Joe Wingbermuehle
* @date 2005-2006
*
* @brief Header for client window resize functions.
*
*/
#ifndef RESIZE_H
#define RESIZE_H
#include "border.h"
struct ClientNode;
typedef enum {
RESIZE_OPAQUE, /**< Show window contents while resizing. */
RESIZE_OUTLINE /**< Show an outline while resizing. */
} ResizeModeType;
/** Resize a client window.
* @param np The client to resize.
* @param action The location on the border where the move should take place.
* @param startx The starting mouse x-coordinate (window relative).
* @param starty The starting mouse y-coordinate (window relative).
*/
void ResizeClient(struct ClientNode *np, BorderActionType action,
int startx, int starty);
/** Resize a client window using the keyboard (mouse optional).
* @param np The client to resize.
*/
void ResizeClientKeyboard(struct ClientNode *np);
/** Set the resize mode to use.
* @param mode The resize mode to use.
*/
void SetResizeMode(ResizeModeType mode);
#endif
|