friend class eWidgetDesktop;
public:
eWidget(eWidget *parent);
-
+ virtual ~eWidget();
+
void move(ePoint pos);
void resize(eSize size);
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);
int m_z_position;
int m_notify_child_on_position_change;
protected:
- virtual ~eWidget();
void mayKillFocus();
public:
evtParentChangedPosition,
- evtWillShow,
- evtWillHide,
+ evtParentVisibilityChanged,
evtWillChangePosition, /* new size is eRect *data */
evtWillChangeSize,
/* 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);