X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fcontrols%2Fcontrol-devel.cpp;h=116f69a23ee93ca34ef42902231ecfca92ee8846;hp=77b2368d36fef395e917e296d39ba38228c8292b;hb=6c3063e269a7f2d370c0ad45efde3eeb38dac3a1;hpb=0a6c26e72fc8d2ad52837311b7e9069c12eec4be diff --git a/dali-toolkit/devel-api/controls/control-devel.cpp b/dali-toolkit/devel-api/controls/control-devel.cpp index 77b2368..116f69a 100644 --- a/dali-toolkit/devel-api/controls/control-devel.cpp +++ b/dali-toolkit/devel-api/controls/control-devel.cpp @@ -35,64 +35,66 @@ namespace Toolkit namespace DevelControl { -ResourceReadySignalType& ResourceReadySignal( Control& control ) +void RegisterVisual( Internal::Control& control, Dali::Property::Index index, Toolkit::Visual::Base& visual ) { - Internal::Control& internalControl = Toolkit::Internal::GetImplementation(control); - Internal::Control::Impl& controlImpl = Internal::Control::Impl::Get( internalControl ); - - return controlImpl.mResourceReadySignal; + Internal::Control::Impl& controlDataImpl = Internal::Control::Impl::Get( control ); + controlDataImpl.RegisterVisual( index, visual ); } -bool IsResourceReady( const Control& control ) +void RegisterVisual( Internal::Control& control, Dali::Property::Index index, Toolkit::Visual::Base& visual, int depthIndex ) { - const Internal::Control& internalControl = Toolkit::Internal::GetImplementation(control); - const Internal::Control::Impl& controlImpl = Internal::Control::Impl::Get( internalControl ); - - return controlImpl.IsResourceReady(); + Internal::Control::Impl& controlDataImpl = Internal::Control::Impl::Get( control ); + controlDataImpl.RegisterVisual( index, visual, depthIndex ); } -void RegisterVisual( Internal::Control& control, Dali::Property::Index index, Toolkit::Visual::Base& visual ) +void RegisterVisual( Internal::Control& control, Dali::Property::Index index, Toolkit::Visual::Base& visual, bool enabled ) { - Internal::Control::Impl& controlImpl = Internal::Control::Impl::Get( control ); - controlImpl.RegisterVisual( index, visual ); + Internal::Control::Impl& controlDataImpl = Internal::Control::Impl::Get( control ); + controlDataImpl.RegisterVisual( index, visual, enabled ); } -void RegisterVisual( Internal::Control& control, Dali::Property::Index index, Toolkit::Visual::Base& visual, bool enabled ) +void RegisterVisual( Internal::Control& control, Dali::Property::Index index, Toolkit::Visual::Base& visual, bool enabled, int depthIndex ) { - Internal::Control::Impl& controlImpl = Internal::Control::Impl::Get( control ); - controlImpl.RegisterVisual( index, visual, enabled ); + Internal::Control::Impl& controlDataImpl = Internal::Control::Impl::Get( control ); + controlDataImpl.RegisterVisual( index, visual, enabled, depthIndex ); } void UnregisterVisual( Internal::Control& control, Dali::Property::Index index ) { - Internal::Control::Impl& controlImpl = Internal::Control::Impl::Get( control ); - controlImpl.UnregisterVisual( index ); + Internal::Control::Impl& controlDataImpl = Internal::Control::Impl::Get( control ); + controlDataImpl.UnregisterVisual( index ); } Toolkit::Visual::Base GetVisual( const Internal::Control& control, Dali::Property::Index index ) { - const Internal::Control::Impl& controlImpl = Internal::Control::Impl::Get( control ); - return controlImpl.GetVisual( index ); + const Internal::Control::Impl& controlDataImpl = Internal::Control::Impl::Get( control ); + return controlDataImpl.GetVisual( index ); } void EnableVisual( Internal::Control& control, Dali::Property::Index index, bool enable ) { - Internal::Control::Impl& controlImpl = Internal::Control::Impl::Get( control ); - controlImpl.EnableVisual( index, enable ); + Internal::Control::Impl& controlDataImpl = Internal::Control::Impl::Get( control ); + controlDataImpl.EnableVisual( index, enable ); } bool IsVisualEnabled( const Internal::Control& control, Dali::Property::Index index ) { - const Internal::Control::Impl& controlImpl = Internal::Control::Impl::Get( control ); - return controlImpl.IsVisualEnabled( index ); + const Internal::Control::Impl& controlDataImpl = Internal::Control::Impl::Get( control ); + return controlDataImpl.IsVisualEnabled( index ); } Dali::Animation CreateTransition( Internal::Control& control, const Toolkit::TransitionData& handle ) { - Internal::Control::Impl& controlImpl = Internal::Control::Impl::Get( control ); - return controlImpl.CreateTransition( handle ); + Internal::Control::Impl& controlDataImpl = Internal::Control::Impl::Get( control ); + return controlDataImpl.CreateTransition( handle ); } +void DoAction( Control& control, Dali::Property::Index visualIndex, Dali::Property::Index actionId, const Dali::Property::Value attributes ) +{ + Internal::Control& controlInternal = Toolkit::Internal::GetImplementation( control ); + Internal::Control::Impl& controlDataImpl = Internal::Control::Impl::Get( controlInternal ); + controlDataImpl.DoAction( visualIndex, actionId, attributes ); +} } // namespace DevelControl