Updated demos to use DALi clang-format
[platform/core/uifw/dali-demo.git] / examples / visual-transitions / beat-control.h
index f0e6e00..b488d67 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_DEMO_BEAT_CONTROL_H
 
 /*
- * Copyright (c) 2016 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 Demo
 {
-
 namespace Internal
 {
 // All type registered types need to have the same name for the body and the handle
 class BeatControl;
-}
+} // namespace Internal
 
 /**
  * Control that allows the RGB channels of an image to be altered.
@@ -40,10 +39,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
@@ -59,7 +58,6 @@ public:
   };
 
 public: // Construction / destruction
-
   /**
    * Create an uninitialized handle
    */
@@ -74,7 +72,7 @@ public: // Construction / destruction
   /**
    * Create a new image channel control from a given URL
    */
-  static BeatControl New( const std::string& url );
+  static BeatControl New(const std::string& url);
 
   /**
    * Destructor. This is non-virtual since derived Handle types must not
@@ -85,20 +83,19 @@ public: // Construction / destruction
   /**
    * Copy Constructor
    */
-  BeatControl( const BeatControl& beatControl );
+  BeatControl(const BeatControl& beatControl);
 
   /**
    * Assignment Operator
    */
-  BeatControl& operator=( const BeatControl& beatControl );
+  BeatControl& operator=(const BeatControl& beatControl);
 
   /**
    * Downcast
    */
-  static BeatControl DownCast( BaseHandle handle );
+  static BeatControl DownCast(BaseHandle handle);
 
 public: // API
-
   void StartBounceAnimation();
 
   void StartXAnimation();
@@ -111,12 +108,12 @@ public: // Not for public use
   /**
    * Create a handle from an implementation
    */
-  BeatControl( Internal::BeatControl& implementation );
+  BeatControl(Internal::BeatControl& implementation);
 
   /**
    * Allow the creation of an BeatControl handle from an internal CustomActor pointer
    */
-  BeatControl( Dali::Internal::CustomActor* internal );
+  BeatControl(Dali::Internal::CustomActor* internal);
 };
 
 } // namespace Demo