diff options
-rw-r--r-- | src/tab.c | 24 | ||||
-rw-r--r-- | src/tab.h | 12 |
2 files changed, 36 insertions, 0 deletions
@@ -292,6 +292,30 @@ mq_tab_foreach(MqTab *node, void (*cb)(MqTab *node, va_list ap), ...) va_end(ap); } +MqTab * +mq_tab_root(MqTab *node) +{ + return node ? node->root : NULL; +} + +MqTab * +mq_tab_previous(MqTab *node) +{ + return node ? node->prev : NULL; +} + +MqTab * +mq_tab_next(MqTab *node) +{ + return node ? node->next : NULL; +} + +MqTab * +mq_tab_first_child(MqTab *node) +{ + return node ? node->first_child : NULL; +} + void mq_tab_scroll_tab_labels(MqTab *node) { @@ -86,6 +86,18 @@ mq_tab_seek(MqTab *node, guint position); void mq_tab_foreach(MqTab *node, void (*cb)(MqTab *node, va_list ap), ...); +MqTab * +mq_tab_root(MqTab *node); + +MqTab * +mq_tab_previous(MqTab *node); + +MqTab * +mq_tab_next(MqTab *node); + +MqTab * +mq_tab_first_child(MqTab *node); + void mq_tab_scroll_tab_labels(MqTab *node); |