Hello all,
I have a simple code:
#include <cluttermm.h>
#include <iostream>
int main(int argc, char** argv)
{
try {
Clutter::init(&argc, &argv);
Glib::RefPtr<Clutter::Stage> stage = Clutter::Stage::get_default();
stage->set_size(400, 300);
stage->set_color(Clutter::Color(0, 0, 0));
stage->show();
const Glib::RefPtr<Clutter::Timeline> timelineScroll =
Clutter::Timeline::create(60 /*frames*/, 30 /*fps*/);
const Glib::RefPtr<Clutter::Alpha> alpha =
Clutter::Alpha::create(timelineScroll, Clutter::EASE_IN_SINE);
const Glib::RefPtr<Clutter::BehaviourEllipse> behaviour =
Clutter::BehaviourEllipse
::create(alpha, 300, 300, // x, y
400, 400, // width, height
Clutter::ROTATE_CW,
0.0, 90.0);
const Glib::RefPtr<Clutter::Rectangle> item =
Clutter::Rectangle::create(Clutter::Color(0xff, 0xff, 0xff, 0xff));
item->set_size(100, 100);
stage->add_actor(item);
item->show();
behaviour->apply(item);
timelineScroll->set_duration(2000);
timelineScroll->start();
Clutter::main();
} catch (const Glib::Error& error) {
std::cerr << "Exception: " << error.what() << std::endl;
return 1;
}
return 0;
}
I receive the following warning during run-time:
glibmm-WARNING **: Glib::ConstructParams::ConstructParams(): object class
"gtkmm__ClutterBehaviourEllipse" has no property named "x"
I don't try to access anything like that explicitly.
Also whatever values I assign to ellipse coordinates or its start and end
angles - it makes no difference.
I use Cluttermm-0.9
--
Aarto
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list