[Cluttermm] Use of Glib::RefPtr<T> vs. Gtkmm



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]