mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
27 lines
No EOL
571 B
C++
27 lines
No EOL
571 B
C++
#ifndef APP_BROWSER_MAIN_TAB_PAGE_PROGRESSBAR_HPP
|
|
#define APP_BROWSER_MAIN_TAB_PAGE_PROGRESSBAR_HPP
|
|
|
|
#include <glibmm/main.h>
|
|
#include <gtkmm/progressbar.h>
|
|
|
|
namespace app::browser::main::tab::page
|
|
{
|
|
class Progressbar : public Gtk::ProgressBar
|
|
{
|
|
const int MARGIN = 2;
|
|
const double PULSE_STEP = .1;
|
|
const int ANIMATION_TIME = 10;
|
|
|
|
double progress = 0;
|
|
|
|
public:
|
|
|
|
Progressbar();
|
|
|
|
void refresh(
|
|
double fraction
|
|
);
|
|
};
|
|
}
|
|
|
|
#endif // APP_BROWSER_MAIN_TAB_PAGE_PROGRESSBAR_HPP
|