diff options
author | wil <william.barsse@gmail.com> | 2017-01-07 20:26:46 +0100 |
---|---|---|
committer | wil <william.barsse@gmail.com> | 2017-01-07 20:26:46 +0100 |
commit | 1f47c58d63130b8de59cb81422a4339bc0273273 (patch) | |
tree | fc29c5719ef2661f1dc3409c5c153a11802a8c6b /include | |
parent | 3c84250be8a31ec08f3c8057d589b5b040673b36 (diff) | |
download | sway-1f47c58d63130b8de59cb81422a4339bc0273273.tar.xz |
simplification of apply_auto_layout
Achieved by introducing auto_group_bounds function that produces
the start/end indexes of a group inside an auto layot container.
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/layout.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/sway/layout.h b/include/sway/layout.h index c51fece9..fbedcdb3 100644 --- a/include/sway/layout.h +++ b/include/sway/layout.h @@ -76,9 +76,10 @@ void swayc_log(log_importance_t verbosity, swayc_t *cont, const char* format, .. enum swayc_layouts default_layout(swayc_t *output); bool is_auto_layout(enum swayc_layouts layout); -int auto_group_start_index(swayc_t *container, int index); -int auto_group_end_index(swayc_t *container, int index); -size_t auto_group_count(swayc_t *container); -size_t auto_group_index(swayc_t *container, int index); +int auto_group_start_index(const swayc_t *container, int index); +int auto_group_end_index(const swayc_t *container, int index); +size_t auto_group_count(const swayc_t *container); +size_t auto_group_index(const swayc_t *container, int index); +bool auto_group_bounds(const swayc_t *container, size_t group_index, int *start, int *end); #endif |