mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
implement progressbar
This commit is contained in:
parent
a5a3a5625b
commit
46e004966e
6 changed files with 118 additions and 3 deletions
28
src/app/browser/main/tab/page/progressbar.hpp
Normal file
28
src/app/browser/main/tab/page/progressbar.hpp
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#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();
|
||||
~Progressbar();
|
||||
|
||||
void set(
|
||||
double fraction
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
#endif // APP_BROWSER_MAIN_TAB_PAGE_PROGRESSBAR_HPP
|
||||
Loading…
Add table
Add a link
Reference in a new issue