ui_style.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. xfwm4 - (c) 2002-2011 Olivier Fourdan
  15. xfwm4-windowck-plugin - (c) 2013 Cedric leporcq
  16. */
  17. #ifndef INC_UI_STYLE_H
  18. #define INC_UI_STYLE_H
  19. #ifdef HAVE_CONFIG_H
  20. #include "config.h"
  21. #endif
  22. #include <glib.h>
  23. #include <gtk/gtk.h>
  24. #include <pango/pango-font.h>
  25. GdkColor query_color (GtkWidget * win, GdkColor c);
  26. GdkColor shade (GdkColor color, float s);
  27. GdkColor mix (GdkColor color2, GdkColor color1, float a);
  28. gchar *mix_bg_fg (GtkWidget * win,
  29. const gchar * state,
  30. float alpha,
  31. float beta);
  32. gchar *get_ui_color (GtkWidget *,
  33. const gchar *,
  34. const gchar *);
  35. GdkGC *getUIStyle_gc (GtkWidget *,
  36. const gchar *,
  37. const gchar *);
  38. PangoFontDescription *getUIPangoFontDesc (GtkWidget *);
  39. PangoContext *getUIPangoContext (GtkWidget *);
  40. #endif /* INC_UI_STYLE_H */