aboutsummaryrefslogtreecommitdiff
path: root/lib/gui/ewidget.h
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-05-05 00:21:47 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-05-05 00:21:47 +0000
commitd73219bf587818d7648531da574beb45f6e3c000 (patch)
tree262844c4db7b098019dc3311bb7ffed26f8c73e4 /lib/gui/ewidget.h
parent9bca94aa8cb237f134d4dc5707ce9df229fdbfd3 (diff)
downloadenigma2-d73219bf587818d7648531da574beb45f6e3c000.tar.gz
enigma2-d73219bf587818d7648531da574beb45f6e3c000.zip
add optional notification of childs when parent moves
Diffstat (limited to 'lib/gui/ewidget.h')
-rw-r--r--lib/gui/ewidget.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/gui/ewidget.h b/lib/gui/ewidget.h
index 4175eae7..22f5103b 100644
--- a/lib/gui/ewidget.h
+++ b/lib/gui/ewidget.h
@@ -82,7 +82,7 @@ private:
eWidget *m_current_focus, *m_focus_owner;
int m_z_position;
-
+ int m_notify_child_on_position_change;
protected:
virtual ~eWidget();
void mayKillFocus();
@@ -99,6 +99,8 @@ public:
evtChangedPosition,
evtChangedSize,
+ evtParentChangedPosition,
+
evtWillShow,
evtWillHide,
evtWillChangePosition, /* new size is eRect *data */
@@ -113,6 +115,9 @@ public:
};
virtual int event(int event, void *data = 0, void *data2 = 0);
void setFocus(eWidget *focus);
+
+ /* enable this if you need the absolute position of the widget */
+ void setPositionNotifyChild(int n) { m_notify_child_on_position_change = 1; }
};
extern eWidgetDesktop *getDesktop(int which);