Dali 3D User Interface Engine
timer.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 
18 // CLASS HEADER
19 #include <timer.h>
20 
21 // EXTERNAL INCLUDES
23 
24 // INTERNAL INCLUDES
25 #include <timer-impl.h>
26 
27 namespace Dali
28 {
29 
31 {
32 }
33 
34 Timer Timer::New( unsigned int milliSec )
35 {
37  return Timer(internal.Get());
38 }
39 
40 Timer::Timer( const Timer& timer )
41 : BaseHandle(timer)
42 {
43 }
44 
45 Timer& Timer::operator=( const Timer& timer )
46 {
47  // check self assignment
48  if( *this != timer )
49  {
50  BaseHandle::operator=(timer);
51  }
52  return *this;
53 }
54 
56 {
57 }
58 
60 {
61  return Timer( dynamic_cast<Internal::Adaptor::Timer*>( handle.GetObjectPtr() ) );
62 }
63 
65 {
67 }
68 
70 {
72 }
73 
74 void Timer::SetInterval( unsigned int interval )
75 {
76  Internal::Adaptor::GetImplementation(*this).SetInterval( interval );
77 }
78 
79 unsigned int Timer::GetInterval() const
80 {
81  return Internal::Adaptor::GetImplementation(*this).GetInterval();
82 }
83 
84 bool Timer::IsRunning() const
85 {
86  return Internal::Adaptor::GetImplementation(*this).IsRunning();
87 }
88 
90 {
91  return Internal::Adaptor::GetImplementation(*this).TickSignal();
92 }
93 
95 : BaseHandle(timer)
96 {
97 }
98 
99 
100 } // namespace Dali
Dali Docs Home
Read more about Dali