1 /* GTK - The GIMP Toolkit
2 * Copyright (C) 2011 Benjamin Otte <otte@gnome.org>
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.
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.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
20 #ifndef __GTK_ROUNDED_BOX_PRIVATE_H__
21 #define __GTK_ROUNDED_BOX_PRIVATE_H__
23 #include <glib-object.h>
25 #include <gtk/gtkenums.h>
26 #include <gtk/gtkthemingengine.h>
28 #include "gtkcsstypesprivate.h"
32 typedef struct _GtkRoundedBox GtkRoundedBox;
34 struct _GtkRoundedBox {
36 cairo_rectangle_t box;
37 GtkCssBorderCornerRadius top_left;
38 GtkCssBorderCornerRadius top_right;
39 GtkCssBorderCornerRadius bottom_right;
40 GtkCssBorderCornerRadius bottom_left;
43 void _gtk_rounded_box_init_rect (GtkRoundedBox *box,
49 void _gtk_rounded_box_apply_border_radius (GtkRoundedBox *box,
50 GtkThemingEngine *engine,
52 GtkJunctionSides junction);
53 void _gtk_rounded_box_shrink (GtkRoundedBox *box,
58 void _gtk_rounded_box_move (GtkRoundedBox *box,
62 void _gtk_rounded_box_path (const GtkRoundedBox *box,
64 void _gtk_rounded_box_path_top (const GtkRoundedBox *outer,
65 const GtkRoundedBox *inner,
67 void _gtk_rounded_box_path_right (const GtkRoundedBox *outer,
68 const GtkRoundedBox *inner,
70 void _gtk_rounded_box_path_bottom (const GtkRoundedBox *outer,
71 const GtkRoundedBox *inner,
73 void _gtk_rounded_box_path_left (const GtkRoundedBox *outer,
74 const GtkRoundedBox *inner,
76 void _gtk_rounded_box_clip_path (const GtkRoundedBox *box,
81 #endif /* __GTK_ROUNDED_BOX_PRIVATE_H__ */