aboutsummaryrefslogtreecommitdiffhomepage
path: root/hyprpm/src/progress/CProgressBar.hpp
blob: 6ac18f21faa5782513c1db5180c85ea38e65cf32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include <string>

class CProgressBar {
  public:
    void        print();
    void        printMessageAbove(const std::string& msg);

    std::string m_szCurrentMessage = "";
    size_t      m_iSteps           = 0;
    size_t      m_iMaxSteps        = 0;
    float       m_fPercentage      = -1; // if != -1, use percentage

  private:
    bool m_bFirstPrint = true;
};