summaryrefslogtreecommitdiff
path: root/NxWidgets/libnxwidgets/include/cnxwidget.hxx
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-15 16:40:43 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-15 16:40:43 +0000
commit91e38a73cd93af894ecaf44476ae8e6313670cb5 (patch)
treecb7832604175934e7af73bad5da00c0581f4fbef /NxWidgets/libnxwidgets/include/cnxwidget.hxx
parentdf1d64bd97cfc3039c113a258af134da6e6ba742 (diff)
downloadpx4-nuttx-91e38a73cd93af894ecaf44476ae8e6313670cb5.tar.gz
px4-nuttx-91e38a73cd93af894ecaf44476ae8e6313670cb5.tar.bz2
px4-nuttx-91e38a73cd93af894ecaf44476ae8e6313670cb5.zip
NxWidgets: New pre-release event. Action now raised on pre-release. NxWM: Use action event to process icon touches; Fix initialization of image highlighted state.
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4740 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'NxWidgets/libnxwidgets/include/cnxwidget.hxx')
-rw-r--r--NxWidgets/libnxwidgets/include/cnxwidget.hxx17
1 files changed, 14 insertions, 3 deletions
diff --git a/NxWidgets/libnxwidgets/include/cnxwidget.hxx b/NxWidgets/libnxwidgets/include/cnxwidget.hxx
index 38a66d155..2ca055c1c 100644
--- a/NxWidgets/libnxwidgets/include/cnxwidget.hxx
+++ b/NxWidgets/libnxwidgets/include/cnxwidget.hxx
@@ -296,9 +296,20 @@ namespace NXWidgets
virtual inline void onDoubleClick(nxgl_coord_t x, nxgl_coord_t y) { }
/**
- * Called when the widget is released. Override this when
- * creating new widgets if the widget should exhibit additional
- * behaviour when it is released.
+ * Called just before the widget is released; the widget will be in the
+ * clicked stated. Override this when creating new widgets if the
+ * widget should exhibit additional behaviour when it is released.
+ *
+ * @param x The x coordinate of the mouse when released.
+ * @param y The y coordinate of the mouse when released.
+ */
+
+ virtual inline void onPreRelease(nxgl_coord_t x, nxgl_coord_t y) { }
+
+ /**
+ * Called just after the widget is released; the widget will be in the
+ * released stated. Override this when creating new widgets if the
+ * widget should exhibit additional behaviour when it is released.
*
* @param x The x coordinate of the mouse when released.
* @param y The y coordinate of the mouse when released.