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.

gvc-channel-bar.h 5.1 KiB

4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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_CHANNEL_BAR_H
  22. #define __GVC_CHANNEL_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_CHANNEL_BAR (gvc_channel_bar_get_type ())
  29. #define GVC_CHANNEL_BAR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GVC_TYPE_CHANNEL_BAR, GvcChannelBar))
  30. #define GVC_CHANNEL_BAR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GVC_TYPE_CHANNEL_BAR, GvcChannelBarClass))
  31. #define GVC_IS_CHANNEL_BAR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GVC_TYPE_CHANNEL_BAR))
  32. #define GVC_IS_CHANNEL_BAR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GVC_TYPE_CHANNEL_BAR))
  33. #define GVC_CHANNEL_BAR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GVC_TYPE_CHANNEL_BAR, GvcChannelBarClass))
  34. typedef struct _GvcChannelBar GvcChannelBar;
  35. typedef struct _GvcChannelBarClass GvcChannelBarClass;
  36. typedef struct _GvcChannelBarPrivate GvcChannelBarPrivate;
  37. struct _GvcChannelBar
  38. {
  39. GtkBox parent;
  40. GvcChannelBarPrivate *priv;
  41. };
  42. struct _GvcChannelBarClass
  43. {
  44. GtkBoxClass parent_class;
  45. void (* changed) (GvcChannelBar *bar);
  46. };
  47. GType gvc_channel_bar_get_type (void);
  48. GtkWidget * gvc_channel_bar_new (MateMixerStreamControl *control);
  49. MateMixerStreamControl *gvc_channel_bar_get_control (GvcChannelBar *bar);
  50. void gvc_channel_bar_set_control (GvcChannelBar *bar,
  51. MateMixerStreamControl *control);
  52. const gchar * gvc_channel_bar_get_name (GvcChannelBar *bar);
  53. void gvc_channel_bar_set_name (GvcChannelBar *bar,
  54. const gchar *name);
  55. const gchar * gvc_channel_bar_get_icon_name (GvcChannelBar *bar);
  56. void gvc_channel_bar_set_icon_name (GvcChannelBar *bar,
  57. const gchar *icon_name);
  58. const gchar * gvc_channel_bar_get_low_icon_name (GvcChannelBar *bar);
  59. void gvc_channel_bar_set_low_icon_name (GvcChannelBar *bar,
  60. const gchar *icon_name);
  61. const gchar * gvc_channel_bar_get_high_icon_name (GvcChannelBar *bar);
  62. void gvc_channel_bar_set_high_icon_name (GvcChannelBar *bar,
  63. const gchar *icon_name);
  64. GtkOrientation gvc_channel_bar_get_orientation (GvcChannelBar *bar);
  65. void gvc_channel_bar_set_orientation (GvcChannelBar *bar,
  66. GtkOrientation orientation);
  67. gboolean gvc_channel_bar_get_show_icons (GvcChannelBar *bar);
  68. void gvc_channel_bar_set_show_icons (GvcChannelBar *bar,
  69. gboolean show_mute);
  70. gboolean gvc_channel_bar_get_show_mute (GvcChannelBar *bar);
  71. void gvc_channel_bar_set_show_mute (GvcChannelBar *bar,
  72. gboolean show_mute);
  73. gboolean gvc_channel_bar_get_show_marks (GvcChannelBar *bar);
  74. void gvc_channel_bar_set_show_marks (GvcChannelBar *bar,
  75. gboolean show_marks);
  76. gboolean gvc_channel_bar_get_extended (GvcChannelBar *bar);
  77. void gvc_channel_bar_set_extended (GvcChannelBar *bar,
  78. gboolean extended);
  79. void gvc_channel_bar_set_size_group (GvcChannelBar *bar,
  80. GtkSizeGroup *group,
  81. gboolean symmetric);
  82. gboolean gvc_channel_bar_scroll (GvcChannelBar *bar,
  83. GdkScrollDirection direction);
  84. G_END_DECLS
  85. #endif /* __GVC_CHANNEL_BAR_H */