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