libscratchcpp
A library for C++ based Scratch project players
Loading...
Searching...
No Matches
istacktimer.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2
3#pragma once
4
5#include "global.h"
6
7namespace libscratchcpp
8{
9
16{
17 public:
18 virtual ~IStackTimer() { }
19
21 virtual void start(double seconds) = 0;
22
24 virtual void stop() = 0;
25
27 virtual bool stopped() const = 0;
28
30 virtual bool elapsed() const = 0;
31
33 virtual double elapsedTime() const = 0;
34};
35
36} // namespace libscratchcpp
The IStackTimer interface represents a timer that can be used by blocks.
Definition istacktimer.h:16
virtual void start(double seconds)=0
virtual double elapsedTime() const =0
virtual bool elapsed() const =0
virtual bool stopped() const =0
virtual ~IStackTimer()
Definition istacktimer.h:18
#define LIBSCRATCHCPP_EXPORT
Definition global.h:17
The main namespace of the library.
Definition asset.h:10