PopUp.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include <etk/types.hpp>
9 #include <ewol/debug.hpp>
10 #include <ewol/widget/Widget.hpp>
14 #include <ewol/widget/Manager.hpp>
15 
16 namespace ewol {
17  namespace widget {
18  class PopUp;
19  using PopUpShared = ememory::SharedPtr<ewol::widget::PopUp>;
20  using PopUpWeak = ememory::WeakPtr<ewol::widget::PopUp>;
24  class PopUp : public ewol::widget::Container {
25  public: // properties
29  protected:
34  PopUp();
35  void init() override;
36  public:
37  DECLARE_WIDGET_FACTORY(PopUp, "PopUp");
41  virtual ~PopUp();
42  protected:
44  protected:
45  void onDraw() override;
46  esignal::Connection m_PCH;
47 
51  void periodicCall(const ewol::event::Time& _event);
52  public:
53  void systemDraw(const ewol::DrawProperty& _displayProp) override;
54  void onRegenerateDisplay() override;
55  void onChangeSize() override;
56  bool onEventInput(const ewol::event::Input& _event) override;
57  ewol::WidgetShared getWidgetAtPos(const vec2& _pos) override;
58  protected:
59  bool onStartAnnimation(enum ewol::Widget::annimationMode _mode) override;
60  void onStopAnnimation() override;
61  protected:
62  virtual void onChangePropertyShape();
63  virtual void onChangePropertyLockExpand();
64  };
65  };
66 };
67 
void onChangeSize() override
Parent have set the size and the origin. the container need to update the subwidget property...
ewol::WidgetShared getWidgetAtPos(const vec2 &_pos) override
get the widget at the specific windows absolute position
Definition: DrawProperty.hpp:15
void systemDraw(const ewol::DrawProperty &_displayProp) override
{SYSTEM} extern interface to request a draw ... (called by the drawing thread [Android, X11, ...]) This function generate a clipping with the viewport openGL system. Like this a widget draw can not draw over an other widget
void onDraw() override
Common widget drawing function (called by the drawing thread [Android, X11, ...]) ...
bool onStartAnnimation(enum ewol::Widget::annimationMode _mode) override
Event when start the annimation.
Definition: Input.hpp:12
the Cotainer widget is a widget that have an only one subWidget
Definition: Container.hpp:21
bool onEventInput(const ewol::event::Input &_event) override
Event on an input of this Widget (finger, mouse, stilet)
eproperty::Value< bool > propertyCloseOutEvent
ratio progression of a sliding
Definition: PopUp.hpp:28
void onStopAnnimation() override
Event when Stop the annimation.
eproperty::Value< std::string > propertyShape
Compositing theme.
Definition: PopUp.hpp:26
Definition: Time.hpp:14
esignal::Connection m_PCH
Periodic call handle to remove it when needed.
Definition: PopUp.hpp:46
void periodicCall(const ewol::event::Time &_event)
Periodic call to update grapgic display.
eproperty::Value< bvec2 > propertyLockExpand
Lock the expend of the sub widget to this one == > this permit to limit bigger subWidget.
Definition: PopUp.hpp:27
Definition: Area.hpp:16
void onRegenerateDisplay() override
Event generated when a redraw is needed.
Definition: PopUp.hpp:24
virtual ~PopUp()
Destructor.
ewol::compositing::Shaper m_shaper
Compositing theme.
Definition: PopUp.hpp:43
the Shaper system is a basic theme configuration for every widget, it corespond at a background displ...
Definition: Shaper.hpp:39
PopUp()
Constructor.