2015-08-06 14:24:14 +02:00
|
|
|
#ifndef _SWAY_LAYOUT_H
|
|
|
|
#define _SWAY_LAYOUT_H
|
|
|
|
|
|
|
|
#include <wlc/wlc.h>
|
|
|
|
#include "list.h"
|
|
|
|
|
2015-08-06 14:40:16 +02:00
|
|
|
typedef enum {
|
|
|
|
LAYOUT_TILE_HORIZ,
|
|
|
|
LAYOUT_TILE_VERT,
|
|
|
|
LAYOUT_TABBED,
|
|
|
|
LAYOUT_STACKED
|
|
|
|
} container_layout_t;
|
|
|
|
|
2015-08-06 14:24:14 +02:00
|
|
|
struct sway_container {
|
2015-08-06 14:40:16 +02:00
|
|
|
wlc_handle output;
|
|
|
|
list_t *children;
|
|
|
|
container_layout_t layout;
|
2015-08-06 14:24:14 +02:00
|
|
|
};
|
|
|
|
|
2015-08-06 14:40:16 +02:00
|
|
|
extern list_t *outputs;
|
|
|
|
|
|
|
|
void init_layout();
|
|
|
|
void add_output(wlc_handle output);
|
2015-08-06 14:24:14 +02:00
|
|
|
wlc_handle get_topmost(wlc_handle output, size_t offset);
|
|
|
|
|
|
|
|
#endif
|