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.
 
 
 
 
 
 

75 lines
2.7 KiB

  1. /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
  2. *
  3. * Copyright (C) 2008 Red Hat, Inc.
  4. * Copyright (C) 2014 Michal Ratajsky <michal.ratajsky@gmail.com>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
  19. *
  20. */
  21. #ifndef __GVC_BALANCE_BAR_H
  22. #define __GVC_BALANCE_BAR_H
  23. #include <glib.h>
  24. #include <glib-object.h>
  25. #include <gtk/gtk.h>
  26. #include <libmatemixer/matemixer.h>
  27. G_BEGIN_DECLS
  28. #define GVC_TYPE_BALANCE_BAR (gvc_balance_bar_get_type ())
  29. #define GVC_BALANCE_BAR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GVC_TYPE_BALANCE_BAR, GvcBalanceBar))
  30. #define GVC_BALANCE_BAR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GVC_TYPE_BALANCE_BAR, GvcBalanceBarClass))
  31. #define GVC_IS_BALANCE_BAR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GVC_TYPE_BALANCE_BAR))
  32. #define GVC_IS_BALANCE_BAR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GVC_TYPE_BALANCE_BAR))
  33. #define GVC_BALANCE_BAR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GVC_TYPE_BALANCE_BAR, GvcBalanceBarClass))
  34. typedef enum {
  35. BALANCE_TYPE_RL,
  36. BALANCE_TYPE_FR,
  37. BALANCE_TYPE_LFE,
  38. } GvcBalanceType;
  39. #define NUM_BALANCE_TYPES BALANCE_TYPE_LFE + 1
  40. typedef struct _GvcBalanceBar GvcBalanceBar;
  41. typedef struct _GvcBalanceBarClass GvcBalanceBarClass;
  42. typedef struct _GvcBalanceBarPrivate GvcBalanceBarPrivate;
  43. struct _GvcBalanceBar
  44. {
  45. GtkBox parent;
  46. GvcBalanceBarPrivate *priv;
  47. };
  48. struct _GvcBalanceBarClass
  49. {
  50. GtkBoxClass parent_class;
  51. };
  52. GType gvc_balance_bar_get_type (void) G_GNUC_CONST;
  53. GtkWidget * gvc_balance_bar_new (MateMixerStreamControl *control,
  54. GvcBalanceType btype);
  55. void gvc_balance_bar_set_size_group (GvcBalanceBar *bar,
  56. GtkSizeGroup *group,
  57. gboolean symmetric);
  58. G_END_DECLS
  59. #endif /* __GVC_BALANCE_BAR_H */