mypixmap.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /* $Id$
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of the GNU General Public License as published by
  4. the Free Software Foundation; either version 2, or (at your option)
  5. any later version.
  6. This program is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. GNU General Public License for more details.
  10. You should have received a copy of the GNU General Public License
  11. along with this program; if not, write to the Free Software
  12. Foundation, Inc., Inc., 51 Franklin Street, Fifth Floor, Boston,
  13. MA 02110-1301, USA.
  14. Original XPM load routines from gdk-pixbuf:
  15. Copyright (C) 1999 Mark Crichton
  16. Copyright (C) 1999 The Free Software Foundation
  17. Authors: Mark Crichton <crichton@gimp.org>
  18. Federico Mena-Quintero <federico@gimp.org>
  19. A specific version of the gdk-pixbuf routines are required to support
  20. XPM color substitution used by the themes to apply gtk+ colors.
  21. oroborus - (c) 2001 Ken Lynch
  22. xfwm4 - (c) 2002-2011 Olivier Fourdan
  23. xfwm4-windowck-plugin - (c) 2013 Cedric leporcq
  24. */
  25. #ifdef HAVE_CONFIG_H
  26. #include "config.h"
  27. #endif
  28. #include <glib.h>
  29. #ifdef HAVE_RENDER
  30. #include <X11/extensions/Xrender.h>
  31. #endif
  32. #ifndef INC_MYPIXMAP_H
  33. #define INC_MYPIXMAP_H
  34. #define MYPIXMAP_XPIXMAP(p) (p.pixmap)
  35. typedef struct
  36. {
  37. gchar *name;
  38. const gchar *value;
  39. }
  40. xfwmColorSymbol;
  41. typedef struct
  42. {
  43. gchar *color_string;
  44. guint16 red;
  45. guint16 green;
  46. guint16 blue;
  47. gint transparent;
  48. }
  49. XPMColor;
  50. GdkPixbuf * xfwmPixbufLoad (const gchar *, const gchar *, xfwmColorSymbol *);
  51. #endif /* INC_MYPIXMAP_H */