-#ifndef __DALI_TOOLKIT_TOOL_BAR_H__
-#define __DALI_TOOLKIT_TOOL_BAR_H__
+#ifndef DALI_TOOLKIT_TOOL_BAR_H
+#define DALI_TOOLKIT_TOOL_BAR_H
/*
- * Copyright (c) 2015 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 <string>
// INTERNAL INCLUDES
-#include <dali-toolkit/public-api/controls/alignment/alignment.h>
+#include <dali-toolkit/devel-api/controls/alignment/alignment.h>
namespace Dali
{
-
namespace Toolkit
{
-
namespace Internal DALI_INTERNAL
{
// Forward declarations
class ToolBar;
-}
+} // namespace DALI_INTERNAL
/**
* Provides a tool bar where other controls (Dali::Actor) could be placed.
* is not forbidden, it adds controls on the left group with a size of 10% of the total tool bar size.
* Dali::Actor::Remove() method does nothing.
*/
-class DALI_IMPORT_API ToolBar : public Control
+class DALI_TOOLKIT_API ToolBar : public Control
{
public:
static const Toolkit::Alignment::Padding DEFAULT_PADDING; ///< Default padding space between controls. By default all values are set to 0.
* Copy constructor. Creates another handle that points to the same real object
* @param handle to copy from
*/
- ToolBar( const ToolBar& handle );
+ ToolBar(const ToolBar& handle);
/**
* Assignment operator. Changes this handle to point to another real object
*/
- ToolBar& operator=( const ToolBar& handle );
+ ToolBar& operator=(const ToolBar& handle);
/**
* @brief Destructor
* @param[in] handle Handle to an object
* @return handle to a ToolBar or an uninitialized handle
*/
- static ToolBar DownCast( BaseHandle handle );
+ static ToolBar DownCast(BaseHandle handle);
/**
* Adds an additional control to the tool bar.
* @param alignment Where to insert controls. Possible values are Toolkit::Alignment::Left, Toolkit::Alignment::Center or Toolkit::Alignment::Right.
* @param padding Padding values used for the added control (left, right, top, bottom). By default, no padding is added.
*/
- void AddControl( Actor control, float relativeSize, Toolkit::Alignment::Type alignment, const Toolkit::Alignment::Padding& padding = DEFAULT_PADDING );
+ void AddControl(Actor control, float relativeSize, Toolkit::Alignment::Type alignment, const Toolkit::Alignment::Padding& padding = DEFAULT_PADDING);
/**
* Removes a control from the tool bar.
* @pre control must have been added before to this tool bar.
* @param control The control to be removed.
*/
- void RemoveControl( Actor control );
+ void RemoveControl(Actor control);
public: // Not intended for application developers
-
/**
* Creates a handle using the Toolkit::Internal implementation.
* @param[in] implementation The Control implementation.
*/
- DALI_INTERNAL ToolBar( Internal::ToolBar& implementation );
+ DALI_INTERNAL ToolBar(Internal::ToolBar& implementation);
/**
* Allows the creation of this Control from an Internal::CustomActor pointer.
* @param[in] internal A pointer to the internal CustomActor.
*/
- explicit DALI_INTERNAL ToolBar( Dali::Internal::CustomActor* internal );
+ explicit DALI_INTERNAL ToolBar(Dali::Internal::CustomActor* internal);
};
} // namespace Toolkit
} // namespace Dali
-#endif // __DALI_TOOLKIT_TOOL_BAR_H__
+#endif // DALI_TOOLKIT_TOOL_BAR_H