aboutsummaryrefslogtreecommitdiff
path: root/src/resize.h
diff options
context:
space:
mode:
authorJohn Ankarstr\xf6m <john@ankarstrom.se>2021-05-29 12:54:47 +0200
committerJohn Ankarstr\xf6m <john@ankarstrom.se>2021-05-29 13:18:40 +0200
commita041d9898e6d699bd8c0c25482ec574feb03c547 (patch)
tree7f094e33fb530152c3ab6238ce7300750b47addb /src/resize.h
downloadjwm-a041d9898e6d699bd8c0c25482ec574feb03c547.tar.gz
First commit
This is the original state of the released tarball for JWM 1.8, which will serve as my starting point for further modifications.
Diffstat (limited to 'src/resize.h')
-rw-r--r--src/resize.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/resize.h b/src/resize.h
new file mode 100644
index 0000000..92a407f
--- /dev/null
+++ b/src/resize.h
@@ -0,0 +1,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
+