summaryrefslogtreecommitdiff
path: root/include/river.h
diff options
context:
space:
mode:
authorkotontrion <[email protected]>2024-06-09 20:27:00 +0200
committerkotontrion <[email protected]>2024-06-09 20:27:00 +0200
commit29b1060c6fc2614dcbfe6edc177944a31f4decd6 (patch)
tree5e0b0305206f6499edeffe5152267e4ad96b88b0 /include/river.h
initial commit
Diffstat (limited to 'include/river.h')
-rw-r--r--include/river.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/include/river.h b/include/river.h
new file mode 100644
index 0000000..d4d33c2
--- /dev/null
+++ b/include/river.h
@@ -0,0 +1,63 @@
+#ifndef ASTAL_RIVER_H
+#define ASTAL_RIVER_H
+
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+
+#define ASTAL_RIVER_TYPE_OUTPUT (astal_river_output_get_type())
+
+G_DECLARE_FINAL_TYPE (AstalRiverOutput, astal_river_output, ASTAL_RIVER, OUTPUT, GObject)
+
+guint astal_river_output_get_id(AstalRiverOutput *self);
+/**
+ * astal_river_output_get_name
+ * @self: the AstalRiverOutput object
+ *
+ * Returns: (transfer none) (nullable): the name of the output
+ */
+gchar* astal_river_output_get_name(AstalRiverOutput *self);
+gchar* astal_river_output_get_layout_name(AstalRiverOutput *self);
+gchar* astal_river_output_get_focused_view(AstalRiverOutput *self);
+guint astal_river_output_get_focused_tags(AstalRiverOutput *self);
+guint astal_river_output_get_urgent_tags(AstalRiverOutput *self);
+guint astal_river_output_get_occupied_tags(AstalRiverOutput *self);
+
+
+
+#define ASTAL_RIVER_TYPE_RIVER (astal_river_river_get_type())
+
+G_DECLARE_FINAL_TYPE (AstalRiverRiver, astal_river_river, ASTAL_RIVER, RIVER, GObject)
+
+AstalRiverRiver *astal_river_river_new();
+
+/**
+ * astal_river_river_get_outputs
+ * @self: the AstalRiverRiver object
+ *
+ * Returns: (transfer none) (element-type AstalRiver.Output): a list of all outputs
+ *
+ */
+GList* astal_river_river_get_outputs(AstalRiverRiver *self);
+
+/**
+ * astal_river_river_get_output
+ * @self: the AstalRiverRiver object
+ * @name: the name of the output
+ *
+ * Returns: (transfer none) (nullable): the output with the given name or null
+ */
+AstalRiverOutput* astal_river_river_get_output(AstalRiverRiver *self, gchar* name);
+
+
+gchar* astal_river_river_get_focused_view(AstalRiverRiver *self);
+gchar* astal_river_river_get_focused_output(AstalRiverRiver *self);
+gchar* astal_river_river_get_mode(AstalRiverRiver *self);
+
+
+
+
+
+G_END_DECLS
+
+#endif // !ASTAL_RIVER_H