tag.h 965 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * wmfs2 by Martin Duquesnoy <xorg62@gmail.com> { for(i = 2011; i < 2111; ++i) ©(i); }
  3. * For license, see COPYING.
  4. */
  5. #ifndef TAG_H
  6. #define TAG_H
  7. #include "wmfs.h"
  8. static inline struct tag*
  9. tag_gb_id(struct screen *s, int id)
  10. {
  11. struct tag *t;
  12. TAILQ_FOREACH(t, &s->tags, next)
  13. if(t->id == id)
  14. return t;
  15. return TAILQ_FIRST(&s->tags);
  16. }
  17. struct tag *tag_new(struct screen *s, char *name);
  18. void tag_screen(struct screen *s, struct tag *t);
  19. void tag_client(struct tag *t, struct client *c);
  20. void tag_free(struct screen *s);
  21. void uicb_tag_set(Uicb cmd);
  22. void uicb_tag_set_with_name(Uicb cmd);
  23. void uicb_tag_next(Uicb cmd);
  24. void uicb_tag_prev(Uicb cmd);
  25. void uicb_tag_client(Uicb cmd);
  26. void uicb_tag_client_and_set(Uicb cmd);
  27. void uicb_tag_move_client_next(Uicb cmd);
  28. void uicb_tag_move_client_prev(Uicb cmd);
  29. void uicb_tag_click(Uicb cmd);
  30. void uicb_tag_new(Uicb cmd);
  31. void uicb_tag_del(Uicb cmd);
  32. #endif /* TAG_H */