-#ifndef __DALI_TOOLKIT_INTERNAL_TOGGLE_BUTTON_H__
-#define __DALI_TOOLKIT_INTERNAL_TOGGLE_BUTTON_H__
+#ifndef DALI_TOOLKIT_INTERNAL_TOGGLE_BUTTON_H
+#define DALI_TOOLKIT_INTERNAL_TOGGLE_BUTTON_H
/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 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.
/**
* @copydoc Toolkit::Internal::Button::OnInitialize
*/
- virtual void OnInitialize();
+ void OnInitialize() override;
/**
* @copydoc Toolkit::Internal::Button::OnRelayout
*/
- virtual void OnRelayout( const Vector2& size, RelayoutContainer& container );
+ void OnRelayout( const Vector2& size, RelayoutContainer& container ) override;
/**
* This method is called when the button is pressed.
*/
- virtual void OnPressed();
+ void OnPressed() override;
private:
std::vector<Toolkit::Visual::Base> mToggleDisabledSelectedVisuals; ///< Save all disabled selected visuals.
std::vector<std::string> mToggleTooltips; ///< Toggle tooltips.
unsigned int mCurrentToggleIndex; ///< The index of state.
+protected:
+ void OnStateChange( State newState ) override;
};
} // namespace Internal
} // namespace Dali
-#endif // __DALI_TOOLKIT_INTERNAL_TOGGLE_BUTTON_H__
+#endif // DALI_TOOLKIT_INTERNAL_TOGGLE_BUTTON_H