void WidgetView::OnInitialize()
{
+ auto self = Self();
char* instanceId = NULL;
char* previewPath = NULL;
std::string previewImage;
mPreviewImage.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER );
mPreviewImage.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS );
- Self().SetResizePolicy( ResizePolicy::FIXED, Dimension::ALL_DIMENSIONS );
- Self().SetProperty( Actor::Property::SIZE, Vector2(mWidth, mHeight));
+ self.SetResizePolicy( ResizePolicy::FIXED, Dimension::ALL_DIMENSIONS );
+ self.SetProperty( Actor::Property::SIZE, Vector2(mWidth, mHeight));
- Self().Add( mPreviewActor );
+ self.Add( mPreviewActor );
mPreviewActor.Add( mPreviewImage );
mStateTextActor = Dali::Actor::New();
// launch widget
LaunchWidget();
- Self().TouchedSignal().Connect( this, &WidgetView::OnTouch );
- Self().WheelEventSignal().Connect( this, &WidgetView::OnWheelEvent );
+ self.TouchedSignal().Connect( this, &WidgetView::OnTouch );
+ self.WheelEventSignal().Connect( this, &WidgetView::OnWheelEvent );
- // Add Accessibility
- Toolkit::DevelControl::SetAccessibilityConstructor(Self(), [](Dali::Actor actor) {
- return std::make_unique<Toolkit::DevelControl::ControlAccessible>(actor, Dali::Accessibility::Role::EMBEDDED);
- });
-
- //Enable highightability
- Self().SetProperty(Toolkit::DevelControl::Property::ACCESSIBILITY_HIGHLIGHTABLE, true);
+ // Accessibility
+ self.SetProperty(Toolkit::DevelControl::Property::ACCESSIBILITY_ROLE, Dali::Accessibility::Role::EMBEDDED);
+ self.SetProperty(Toolkit::DevelControl::Property::ACCESSIBILITY_HIGHLIGHTABLE, true);
}
void WidgetView::OnSceneConnection( int depth )