[DEBUG] correct ewol depreacation of periodicCall

This commit is contained in:
Edouard DUPIN 2016-10-25 21:56:55 +02:00
parent a3bf31527e
commit f6f440efc6
2 changed files with 5 additions and 4 deletions

View File

@ -8,6 +8,7 @@
#include <appl/debug.hpp> #include <appl/debug.hpp>
#include <etk/tool.hpp> #include <etk/tool.hpp>
#include <ewol/object/Manager.hpp>
appl::WidgetDisplay::WidgetDisplay() { appl::WidgetDisplay::WidgetDisplay() {
addObjectType("appl::WidgetDisplay"); addObjectType("appl::WidgetDisplay");
@ -17,7 +18,7 @@ appl::WidgetDisplay::WidgetDisplay() {
void appl::WidgetDisplay::init() { void appl::WidgetDisplay::init() {
ewol::Widget::init(); ewol::Widget::init();
m_compositing.setSource("DATA:SnowFlake.svg", ivec2(128,128)); m_compositing.setSource("DATA:SnowFlake.svg", ivec2(128,128));
periodicCallEnable(); getObjectManager().periodicCall.connect(sharedFromThis(), &appl::WidgetDisplay::periodicCall);
for (int32_t iii=0; iii<250 ; ++iii) { for (int32_t iii=0; iii<250 ; ++iii) {
m_elements.push_back(appl::WidgetDisplay::Element()); m_elements.push_back(appl::WidgetDisplay::Element());
} }

View File

@ -38,9 +38,9 @@ namespace appl {
std::vector<Element> m_elements; std::vector<Element> m_elements;
public: // Derived function public: // Derived function
void onRegenerateDisplay(); void onRegenerateDisplay();
virtual void periodicCall(const ewol::event::Time& _event); void periodicCall(const ewol::event::Time& _event);
virtual bool onEventInput(const ewol::event::Input& _event); bool onEventInput(const ewol::event::Input& _event) override;
virtual void onDraw(); void onDraw() override;
}; };
} }