glade-design-private.h 2.28 KB
Newer Older
1
2
3
4
5
6
7
8
/*
 * glade-design-private.h
 *
 * Copyright (C) 2011  Juan Pablo Ugarte
 *
 * Authors:
 *   Juan Pablo Ugarte <juanpablougarte@gmail.com>
 *
9
10
11
12
 * 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.1 of
 * the License, or (at your option) any later version.
13
 *
14
15
16
17
 * 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.
18
 *
19
20
 * You should have received a copy of the GNU Lesser General Public 
 * License along with this program; if not, write to the Free Software
21
22
23
24
25
26
27
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 *
 */

#ifndef __GLADE_DESIGN_PRIVATE_H__
#define __GLADE_DESIGN_PRIVATE_H__

28
29
30
31
32
33
#define GDL_DND_INFO_WIDGET 15956
#define GDL_DND_TARGET_WIDGET "glade/x-widget"

#include "glade-design-view.h"
#include "glade-design-layout.h"

34
35
36
37
38
G_BEGIN_DECLS

void _glade_design_view_freeze (GladeDesignView *view);
void _glade_design_view_thaw   (GladeDesignView *view);

Juan Pablo Ugarte's avatar
Juan Pablo Ugarte committed
39
40
41
42
void _glade_design_layout_get_colors (GtkStyleContext *context, 
                                      GdkRGBA *c1, GdkRGBA *c2,
                                      GdkRGBA *c3, GdkRGBA *c4);

43
44
45
46
47
48
49
50
51
52
53
54
55
void _glade_design_layout_draw_node (cairo_t *cr,
                                     gdouble x,
                                     gdouble y,
                                     GdkRGBA *fg,
                                     GdkRGBA *bg);

void _glade_design_layout_draw_pushpin (cairo_t *cr,
                                        gdouble needle_length,
                                        GdkRGBA *outline,
                                        GdkRGBA *fill,
                                        GdkRGBA *bg,
                                        GdkRGBA *fg);

56
57
58
59
60
61
void            _glade_design_layout_get_hot_point (GladeDesignLayout *layout,
                                                    gint *x,
                                                    gint *y);

GtkTargetEntry *_glade_design_layout_get_dnd_target (void);

62
63
64
G_END_DECLS

#endif /* __GLADE_DESIGN_PRIVATE_H__ */