Updated demos to use DALi clang-format
[platform/core/uifw/dali-demo.git] / examples / transitions / shadow-button.h
index e06b3db..9b8199b 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_DEMO_SHADOW_BUTTON_H
 
 /*
- * Copyright (c) 2017 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.
@@ -22,7 +22,6 @@
 
 namespace Demo
 {
-
 // All type registered controls need to have the same name for the body
 // and the handle
 namespace Internal
@@ -41,10 +40,10 @@ public:
    */
   enum PropertyRange
   {
-    PROPERTY_START_INDEX = Dali::Toolkit::Control::CONTROL_PROPERTY_END_INDEX + 1,
-    PROPERTY_END_INDEX   = PROPERTY_START_INDEX + 1000,
+    PROPERTY_START_INDEX            = Dali::Toolkit::Control::CONTROL_PROPERTY_END_INDEX + 1,
+    PROPERTY_END_INDEX              = PROPERTY_START_INDEX + 1000,
     ANIMATABLE_PROPERTY_START_INDEX = Dali::ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX,
-    ANIMATABLE_PROPERTY_END_INDEX = ANIMATABLE_PROPERTY_START_INDEX+1000
+    ANIMATABLE_PROPERTY_END_INDEX   = ANIMATABLE_PROPERTY_START_INDEX + 1000
   };
 
   struct Property
@@ -65,7 +64,6 @@ public:
   };
 
 public: // Construction / destruction
-
   /**
    * Create an uninitialized handle
    */
@@ -80,7 +78,7 @@ public: // Construction / destruction
   /**
    * Create a new image channel button from a given URL
    */
-  static ShadowButton New( const std::string& url );
+  static ShadowButton New(const std::string& url);
 
   /**
    * Destructor. This is non-virtual since derived Handle types must not
@@ -91,27 +89,26 @@ public: // Construction / destruction
   /**
    * Copy Constructor
    */
-  ShadowButton( const ShadowButton& shadowButton );
+  ShadowButton(const ShadowButton& shadowButton);
 
   /**
    * Assignment Operator
    */
-  ShadowButton& operator=( const ShadowButton& shadowButton );
+  ShadowButton& operator=(const ShadowButton& shadowButton);
 
   /**
    * Downcast
    */
-  static ShadowButton DownCast( BaseHandle handle );
+  static ShadowButton DownCast(BaseHandle handle);
 
 public: // API
-
   /**
    * @brief Set the button to be active or inactive.
    *
    * The button will perform a transition if there is a state change.
    * @param[in] active The active state
    */
-  void SetActiveState( bool active );
+  void SetActiveState(bool active);
 
   /**
    * @brief Get the button's active state
@@ -124,7 +121,7 @@ public: // API
    * Set the check state
    * @param[in] checkState The state of the checkbox
    */
-  void SetCheckState( bool checkState );
+  void SetCheckState(bool checkState);
 
   /**
    * Get the check state
@@ -136,12 +133,12 @@ public: // Not for public use
   /**
    * Create a handle from an implementation
    */
-  ShadowButton( Internal::ShadowButton& implementation );
+  ShadowButton(Internal::ShadowButton& implementation);
 
   /**
    * Allow the creation of an ShadowButton handle from an internal CustomActor pointer
    */
-  ShadowButton( Dali::Internal::CustomActor* internal );
+  ShadowButton(Dali::Internal::CustomActor* internal);
 };
 
 } // namespace Demo