convert About screen to source/renderer system. Change names a bit, add enigma versio...
[enigma2.git] / lib / gui / ewidget.h
index 22f5103b0a87cb5071f70f779c72a9a42f892722..a028006cdeb859739bfe361d29ff818c94e3f25b 100644 (file)
@@ -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<eWindowStyle> &style) { if (!m_style) return 1; style = m_style; return 0; }
+       SWIG_VOID(int) getStyle(ePtr<eWindowStyle> &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);