[gnome-flashback] backends: add GfRectangle



commit d3d70b9cd5d74a24d69fbc0c082d6cff1924224e
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sun Sep 10 16:49:53 2017 +0300

    backends: add GfRectangle

 backends/Makefile.am    |    1 +
 backends/gf-rectangle.h |   39 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+), 0 deletions(-)
---
diff --git a/backends/Makefile.am b/backends/Makefile.am
index 27cb3d9..8fd8b0f 100644
--- a/backends/Makefile.am
+++ b/backends/Makefile.am
@@ -45,6 +45,7 @@ libbackends_la_SOURCES = \
        gf-monitor-spec.c \
        gf-orientation-manager-private.h \
        gf-orientation-manager.c \
+       gf-rectangle.h \
        gf-settings-private.h \
        gf-settings.c \
        $(BUILT_SOURCES) \
diff --git a/backends/gf-rectangle.h b/backends/gf-rectangle.h
new file mode 100644
index 0000000..1365218
--- /dev/null
+++ b/backends/gf-rectangle.h
@@ -0,0 +1,39 @@
+/*
+ * Copyright (C) 2005, 2006 Elijah Newren
+ * Copyright (C) 2017 Alberts Muktupāvels
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * Adapted from mutter:
+ * - src/meta/boxes.h
+ */
+
+#ifndef GF_RECTANGLE_H
+#define GF_RECTANGLE_H
+
+#include <glib.h>
+
+G_BEGIN_DECLS
+
+typedef struct
+{
+  gint x;
+  gint y;
+  gint width;
+  gint height;
+} GfRectangle;
+
+G_END_DECLS
+
+#endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]