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
|
|
|
|
2020-10-03 02:28:17 +00:00
|
|
|
#include <gtk/css/gtkcss.h>
|
|
|
|
#include "gtk/css/gtkcsstokenizerprivate.h"
|
|
|
|
#include "gtk/css/gtkcssparserprivate.h"
|
2019-03-16 03:48:26 +00:00
|
|
|
#include "gtkborder.h"
|
2012-03-28 01:31:20 +00:00
|
|
|
#include "gtktypes.h"
|
2012-03-27 23:56:57 +00:00
|
|
|
#include "gtkcssvalueprivate.h"
|
2011-06-02 00:58:53 +00:00
|
|
|
#include "gtkroundedboxprivate.h"
|
2020-01-14 13:34:15 +00:00
|
|
|
#include "gtksnapshot.h"
|
2011-05-19 18:47:17 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2021-02-06 14:00:32 +00:00
|
|
|
GtkCssValue * gtk_css_shadow_value_new_none (void);
|
2021-02-06 02:36:22 +00:00
|
|
|
GtkCssValue * gtk_css_shadow_value_new_filter (void);
|
2012-04-03 13:33:00 +00:00
|
|
|
|
2021-02-06 20:37:04 +00:00
|
|
|
GtkCssValue * gtk_css_shadow_value_parse (GtkCssParser *parser,
|
2014-06-09 23:04:55 +00:00
|
|
|
gboolean box_shadow_mode);
|
2021-02-06 14:00:32 +00:00
|
|
|
GtkCssValue * gtk_css_shadow_value_parse_filter (GtkCssParser *parser);
|
2011-05-19 18:47:17 +00:00
|
|
|
|
2016-11-19 19:13:54 +00:00
|
|
|
void gtk_css_shadow_value_get_extents (const GtkCssValue *shadow,
|
|
|
|
GtkBorder *border);
|
2016-11-19 19:38:22 +00:00
|
|
|
void gtk_css_shadow_value_snapshot_outset (const GtkCssValue *shadow,
|
|
|
|
GtkSnapshot *snapshot,
|
2016-12-13 19:48:58 +00:00
|
|
|
const GskRoundedRect *border_box);
|
2016-11-19 19:38:22 +00:00
|
|
|
void gtk_css_shadow_value_snapshot_inset (const GtkCssValue *shadow,
|
|
|
|
GtkSnapshot *snapshot,
|
2016-12-13 19:48:58 +00:00
|
|
|
const GskRoundedRect *padding_box);
|
2016-11-19 19:38:22 +00:00
|
|
|
|
2020-01-24 12:17:09 +00:00
|
|
|
gboolean gtk_css_shadow_value_is_clear (const GtkCssValue *shadow) G_GNUC_PURE;
|
|
|
|
gboolean gtk_css_shadow_value_is_none (const GtkCssValue *shadow) G_GNUC_PURE;
|
2020-01-14 13:34:15 +00:00
|
|
|
|
|
|
|
gboolean gtk_css_shadow_value_push_snapshot (const GtkCssValue *value,
|
|
|
|
GtkSnapshot *snapshot);
|
2021-02-06 14:00:32 +00:00
|
|
|
void gtk_css_shadow_value_pop_snapshot (const GtkCssValue *value,
|
|
|
|
GtkSnapshot *snapshot);
|
2017-10-28 20:10:46 +00:00
|
|
|
|
2011-05-19 18:47:17 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GTK_SHADOW_H__ */
|