summaryrefslogtreecommitdiff
path: root/include/river.h
blob: d4d33c213c0ff69a46b819c0a71d877f5be6c1e0 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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