gnomemm r1644 - in goocanvasmm/trunk: . examples examples/coordinates examples/custom_item examples/drag_to_canvas examples/moving_shapes examples/simple examples/table examples/tablemodel examples/text goocanvas/src
- From: murrayc svn gnome org
- To: svn-commits-list gnome org
- Subject: gnomemm r1644 - in goocanvasmm/trunk: . examples examples/coordinates examples/custom_item examples/drag_to_canvas examples/moving_shapes examples/simple examples/table examples/tablemodel examples/text goocanvas/src
- Date: Sun, 27 Jul 2008 20:48:41 +0000 (UTC)
Author: murrayc
Date: Sun Jul 27 20:48:40 2008
New Revision: 1644
URL: http://svn.gnome.org/viewvc/gnomemm?rev=1644&view=rev
Log:
2008-07-27 Murray Cumming <murrayc murrayc com>
* examples/coordinates/window.h:
* examples/custom_item/Makefile.am:
* examples/custom_item/exampleitem.cc:
* examples/custom_item/exampleitem.h:
* examples/custom_item/examplewindow.cc:
* examples/custom_item/examplewindow.h:
* examples/drag_to_canvas/examplewindow.h:
* examples/moving_shapes/window.h:
* examples/simple/examplewindow.h:
* examples/table/examplewindow.h:
* examples/tablemodel/examplewindow.h:
* examples/text/window.h: Added header guards.
* configure.in:
* examples/Makefile.am:
* examples/custom_item/: New unfinished unworking
example of a custom item doing its own drawing.
Added:
goocanvasmm/trunk/examples/custom_item/
goocanvasmm/trunk/examples/custom_item/Makefile.am
- copied, changed from r1643, /goocanvasmm/trunk/examples/simple/Makefile.am
goocanvasmm/trunk/examples/custom_item/exampleitem.cc
goocanvasmm/trunk/examples/custom_item/exampleitem.h
goocanvasmm/trunk/examples/custom_item/examplewindow.cc
- copied, changed from r1643, /goocanvasmm/trunk/examples/simple/examplewindow.cc
goocanvasmm/trunk/examples/custom_item/examplewindow.h
- copied, changed from r1643, /goocanvasmm/trunk/examples/simple/examplewindow.h
goocanvasmm/trunk/examples/custom_item/main.cc
- copied unchanged from r1643, /goocanvasmm/trunk/examples/simple/main.cc
Removed:
goocanvasmm/trunk/examples/README.txt
Modified:
goocanvasmm/trunk/ChangeLog
goocanvasmm/trunk/configure.in
goocanvasmm/trunk/examples/Makefile.am
goocanvasmm/trunk/examples/coordinates/window.h
goocanvasmm/trunk/examples/drag_to_canvas/examplewindow.h
goocanvasmm/trunk/examples/moving_shapes/window.h
goocanvasmm/trunk/examples/simple/examplewindow.h
goocanvasmm/trunk/examples/table/examplewindow.h
goocanvasmm/trunk/examples/tablemodel/examplewindow.h
goocanvasmm/trunk/examples/text/window.h
goocanvasmm/trunk/goocanvas/src/itemsimple.hg
Modified: goocanvasmm/trunk/configure.in
==============================================================================
--- goocanvasmm/trunk/configure.in (original)
+++ goocanvasmm/trunk/configure.in Sun Jul 27 20:48:40 2008
@@ -172,6 +172,7 @@
docs/reference/Doxyfile
examples/Makefile
+ examples/custom_item/Makefile
examples/demo/Makefile
examples/drag_to_canvas/Makefile
examples/simple/Makefile
Modified: goocanvasmm/trunk/examples/Makefile.am
==============================================================================
--- goocanvasmm/trunk/examples/Makefile.am (original)
+++ goocanvasmm/trunk/examples/Makefile.am Sun Jul 27 20:48:40 2008
@@ -1,5 +1,5 @@
-SUBDIRS = drag_to_canvas simple moving_shapes demo coordinates text table tablemodel
+SUBDIRS = drag_to_canvas simple moving_shapes demo coordinates text table tablemodel custom_item
-#EXTRA_DIST = Makefile.am_fragment README.txt
+#EXTRA_DIST = Makefile.am_fragment
Modified: goocanvasmm/trunk/examples/coordinates/window.h
==============================================================================
--- goocanvasmm/trunk/examples/coordinates/window.h (original)
+++ goocanvasmm/trunk/examples/coordinates/window.h Sun Jul 27 20:48:40 2008
@@ -1,19 +1,23 @@
-/* example Copyright (C) 2007 goocanvasmm development team
+/* Copyright (C) 2008 The goocanvasmm Development Team
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2
- * as published by the Free Software Foundation.
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * 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 General Public License for more details.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#ifndef _GOOCANVASMM_EXAMPLEWINDOW_H
+#define _GOOCANVASMM_EXAMPLEWINDOW_H
+
#include <gtkmm.h>
#include <goocanvasmm.h>
@@ -37,3 +41,5 @@
Gtk::Button m_button_translate, m_button_scale, m_button_setxy;
};
+#endif //_GOOCANVASMM_EXAMPLEWINDOW_H
+
Copied: goocanvasmm/trunk/examples/custom_item/Makefile.am (from r1643, /goocanvasmm/trunk/examples/simple/Makefile.am)
==============================================================================
--- /goocanvasmm/trunk/examples/simple/Makefile.am (original)
+++ goocanvasmm/trunk/examples/custom_item/Makefile.am Sun Jul 27 20:48:40 2008
@@ -1,5 +1,5 @@
include $(top_srcdir)/examples/Makefile.am_fragment
noinst_PROGRAMS = example
-example_SOURCES = main.cc examplewindow.cc examplewindow.h
+example_SOURCES = main.cc examplewindow.cc examplewindow.h exampleitem.cc exampleitem.h
Added: goocanvasmm/trunk/examples/custom_item/exampleitem.cc
==============================================================================
--- (empty file)
+++ goocanvasmm/trunk/examples/custom_item/exampleitem.cc Sun Jul 27 20:48:40 2008
@@ -0,0 +1,57 @@
+#include "exampleitem.h"
+#include <goocanvasitemsimple.h>
+
+ExampleItem::ExampleItem(double x, double y, double width, double height)
+: m_x(x), m_y(y), m_width(width), m_height(height)
+{
+}
+
+Glib::RefPtr<ExampleItem> ExampleItem::create(double x, double y, double width, double height)
+{
+ return Glib::RefPtr<ExampleItem>(new ExampleItem());
+}
+
+/* The update method. This is called when the canvas is initially shown and
+ also whenever the object is updated and needs to change its size and/or
+ shape. It should calculate its new bounds in its own coordinate space,
+ storing them in simple->bounds. */
+void ExampleItem::simple_update_vfunc(const Cairo::RefPtr<Cairo::Context>& cr)
+{
+ Goocanvas::ItemSimple::simple_update_vfunc(cr);
+
+ GooCanvasItemSimple* simple = GOO_CANVAS_ITEM_SIMPLE(gobj());
+ if(simple)
+ {
+ /* Compute the new bounds. */
+ simple->bounds.x1 = m_x;
+ simple->bounds.y1 = m_y;
+ simple->bounds.x2 = m_x + m_width;
+ simple->bounds.y2 = m_y + m_height;
+ }
+}
+
+
+void ExampleItem::simple_paint_vfunc(const Cairo::RefPtr<Cairo::Context>& cr, const Goocanvas::Bounds& bounds)
+{
+ Goocanvas::ItemSimple::simple_paint_vfunc(cr, bounds);
+
+ if(!cr)
+ return;
+
+ cr->move_to(m_x, m_y);
+ cr->line_to(m_x, m_y + m_height);
+ cr->line_to(m_x + m_width, m_y + m_height);
+ cr->line_to(m_x + m_width, m_y);
+ cr->close_path();
+
+ GooCanvasItemSimple* simple = GOO_CANVAS_ITEM_SIMPLE(gobj());
+ if(simple && simple->simple_data)
+ {
+ Glib::RefPtr<Goocanvas::Style> style = Glib::wrap(simple->simple_data->style, true /* take_copy */);
+ if(style)
+ style->set_fill_options(cr);
+ }
+
+ cr->fill();
+}
+
Added: goocanvasmm/trunk/examples/custom_item/exampleitem.h
==============================================================================
--- (empty file)
+++ goocanvasmm/trunk/examples/custom_item/exampleitem.h Sun Jul 27 20:48:40 2008
@@ -0,0 +1,40 @@
+/* Copyright (C) 2008 The goocanvasmm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#ifndef _GOOCANVASMM_EXAMPLEITEM_H
+#define _GOOCANVASMM_EXAMPLEITEM_H
+
+#include <goocanvasmm/itemsimple.h>
+
+class ExampleItem : public Goocanvas::ItemSimple
+{
+protected:
+ ExampleItem(double x = 0, double y = 0, double width = 0, double height = 0);
+
+public:
+ static Glib::RefPtr<ExampleItem> create(double x = 0, double y = 0, double width = 0, double height = 0);
+
+protected:
+ void simple_update_vfunc(const Cairo::RefPtr<Cairo::Context>& cr);
+ void simple_paint_vfunc(const Cairo::RefPtr<Cairo::Context>& cr, const Goocanvas::Bounds& bounds);
+
+ double m_x, m_y;
+ double m_width, m_height;
+};
+
+#endif //_GOOCANVASMM_EXAMPLEWINDOW_H
+
Copied: goocanvasmm/trunk/examples/custom_item/examplewindow.cc (from r1643, /goocanvasmm/trunk/examples/simple/examplewindow.cc)
==============================================================================
--- /goocanvasmm/trunk/examples/simple/examplewindow.cc (original)
+++ goocanvasmm/trunk/examples/custom_item/examplewindow.cc Sun Jul 27 20:48:40 2008
@@ -4,26 +4,19 @@
ExampleWindow::ExampleWindow()
{
- set_title("goocanvasmm - Simple Example");
+ set_title("goocanvasmm - Custom Item Example");
m_canvas.set_size_request(640, 480);
m_canvas.set_bounds(0, 0, 1000, 1000);
+
+ Glib::RefPtr<ExampleItem> item = ExampleItem::create(100, 100, 400, 400);
+ item->property_line_width().set_value(10.0);
+ item->property_stroke_color().set_value("yellow");
+ item->property_fill_color().set_value("red");
+
Glib::RefPtr<Goocanvas::Item> root = m_canvas.get_root_item();
- Glib::RefPtr<Goocanvas::Rect> rect = Goocanvas::Rect::create(100, 100, 400, 400);
- root->add_child(rect);
- rect->property_line_width().set_value(10.0);
- rect->property_radius_x().set_value(20.0);
- rect->property_radius_y().set_value(20.0);
- rect->property_stroke_color().set_value("yellow");
- rect->property_fill_color().set_value("red");
- rect->signal_button_press_event ().connect (sigc::mem_fun (this,
- &ExampleWindow::on_rect_button_press));
-
- Glib::RefPtr<Goocanvas::Text> text = Goocanvas::Text::create("Hello World", 300, 300, -1, Gtk::ANCHOR_CENTER);
- root->add_child(text);
- text->property_font().set_value("Sans 24");
- text->rotate(45, 300, 300);
+ root->add_child(item);
Gtk::ScrolledWindow* sw = Gtk::manage(new Gtk::ScrolledWindow());
sw->add(m_canvas);
@@ -32,10 +25,3 @@
show_all_children();
}
-bool
-ExampleWindow::on_rect_button_press(const Glib::RefPtr<Goocanvas::Item>& item, GdkEventButton* event)
-{
- std::cout << "You clicked the rectangle!" << std::endl ;
- return true ;
-}
-
Copied: goocanvasmm/trunk/examples/custom_item/examplewindow.h (from r1643, /goocanvasmm/trunk/examples/simple/examplewindow.h)
==============================================================================
--- /goocanvasmm/trunk/examples/simple/examplewindow.h (original)
+++ goocanvasmm/trunk/examples/custom_item/examplewindow.h Sun Jul 27 20:48:40 2008
@@ -1,17 +1,39 @@
+/* Copyright (C) 2008 The goocanvasmm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#ifndef _GOOCANVASMM_EXAMPLEWINDOW_H
+#define _GOOCANVASMM_EXAMPLEWINDOW_H
#include <gtkmm.h>
#include <goocanvasmm.h>
+#include "exampleitem.h"
class ExampleWindow : public Gtk::Window
{
public:
- ExampleWindow() ;
+ ExampleWindow();
protected:
Goocanvas::Canvas m_canvas;
- Glib::RefPtr<Goocanvas::Rect> m_table;
+ Glib::RefPtr<ExampleItem> m_item;
- bool on_rect_button_press(const Glib::RefPtr<Goocanvas::Item>& target, GdkEventButton* event);
};
+#endif //_GOOCANVASMM_EXAMPLEWINDOW_H
+
+
Modified: goocanvasmm/trunk/examples/drag_to_canvas/examplewindow.h
==============================================================================
--- goocanvasmm/trunk/examples/drag_to_canvas/examplewindow.h (original)
+++ goocanvasmm/trunk/examples/drag_to_canvas/examplewindow.h Sun Jul 27 20:48:40 2008
@@ -1,3 +1,22 @@
+/* Copyright (C) 2008 The goocanvasmm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#ifndef _GOOCANVASMM_EXAMPLEWINDOW_H
+#define _GOOCANVASMM_EXAMPLEWINDOW_H
#include <gtkmm.h>
#include <goocanvasmm.h>
@@ -38,3 +57,5 @@
bool m_drag_preview_requested;
};
+#endif //_GOOCANVASMM_EXAMPLEWINDOW_H
+
Modified: goocanvasmm/trunk/examples/moving_shapes/window.h
==============================================================================
--- goocanvasmm/trunk/examples/moving_shapes/window.h (original)
+++ goocanvasmm/trunk/examples/moving_shapes/window.h Sun Jul 27 20:48:40 2008
@@ -1,3 +1,22 @@
+/* Copyright (C) 2008 The goocanvasmm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#ifndef _GOOCANVASMM_EXAMPLEWINDOW_H
+#define _GOOCANVASMM_EXAMPLEWINDOW_H
#include <gtkmm.h>
#include <goocanvasmm.h>
@@ -25,3 +44,5 @@
*/
};
+#endif //_GOOCANVASMM_EXAMPLEWINDOW_H
+
Modified: goocanvasmm/trunk/examples/simple/examplewindow.h
==============================================================================
--- goocanvasmm/trunk/examples/simple/examplewindow.h (original)
+++ goocanvasmm/trunk/examples/simple/examplewindow.h Sun Jul 27 20:48:40 2008
@@ -1,3 +1,22 @@
+/* Copyright (C) 2008 The goocanvasmm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#ifndef _GOOCANVASMM_EXAMPLEWINDOW_H
+#define _GOOCANVASMM_EXAMPLEWINDOW_H
#include <gtkmm.h>
#include <goocanvasmm.h>
@@ -15,3 +34,5 @@
bool on_rect_button_press(const Glib::RefPtr<Goocanvas::Item>& target, GdkEventButton* event);
};
+#endif //_GOOCANVASMM_EXAMPLEWINDOW_H
+
Modified: goocanvasmm/trunk/examples/table/examplewindow.h
==============================================================================
--- goocanvasmm/trunk/examples/table/examplewindow.h (original)
+++ goocanvasmm/trunk/examples/table/examplewindow.h Sun Jul 27 20:48:40 2008
@@ -1,3 +1,22 @@
+/* Copyright (C) 2008 The goocanvasmm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#ifndef _GOOCANVASMM_EXAMPLEWINDOW_H
+#define _GOOCANVASMM_EXAMPLEWINDOW_H
#include <gtkmm.h>
#include <goocanvasmm.h>
@@ -17,3 +36,5 @@
Glib::RefPtr<Goocanvas::Table> m_table;
};
+#endif //_GOOCANVASMM_EXAMPLEWINDOW_H
+
Modified: goocanvasmm/trunk/examples/tablemodel/examplewindow.h
==============================================================================
--- goocanvasmm/trunk/examples/tablemodel/examplewindow.h (original)
+++ goocanvasmm/trunk/examples/tablemodel/examplewindow.h Sun Jul 27 20:48:40 2008
@@ -1,3 +1,22 @@
+/* Copyright (C) 2008 The goocanvasmm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#ifndef _GOOCANVASMM_EXAMPLEWINDOW_H
+#define _GOOCANVASMM_EXAMPLEWINDOW_H
#include <gtkmm.h>
#include <goocanvasmm.h>
@@ -18,3 +37,5 @@
Glib::RefPtr<Goocanvas::TableModel> m_table;
};
+#endif //_GOOCANVASMM_EXAMPLEWINDOW_H
+
Modified: goocanvasmm/trunk/examples/text/window.h
==============================================================================
--- goocanvasmm/trunk/examples/text/window.h (original)
+++ goocanvasmm/trunk/examples/text/window.h Sun Jul 27 20:48:40 2008
@@ -1,19 +1,23 @@
-/* example Copyright (C) 2007 goocanvasmm development team
+/* Copyright (C) 2008 The goocanvasmm Development Team
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2
- * as published by the Free Software Foundation.
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * 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 General Public License for more details.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#ifndef _GOOCANVASMM_EXAMPLEWINDOW_H
+#define _GOOCANVASMM_EXAMPLEWINDOW_H
+
#include <gtkmm.h>
#include <goocanvasmm.h>
@@ -42,3 +46,5 @@
Gtk::Button m_button_set_width, m_button_set_width_unlimited;
};
+#endif //_GOOCANVASMM_EXAMPLEWINDOW_H
+
Modified: goocanvasmm/trunk/goocanvas/src/itemsimple.hg
==============================================================================
--- goocanvasmm/trunk/goocanvas/src/itemsimple.hg (original)
+++ goocanvasmm/trunk/goocanvas/src/itemsimple.hg Sun Jul 27 20:48:40 2008
@@ -94,8 +94,8 @@
protected:
#m4 _CONVERSION(`cairo_t*',`const Cairo::RefPtr<Cairo::Context>&',`Cairo::RefPtr<Cairo::Context>(new Cairo::Context($3, false /* has reference */))')
#m4 _CONVERSION(`const GooCanvasBounds*',`const Bounds&',`Glib::wrap($3)')
- _WRAP_VFUNC(void simple_create_path(const Cairo::RefPtr<Cairo::Context>& cr), "simple_create_path")
- _WRAP_VFUNC(void simple_update(const Cairo::RefPtr<Cairo::Context>& cr), "simple_update")
+ _WRAP_VFUNC(void simple_create_path(const Cairo::RefPtr<Cairo::Context>& cr), simple_create_path)
+ _WRAP_VFUNC(void simple_update(const Cairo::RefPtr<Cairo::Context>& cr), simple_update)
_WRAP_VFUNC(void simple_paint(const Cairo::RefPtr<Cairo::Context>& cr, const Bounds& bounds), simple_paint)
_WRAP_VFUNC(bool simple_is_item_at(double x, double y, const Cairo::RefPtr<Cairo::Context>& cr, bool is_pointer_event), "simple_is_item_at")
_MEMBER_GET(need_update, need_update, bool, guint);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]