X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=capi%2Fdali-toolkit%2Fpublic-api%2Fcontrols%2Fbuttons%2Fbutton.h;h=767536ad865f58065bba8c916a69d92c0745debb;hb=1866777184b30ae37eff224fac158220ccfb386d;hp=d414714afac2814d7de87535ed34821d7b98b75d;hpb=3fbada5f2ec43d9b0ea3e63eb54223cf7b3056f4;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/capi/dali-toolkit/public-api/controls/buttons/button.h b/capi/dali-toolkit/public-api/controls/buttons/button.h index d414714..767536a 100644 --- a/capi/dali-toolkit/public-api/controls/buttons/button.h +++ b/capi/dali-toolkit/public-api/controls/buttons/button.h @@ -1,24 +1,25 @@ #ifndef __DALI_TOOLKIT_BUTTON_H__ #define __DALI_TOOLKIT_BUTTON_H__ -// -// Copyright (c) 2014 Samsung Electronics Co., Ltd. -// -// Licensed under the Flora License, Version 1.0 (the License); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://floralicense.org/license/ -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an AS IS BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* + * Copyright (c) 2014 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ /** - * @addtogroup CAPI_DALI_FRAMEWORK + * @addtogroup CAPI_DALI_TOOLKIT_BUTTONS_MODULE * @{ */ @@ -42,7 +43,8 @@ class Button; } /** - * Button is a base class for different kind of buttons. + * @brief Button is a base class for different kind of buttons. + * * This class provides the dimmed property and the clicked signal. * * A ClickedSignal() is emitted when the button is touched and the touch @@ -55,7 +57,7 @@ class Button : public Control public: // Signal Names - static const char* const SIGNAL_CLICKED; + static const char* const SIGNAL_CLICKED; ///< name "clicked" // Properties static const Property::Index PROPERTY_DIMMED; ///< name "dimmed", @see SetDimmed(), type BOOLEAN @@ -63,37 +65,43 @@ public: public: /** - * Create an uninitialized Button. Only derived versions can be instantiated. - * Calling member functions with an uninitialized Dali::Object is not allowed. + * @brief Create an uninitialized Button. + * + * Only derived versions can be instantiated. Calling member + * functions with an uninitialized Dali::Object is not allowed. */ Button(); /** - * Copy constructor. + * @brief Copy constructor. */ Button( const Button& button ); /** - * Assignment operator. + * @brief Assignment operator. */ Button& operator=( const Button& button ); /** - * Downcast an Object handle to Button. If handle points to a Button the - * downcast produces valid handle. If not the returned handle is left uninitialized. + * @brief Downcast an Object handle to Button. + * + * If handle points to a Button the downcast produces valid + * handle. If not the returned handle is left uninitialized. + * * @param[in] handle Handle to an object * @return handle to a Button or an uninitialized handle */ static Button DownCast( BaseHandle handle ); /** - * Virtual destructor. - * Dali::Object derived classes typically do not contain member data. + * @brief Destructor + * + * This is non-virtual since derived Handle types must not contain data or virtual methods. */ - virtual ~Button(); + ~Button(); /** - * Sets the button as \e dimmed. + * @brief Sets the button as \e dimmed. * * No signals are emitted when the \e dimmed property is set. * @@ -107,38 +115,43 @@ public: bool IsDimmed() const; /** - * Sets the animation time. + * @brief Sets the animation time. + * * @param [in] animationTime The animation time in seconds. */ void SetAnimationTime( float animationTime ); /** - * Retrieves button's animation time. + * @brief Retrieves button's animation time. + * * @return The animation time in seconds. */ float GetAnimationTime() const; public: //Signals - // Button Clicked - + /** + * @brief Button Clicked signal type + */ typedef SignalV2< bool ( Button ) > ClickedSignalV2; /** - * Signal emitted when the button is touched and the touch point doesn't leave the boundary of the button. + * @brief Signal emitted when the button is touched and the touch point doesn't leave the boundary of the button. */ ClickedSignalV2& ClickedSignal(); public: // Not intended for application developers /** - * Creates a handle using the Toolkit::Internal implementation. + * @brief Creates a handle using the Toolkit::Internal implementation. + * * @param[in] implementation The Control implementation. */ Button( Internal::Button& implementation ); /** - * Allows the creation of this Control from an Internal::CustomActor pointer. + * @brief Allows the creation of this Control from an Internal::CustomActor pointer. + * * @param[in] internal A pointer to the internal CustomActor. */ Button( Dali::Internal::CustomActor* internal );