/*
- * Copyright (c) 2017 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.
#include <dali/public-api/events/hover-event.h>
#include <dali/public-api/adaptor-framework/timer.h>
-#include <dali/public-api/common/stage.h>
+#include <dali/devel-api/common/stage.h>
#include <dali/devel-api/scripting/enum-helper.h>
// INTERNAL INCLUDES
-#include <dali-toolkit/public-api/controls/table-view/table-view.h>
+#include <dali-toolkit/devel-api/controls/table-view/table-view.h>
#include <dali-toolkit/public-api/controls/text-controls/text-label.h>
#include <dali-toolkit/public-api/visuals/visual-properties.h>
#include <dali-toolkit/devel-api/controls/tooltip/tooltip-properties.h>
if( connectSignals && ! mSignalsConnected )
{
control.HoveredSignal().Connect( this, &Tooltip::OnHovered );
- control.SetLeaveRequired( true );
+ control.SetProperty( Actor::Property::LEAVE_REQUIRED, true );
mSignalsConnected = true;
}
}
mPopup.SetProperty( Toolkit::Popup::Property::ANIMATION_MODE, "NONE" );
mPopup.SetProperty( Toolkit::Popup::Property::BACKING_ENABLED, false ); // Disable the dimmed backing.
mPopup.SetProperty( Toolkit::Popup::Property::TOUCH_TRANSPARENT, true ); // Let events pass through the popup
- mPopup.SetParentOrigin( ParentOrigin::TOP_LEFT );
- mPopup.SetAnchorPoint( AnchorPoint::TOP_LEFT );
+ mPopup.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT );
+ mPopup.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT );
// Background
mPopup.SetProperty( Toolkit::Popup::Property::POPUP_BACKGROUND_IMAGE, mBackgroundImage );
Toolkit::Control control = mControl.GetHandle();
if( control )
{
- Vector3 worldPos = control.GetCurrentWorldPosition();
+ Vector3 worldPos = control.GetCurrentProperty< Vector3 >( Actor::Property::WORLD_POSITION );
float height = control.GetRelayoutSize( Dimension::HEIGHT );
position.x = stageSize.width * 0.5f + worldPos.x - popupWidth * 0.5f;
Toolkit::Control control = mControl.GetHandle();
if( control )
{
- Vector3 worldPos = control.GetCurrentWorldPosition();
+ Vector3 worldPos = control.GetCurrentProperty< Vector3 >( Actor::Property::WORLD_POSITION );
float height = control.GetRelayoutSize( Dimension::HEIGHT );
position.x = stageSize.width * 0.5f + worldPos.x - popupWidth * 0.5f;
if( yPosChanged && tail )
{
// If we change the y position, then the tail may be shown pointing to the wrong control so just hide it.
- tail.SetVisible( false );
+ tail.SetProperty( Actor::Property::VISIBLE, false );
}
- mPopup.SetPosition( position );
+ mPopup.SetProperty( Actor::Property::POSITION, position );
}
}