summaryrefslogtreecommitdiff
path: root/NxWidgets/nxwm/include/ctaskbar.hxx
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-18 23:08:34 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-18 23:08:34 +0000
commit6cf694d2da5a661373a58c70e3d8e07cc8223eed (patch)
tree8c305f903a5334c3b7b2a48830c6f63199dedfda /NxWidgets/nxwm/include/ctaskbar.hxx
parentf2307dd23f254c58cbc85bcf553ec583509a7082 (diff)
downloadnuttx-6cf694d2da5a661373a58c70e3d8e07cc8223eed.tar.gz
nuttx-6cf694d2da5a661373a58c70e3d8e07cc8223eed.tar.bz2
nuttx-6cf694d2da5a661373a58c70e3d8e07cc8223eed.zip
Final refactoring and implementation of delayed window deletion logic. Works worse now, but the changes are important and need to be checked in now
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4747 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'NxWidgets/nxwm/include/ctaskbar.hxx')
-rw-r--r--NxWidgets/nxwm/include/ctaskbar.hxx37
1 files changed, 10 insertions, 27 deletions
diff --git a/NxWidgets/nxwm/include/ctaskbar.hxx b/NxWidgets/nxwm/include/ctaskbar.hxx
index cf98d10d9..a78fb1739 100644
--- a/NxWidgets/nxwm/include/ctaskbar.hxx
+++ b/NxWidgets/nxwm/include/ctaskbar.hxx
@@ -110,12 +110,12 @@ namespace NxWM
/**
* Create a raw window.
*
- * 1) Create a dumb CWindowControl instance
- * 2) Pass the dumb CWindowControl instance to the window constructor
- * that inherits from INxWindow. This will "smarten" the CWindowControl
+ * 1) Create a dumb NXWidgets::CWidgetControl instance
+ * 2) Pass the dumb NXWidgets::CWidgetControl instance to the window constructor
+ * that inherits from INxWindow. This will "smarten" the NXWidgets::CWidgetControl
* instance with some window knowlede
* 3) Call the open() method on the window to display the window.
- * 4) After that, the fully smartened CWindowControl instance can
+ * 4) After that, the fully smartened NXWidgets::CWidgetControl instance can
* be used to generate additional widgets by passing it to the
* widget constructor
*/
@@ -398,32 +398,15 @@ namespace NxWM
void getDisplaySize(FAR struct nxgl_size_s &size);
/**
- * Simulate a mouse click on the icon at index. This inline method is only
- * used during automated testing of NxWM.
+ * Simulate a mouse click or release on the icon at index. This method
+ * is only available during automated testing of NxWM.
+ *
+ * @param index. Selects the icon in the start window
+ * @param click. True to click and false to release
*/
#if defined(CONFIG_NXWM_UNITTEST) && !defined(CONFIG_NXWM_TOUCHSCREEN)
- inline void clickIcon(int index)
- {
- if (index < m_slots.size())
- {
- // Get the image widget at this index
-
- NXWidgets::CImage *image = m_slots.at(index).image;
-
- // Get the size and position of the widget
-
- struct nxgl_size_s imageSize;
- image->getSize(imageSize);
-
- struct nxgl_point_s imagePos;
- image->getPos(imagePos);
-
- // And click the image at its center
-
- image->click(imagePos.x + (imageSize.w >> 1), imagePos.y + (imageSize.h >> 1));
- }
- }
+ void clickIcon(int index, bool click);
#endif
};
}