Theme engine using TQt for GTK+ 3.x
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.

raico-blur.h 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /* The TdeGtk Theming Engine for Gtk+.
  2. * Copyright (C) 2009 Canonical Ltd
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with this library; if not, write to the Free
  16. * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
  17. * MA 02110-1301, USA.
  18. *
  19. * Authored by Mirco "MacSlow" Mueller <mirco.mueller@canonical.com>
  20. *
  21. */
  22. #ifndef _RAICO_BLUR_H
  23. #define _RAICO_BLUR_H
  24. #include <cairo.h>
  25. #include <glib.h>
  26. typedef enum _raico_blur_quality_t
  27. {
  28. RAICO_BLUR_QUALITY_LOW = 0, /* low quality, but fast, maybe interactive */
  29. RAICO_BLUR_QUALITY_MEDIUM, /* compromise between speed and quality */
  30. RAICO_BLUR_QUALITY_HIGH /* quality before speed */
  31. } raico_blur_quality_t;
  32. typedef struct _raico_blur_private_t raico_blur_private_t;
  33. typedef struct _raico_blur_t
  34. {
  35. raico_blur_private_t* priv;
  36. } raico_blur_t;
  37. raico_blur_t*
  38. raico_blur_create (void);
  39. raico_blur_quality_t
  40. raico_blur_get_quality (raico_blur_t* blur);
  41. void
  42. raico_blur_set_quality (raico_blur_t* blur,
  43. raico_blur_quality_t quality);
  44. guint
  45. raico_blur_get_radius (raico_blur_t* blur);
  46. void
  47. raico_blur_set_radius (raico_blur_t* blur,
  48. guint radius);
  49. void
  50. raico_blur_apply (raico_blur_t* blur,
  51. cairo_surface_t* surface);
  52. void
  53. raico_blur_destroy (raico_blur_t* blur);
  54. #endif /* _RAICO_BLUR_H */