#define DALI_TOOLKIT_PAGE_TURN_VIEW_H
/*
- * Copyright (c) 2019 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.
namespace Dali
{
-
namespace Toolkit
{
-
// Forward declarations
class PageFactory;
class DALI_TOOLKIT_API PageTurnView : public Control
{
public:
-
/**
* @brief The start and end property ranges for this control.
* @SINCE_1_1.4
enum PropertyRange
{
PROPERTY_START_INDEX = Control::CONTROL_PROPERTY_END_INDEX + 1, ///< @SINCE_1_1.4
- PROPERTY_END_INDEX = PROPERTY_START_INDEX + 1000 ///< Reserve property indices @SINCE_1_1.4
+ PROPERTY_END_INDEX = PROPERTY_START_INDEX + 1000 ///< Reserve property indices @SINCE_1_1.4
};
struct Property
* The two values are the major&minor radius (in pixels) to form an ellipse shape.
* The top-left quarter of this ellipse is used to calculate spine normal for simulating shadow.
*/
- SPINE_SHADOW, ///< name "spineShadow", type Vector2 @SINCE_1_1.4
+ SPINE_SHADOW, ///< name "spineShadow", type Vector2 @SINCE_1_1.4
};
};
* @SINCE_1_1.4
* @param[in] handle Handle to copy from
*/
- PageTurnView( const PageTurnView& handle );
+ PageTurnView(const PageTurnView& handle);
/**
* @brief Assignment operator. Changes this handle to point to another real object
* @SINCE_1_1.4
*/
- PageTurnView& operator=( const PageTurnView& handle );
+ PageTurnView& operator=(const PageTurnView& handle);
/**
* @brief Destructor
* @param[in] handle Handle to an object
* @return handle to a PageTurnView or an uninitialized handle
*/
- static PageTurnView DownCast( BaseHandle handle );
+ static PageTurnView DownCast(BaseHandle handle);
public: //Signal
-
// Page Turned signal, with page index and boolean turning direction (true = forward, false = backward)
- typedef Signal< void ( PageTurnView, unsigned int, bool ) > PageTurnSignal;
- typedef Signal< void ( PageTurnView ) > PagePanSignal;
+ typedef Signal<void(PageTurnView, unsigned int, bool)> PageTurnSignal;
+ typedef Signal<void(PageTurnView)> PagePanSignal;
/**
* @brief Signal emitted when a page has started to turn over.
PagePanSignal& PagePanFinishedSignal();
public: // Not intended for application developers
-
/// @cond internal
/**
* @brief Creates a handle using the Toolkit::Internal implementation.