application.SendNotification();
Vector2 size( 100.0f, 200.0f );
- alignment.SetSize(size);
+ alignment.SetProperty( Actor::Property::SIZE, size);
application.Render();
application.SendNotification();
}
///////////////////////////////////////////////////////////////////////////////
-static bool TouchEventCallback(Actor actor, const TouchEvent& event)
+static bool TouchCallback(Actor actor, const TouchData& event)
{
return false;
}
ToolkitTestApplication application;
Alignment alignment = Alignment::New();
- alignment.SetSize(100.0f, 100.0f);
- alignment.SetAnchorPoint(AnchorPoint::TOP_LEFT);
+ alignment.SetProperty( Actor::Property::SIZE, Vector2( 100.0f, 100.0f ) );
+ alignment.SetProperty( Actor::Property::ANCHOR_POINT,AnchorPoint::TOP_LEFT);
Stage::GetCurrent().Add(alignment);
- alignment.TouchedSignal().Connect(&TouchEventCallback);
+ alignment.TouchSignal().Connect(&TouchCallback);
application.Render();
application.SendNotification();