/katze/katze-throbber.h

https://bitbucket.org/edgimar/midori · C++ Header · 94 lines · 60 code · 24 blank · 10 comment · 0 complexity · cdf51ef012b4e54626f5745b56970315 MD5 · raw file

  1. /*
  2. Copyright (C) 2007 Christian Dywan <christian@twotoasts.de>
  3. This library is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU Lesser General Public
  5. License as published by the Free Software Foundation; either
  6. version 2.1 of the License, or (at your option) any later version.
  7. See the file COPYING for the full license text.
  8. */
  9. #ifndef __KATZE_THROBBER_H__
  10. #define __KATZE_THROBBER_H__
  11. #include <gtk/gtk.h>
  12. G_BEGIN_DECLS
  13. #define KATZE_TYPE_THROBBER \
  14. (katze_throbber_get_type ())
  15. #define KATZE_THROBBER(obj) \
  16. (G_TYPE_CHECK_INSTANCE_CAST ((obj), KATZE_TYPE_THROBBER, KatzeThrobber))
  17. #define KATZE_THROBBER_CLASS(klass) \
  18. (G_TYPE_CHECK_CLASS_CAST ((klass), KATZE_TYPE_THROBBER, KatzeThrobberClass))
  19. #define KATZE_IS_THROBBER(obj) \
  20. (G_TYPE_CHECK_INSTANCE_TYPE ((obj), KATZE_TYPE_THROBBER))
  21. #define KATZE_IS_THROBBER_CLASS(klass) \
  22. (G_TYPE_CHECK_CLASS_TYPE ((klass), KATZE_TYPE_THROBBER))
  23. #define KATZE_THROBBER_GET_CLASS(obj) \
  24. (G_TYPE_INSTANCE_GET_CLASS ((obj), KATZE_TYPE_THROBBER, KatzeThrobberClass))
  25. typedef struct _KatzeThrobber KatzeThrobber;
  26. typedef struct _KatzeThrobberPrivate KatzeThrobberPrivate;
  27. typedef struct _KatzeThrobberClass KatzeThrobberClass;
  28. GType
  29. katze_throbber_get_type (void) G_GNUC_CONST;
  30. GtkWidget*
  31. katze_throbber_new (void);
  32. void
  33. katze_throbber_set_icon_size (KatzeThrobber* throbber,
  34. GtkIconSize icon_size);
  35. void
  36. katze_throbber_set_icon_name (KatzeThrobber* throbber,
  37. const gchar* icon_size);
  38. void
  39. katze_throbber_set_pixbuf (KatzeThrobber* throbber,
  40. GdkPixbuf* pixbuf);
  41. void
  42. katze_throbber_set_animated (KatzeThrobber* throbber,
  43. gboolean animated);
  44. void
  45. katze_throbber_set_static_icon_name (KatzeThrobber* throbber,
  46. const gchar* icon_name);
  47. void
  48. katze_throbber_set_static_pixbuf (KatzeThrobber* throbber,
  49. GdkPixbuf* pixbuf);
  50. void
  51. katze_throbber_set_static_stock_id (KatzeThrobber* throbber,
  52. const gchar* stock_id);
  53. GtkIconSize
  54. katze_throbber_get_icon_size (KatzeThrobber* throbber);
  55. const gchar*
  56. katze_throbber_get_icon_name (KatzeThrobber* throbber);
  57. GdkPixbuf*
  58. katze_throbber_get_pixbuf (KatzeThrobber* throbber);
  59. gboolean
  60. katze_throbber_get_animated (KatzeThrobber* throbber);
  61. const gchar*
  62. katze_throbber_get_static_icon_name (KatzeThrobber *throbber);
  63. GdkPixbuf*
  64. katze_throbber_get_static_pixbuf (KatzeThrobber* throbber);
  65. const gchar*
  66. katze_throbber_get_static_stock_id (KatzeThrobber* throbber);
  67. G_END_DECLS
  68. #endif /* __KATZE_THROBBER_H__ */