glade-design-private.h 2.39 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
#include "glade-design-view.h"
#include "glade-design-layout.h"
Juan Pablo Ugarte's avatar
Juan Pablo Ugarte committed
30
#include "glade-dnd.h"
31

32 33
G_BEGIN_DECLS

34
void _glade_design_layout_get_colors (GdkRGBA *c1, GdkRGBA *c2,
35 36
                                      GdkRGBA *c3, GdkRGBA *c4);

37 38 39 40 41 42 43 44 45 46 47 48 49
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);

Juan Pablo Ugarte's avatar
Juan Pablo Ugarte committed
50 51 52
void _glade_design_layout_get_hot_point (GladeDesignLayout *layout,
                                         gint *x,
                                         gint *y);
53

Juan Pablo Ugarte's avatar
Juan Pablo Ugarte committed
54
GladeWidget * _glade_design_layout_get_child (GladeDesignLayout *layout);
55

56 57 58 59
GtkWidget   *_glade_design_layout_get_child_at_position (GtkWidget *widget,
                                                         gint       x, 
                                                         gint       y);

Juan Pablo Ugarte's avatar
Juan Pablo Ugarte committed
60 61 62
void         _glade_design_layout_set_highlight (GladeDesignLayout *layout,
                                                 GladeWidget       *drag);

63 64 65
G_END_DECLS

#endif /* __GLADE_DESIGN_PRIVATE_H__ */