ProgressBar.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include <etk/types.hpp>
9 #include <etk/Color.hpp>
10 #include <ewol/debug.hpp>
11 #include <ewol/widget/Widget.hpp>
13 #include <ewol/widget/Manager.hpp>
14 
15 namespace ewol {
16  namespace widget {
17  class ProgressBar;
18  using ProgressBarShared = ememory::SharedPtr<ewol::widget::ProgressBar>;
19  using ProgressBarWeak = ememory::WeakPtr<ewol::widget::ProgressBar>;
23  class ProgressBar : public ewol::Widget {
24  public: // properties
29  protected:
30  ProgressBar();
31  void init() override;
32  public:
33  DECLARE_WIDGET_FACTORY(ProgressBar, "ProgressBar");
34  virtual ~ProgressBar();
35  private:
36  ewol::compositing::Drawing m_draw; // basic drawing element
37  protected:
38  void onDraw() override;
39  public:
40  void onRegenerateDisplay() override;
41  void calculateMinMaxSize() override;
42  protected:
43  virtual void onChangePropertyValue();
44  virtual void onChangePropertyTextColorFg();
45  virtual void onChangePropertyTextColorBgOn();
46  virtual void onChangePropertyTextColorBgOff();
47  };
48  };
49 };
50 
eproperty::Value< etk::Color<> > propertyTextColorFg
forder bar color
Definition: ProgressBar.hpp:26
Definition: Drawing.hpp:17
eproperty::Range< float > propertyValue
% used
Definition: ProgressBar.hpp:25
void calculateMinMaxSize() override
calculate the minimum and maximum size (need to estimate expend properties of the widget) ...
Definition: Area.hpp:16
eproperty::Value< etk::Color<> > propertyTextColorBgOn
bar color enable
Definition: ProgressBar.hpp:27
void onRegenerateDisplay() override
Event generated when a redraw is needed.
void onDraw() override
Common widget drawing function (called by the drawing thread [Android, X11, ...]) ...
Widget class is the main widget interface, it hase some generic properties: :** known his parent :** ...
Definition: Widget.hpp:73
eproperty::Value< etk::Color<> > propertyTextColorBgOff
bar color disable
Definition: ProgressBar.hpp:28
Definition: ProgressBar.hpp:23