X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/d73219bf587818d7648531da574beb45f6e3c000..67ea9ad86c87e61ff57ec78403f43fde0ceb7632:/lib/gui/ewidget.h diff --git a/lib/gui/ewidget.h b/lib/gui/ewidget.h index 22f5103b..a028006c 100644 --- a/lib/gui/ewidget.h +++ b/lib/gui/ewidget.h @@ -13,7 +13,8 @@ class eWidget friend class eWidgetDesktop; public: eWidget(eWidget *parent); - + virtual ~eWidget(); + void move(ePoint pos); void resize(eSize size); @@ -33,7 +34,7 @@ public: void destruct(); - int getStyle(ePtr &style) { if (!m_style) return 1; style = m_style; return 0; } + SWIG_VOID(int) getStyle(ePtr &SWIG_NAMED_OUTPUT(style)) { if (!m_style) return 1; style = m_style; return 0; } void setStyle(eWindowStyle *style) { m_style = style; } void setBackgroundColor(const gRGB &col); @@ -84,7 +85,6 @@ private: int m_z_position; int m_notify_child_on_position_change; protected: - virtual ~eWidget(); void mayKillFocus(); public: @@ -101,8 +101,7 @@ public: evtParentChangedPosition, - evtWillShow, - evtWillHide, + evtParentVisibilityChanged, evtWillChangePosition, /* new size is eRect *data */ evtWillChangeSize, @@ -118,6 +117,8 @@ public: /* enable this if you need the absolute position of the widget */ void setPositionNotifyChild(int n) { m_notify_child_on_position_change = 1; } + + void notifyShowHide(); }; extern eWidgetDesktop *getDesktop(int which);