[Cluttermm] Use of Glib::RefPtr<T> vs. Gtkmm
- From: Aarto Matti <aarto matti gmail com>
- To: gtkmm-list gnome org
- Subject: [Cluttermm] Use of Glib::RefPtr<T> vs. Gtkmm
- Date: Mon, 15 Mar 2010 16:55:37 +0200
Hello,
Why Glib::RefPtr<T> is used in Clutter for smart-pointer management everywhere and Gtkmm doesn't bother about that much?
We can create a button object with Gtk::Button *button = new Gtk::Button();
But we have to struggle in Clutter with that mess:
Glib::RefPtr<Clutter::Actor> actor = new Clutter::Actor::create();
and not do like this:
Clutter::Actor* actor = new Clutter::Actor();
--
Aarto
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]