*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
- ImageViewUrlApp( Application& application )
- : mApplication( application )
+ ImageViewUrlApp( Application& application, std::string url )
+ : mApplication( application ),
+ mUrl( url ),
+ mDeltaPropertyIndex( Property::INVALID_INDEX )
{
// Connect to the Application's Init signal
mApplication.InitSignal().Connect( this, &ImageViewUrlApp::Create );
{
// Connect to the Application's Init signal
mApplication.InitSignal().Connect( this, &ImageViewUrlApp::Create );
// Add a button to switch the scene. (right of toolbar)
Toolkit::PushButton switchButton = Toolkit::PushButton::New();
// Add a button to switch the scene. (right of toolbar)
Toolkit::PushButton switchButton = Toolkit::PushButton::New();
- switchButton.SetProperty( Toolkit::DevelButton::Property::UNSELECTED_BACKGROUND_VISUAL, BUTTON_ICON );
- switchButton.SetProperty( Toolkit::DevelButton::Property::SELECTED_BACKGROUND_VISUAL, BUTTON_ICON_SELECTED );
+ switchButton.SetProperty( Toolkit::Button::Property::UNSELECTED_BACKGROUND_VISUAL, BUTTON_ICON );
+ switchButton.SetProperty( Toolkit::Button::Property::SELECTED_BACKGROUND_VISUAL, BUTTON_ICON_SELECTED );
switchButton.ClickedSignal().Connect( this, &ImageViewUrlApp::OnButtonClicked );
toolBar.AddControl( switchButton,
DemoHelper::DEFAULT_VIEW_STYLE.mToolBarButtonPercentage,
Toolkit::Alignment::HorizontalRight,
DemoHelper::DEFAULT_MODE_SWITCH_PADDING );
switchButton.ClickedSignal().Connect( this, &ImageViewUrlApp::OnButtonClicked );
toolBar.AddControl( switchButton,
DemoHelper::DEFAULT_VIEW_STYLE.mToolBarButtonPercentage,
Toolkit::Alignment::HorizontalRight,
DemoHelper::DEFAULT_MODE_SWITCH_PADDING );
{
auto rootActor = Stage::GetCurrent().GetRootLayer();
auto cameraActor = CameraActor::New(TARGET_SIZE);
{
auto rootActor = Stage::GetCurrent().GetRootLayer();
auto cameraActor = CameraActor::New(TARGET_SIZE);
cameraActor.SetInvertYAxis(true);
rootActor.Add(cameraActor);
{
// create actor to render input with applied shader
cameraActor.SetInvertYAxis(true);
rootActor.Add(cameraActor);
{
// create actor to render input with applied shader
- mActorForInput = Toolkit::ImageView::New(BIG_TEST_IMAGE);
- mActorForInput.SetParentOrigin(ParentOrigin::CENTER);
- mActorForInput.SetSize(TARGET_SIZE);
+ mActorForInput = Toolkit::ImageView::New( url );
+ mActorForInput.SetProperty( Actor::Property::PARENT_ORIGIN,ParentOrigin::CENTER);
+ mActorForInput.SetProperty( Actor::Property::SIZE, TARGET_SIZE);
Property::Map customShader;
customShader[Toolkit::Visual::Shader::Property::FRAGMENT_SHADER] = FILTER_FRAGMENT_SOURCE;
Property::Map visualMap;
Property::Map customShader;
customShader[Toolkit::Visual::Shader::Property::FRAGMENT_SHADER] = FILTER_FRAGMENT_SOURCE;
Property::Map visualMap;
Pixel::RGB888,
unsigned(TARGET_SIZE.width),
unsigned(TARGET_SIZE.height));
Pixel::RGB888,
unsigned(TARGET_SIZE.width),
unsigned(TARGET_SIZE.height));
- auto framebuffer = FrameBuffer::New(TARGET_SIZE.width, TARGET_SIZE.height, Pixel::RGB888);
+ auto framebuffer = FrameBuffer::New(TARGET_SIZE.width, TARGET_SIZE.height, FrameBuffer::Attachment::NONE );
auto url = Dali::Toolkit::TextureManager::AddTexture(mOutputTexture);
mImageView = Toolkit::ImageView::New(url);
auto url = Dali::Toolkit::TextureManager::AddTexture(mOutputTexture);
mImageView = Toolkit::ImageView::New(url);
- mImageView.SetParentOrigin(ParentOrigin::CENTER);
- mImageView.SetAnchorPoint(AnchorPoint::CENTER);
+ mImageView.SetProperty( Actor::Property::PARENT_ORIGIN,ParentOrigin::CENTER);
+ mImageView.SetProperty( Actor::Property::ANCHOR_POINT,AnchorPoint::CENTER);
int DALI_EXPORT_API main( int argc, char **argv )
{
Application application = Application::New( &argc, &argv );
int DALI_EXPORT_API main( int argc, char **argv )
{
Application application = Application::New( &argc, &argv );