Assists music production by grouping standalone programs into sessions. Community version of "Non Session Manager".
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.5KB

  1. #pragma once
  2. /* enum { */
  3. /* EMPTY, */
  4. /* FULL, */
  5. /* PARTIAL, */
  6. /* CONTINUED, */
  7. /* HIT, */
  8. /* RING, */
  9. /* SELECTED, */
  10. /* LINE, */
  11. /* PLAYHEAD */
  12. /* }; */
  13. /* canvas node states */
  14. enum {
  15. /* real */
  16. EMPTY, /* nothing */
  17. FULL, /* dot or dash head */
  18. PARTIAL,
  19. CONTINUED, /* dash tail */
  20. /* virtual */
  21. HIT, /* playhead hit */
  22. LINE, /* beat line */
  23. PLAYHEAD,
  24. SELECTED,
  25. MAX_STATE,
  26. };
  27. #define MAX_REAL_STATE HIT
  28. #define STATE_MASK 0x0F
  29. #define STATE_FLAG_MASK (~ (STATE_MASK) )
  30. /* flags */
  31. enum {
  32. F_PLAYHEAD = 1 << 0, /* playhead is on item */
  33. F_P1 = 1 << 1,
  34. F_P2 = 1 << 2,
  35. F_SELECTED = 1 << 3 /* item is selected */
  36. };
  37. /* shapes */
  38. enum {
  39. CIRCLE,
  40. HALF_CIRCLE,
  41. SQUARE,
  42. DIAMOND,
  43. HEXAGON
  44. };
  45. const int ruler_height = 14;
  46. void init_colors ( void );
  47. int gui_draw_ruler ( int x, int y, int w, int div_w, int div, int ofs, int p1, int p2 );
  48. int gui_draw_string ( int x, int y, int w, int h, int color, const char *s, bool draw );
  49. void gui_draw_shape ( int x, int y, int w, int h, int bw, int shape, int state, int flags, int color );
  50. void gui_clear_area ( int x, int y, int w, int h );
  51. void gui_status ( const char *fmt, ... );