IProgressBar.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include <ionCore.h>
5 
6 
7 namespace ion
8 {
9 
11  {
12 
13  public:
14 
15  class CTask
16  {
17 
18  friend class IProgressBar;
19 
20  public:
21 
22  void Update(float const progress);
23  void Update(double const progress);
24 
25  protected:
26 
27  CTask(IProgressBar * ProgressBar, float const value, float const start);
28 
30  float Value, Start, Progress;
31 
32  };
33 
34  void BeginProgress();
35  void SetProgress(float const progress);
36  void SetProgress(double const progress);
37  void EndProgress();
38 
39  CTask * NewTask(float const value);
40 
41  protected:
42 
43  IProgressBar();
44 
45  virtual void Start() = 0;
46  virtual void Render() = 0;
47  virtual void Finish() = 0;
48 
49  float Progress;
50  bool Started;
51 
52  };
53 
54 }
float Progress
Definition: IProgressBar.h:30
friend class IProgressBar
Definition: IProgressBar.h:18
void BeginProgress()
Definition: IProgressBar.cpp:32
IProgressBar * ProgressBar
Definition: IProgressBar.h:29
float Value
Definition: IProgressBar.h:30
void SetProgress(float const progress)
Definition: IProgressBar.cpp:45
Definition: CCatmullRomAdvancedSplineInterpolator.h:7
void EndProgress()
Definition: IProgressBar.cpp:57
bool Started
Definition: IProgressBar.h:50
float Progress
Definition: IProgressBar.h:49
CTask(IProgressBar *ProgressBar, float const value, float const start)
Definition: IProgressBar.cpp:22
virtual void Render()=0
float Start
Definition: IProgressBar.h:30
virtual void Finish()=0
void Update(float const progress)
Definition: IProgressBar.cpp:13
Definition: IProgressBar.h:15
CTask * NewTask(float const value)
Definition: IProgressBar.cpp:66
Definition: IProgressBar.h:10