2011-05-19 18:47:17 +00:00
|
|
|
/* GTK - The GIMP Toolkit
|
|
|
|
* Copyright (C) 2011 Red Hat, Inc.
|
|
|
|
*
|
|
|
|
* Author: Cosimo Cecchi <cosimoc@gnome.org>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2012-02-27 13:01:10 +00:00
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
2011-05-19 18:47:17 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GTK_SHADOW_H__
|
|
|
|
#define __GTK_SHADOW_H__
|
|
|
|
|
2012-03-28 01:31:20 +00:00
|
|
|
#include <cairo.h>
|
|
|
|
#include <pango/pango.h>
|
2011-06-02 00:58:53 +00:00
|
|
|
|
2012-03-28 01:31:20 +00:00
|
|
|
#include "gtktypes.h"
|
2012-03-28 00:25:22 +00:00
|
|
|
#include "gtkcssparserprivate.h"
|
2012-03-27 23:56:57 +00:00
|
|
|
#include "gtkcssvalueprivate.h"
|
2011-06-02 00:58:53 +00:00
|
|
|
#include "gtkroundedboxprivate.h"
|
2011-05-19 18:47:17 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2012-04-03 13:33:00 +00:00
|
|
|
GtkCssValue * _gtk_css_shadow_value_new_for_transition (GtkCssValue *target);
|
|
|
|
|
2014-06-09 23:04:55 +00:00
|
|
|
GtkCssValue * _gtk_css_shadow_value_parse (GtkCssParser *parser,
|
|
|
|
gboolean box_shadow_mode);
|
2011-05-19 18:47:17 +00:00
|
|
|
|
2013-04-05 09:54:03 +00:00
|
|
|
gboolean _gtk_css_shadow_value_get_inset (const GtkCssValue *shadow);
|
|
|
|
|
2013-04-22 20:50:39 +00:00
|
|
|
void _gtk_css_shadow_value_get_geometry (const GtkCssValue *shadow,
|
|
|
|
gdouble *hoffset,
|
|
|
|
gdouble *voffset,
|
|
|
|
gdouble *radius,
|
|
|
|
gdouble *spread);
|
|
|
|
|
2012-03-28 01:31:20 +00:00
|
|
|
void _gtk_css_shadow_value_paint_layout (const GtkCssValue *shadow,
|
|
|
|
cairo_t *cr,
|
|
|
|
PangoLayout *layout);
|
2011-05-19 18:47:17 +00:00
|
|
|
|
2012-03-28 01:31:20 +00:00
|
|
|
void _gtk_css_shadow_value_paint_icon (const GtkCssValue *shadow,
|
|
|
|
cairo_t *cr);
|
2011-05-20 20:05:57 +00:00
|
|
|
|
2012-03-28 01:31:20 +00:00
|
|
|
void _gtk_css_shadow_value_paint_box (const GtkCssValue *shadow,
|
|
|
|
cairo_t *cr,
|
|
|
|
const GtkRoundedBox *padding_box);
|
2011-06-06 15:38:45 +00:00
|
|
|
|
2011-05-19 18:47:17 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GTK_SHADOW_H__ */
|