/*
- * Copyright (c) 2019 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
ToolkitTestApplication application;
CheckBoxButton checkBox = CheckBoxButton::New();
- Stage::GetCurrent().Add( checkBox );
+ application.GetScene().Add( checkBox );
- checkBox.SetSize( Vector2( 20.0f, 20.0f ) );
+ checkBox.SetProperty( Actor::Property::SIZE, Vector2( 20.0f, 20.0f ) );
checkBox.SetProperty(checkBox.GetPropertyIndex("disabledUnselectedBackgroundVisual"), "Image.jpg" );
application.SendNotification();
ToolkitTestApplication application;
CheckBoxButton checkBox = CheckBoxButton::New();
- Stage::GetCurrent().Add( checkBox );
+ application.GetScene().Add( checkBox );
- checkBox.SetSize( Vector2( 20.0f, 20.0f ) );
+ checkBox.SetProperty( Actor::Property::SIZE, Vector2( 20.0f, 20.0f ) );
checkBox.SetProperty(Button::Property::DISABLED_UNSELECTED_VISUAL, "Image.jpg" );
application.SendNotification();