summaryrefslogtreecommitdiff
path: root/NxWidgets/libnxwidgets/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-15 20:10:32 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-15 20:10:32 +0000
commit6d8337323f1d60e7845a83508d4bbd1e0318ec3b (patch)
tree51e09899dc63fadd94c36505db44c511e5483f4f /NxWidgets/libnxwidgets/include
parent91e38a73cd93af894ecaf44476ae8e6313670cb5 (diff)
downloadnuttx-6d8337323f1d60e7845a83508d4bbd1e0318ec3b.tar.gz
nuttx-6d8337323f1d60e7845a83508d4bbd1e0318ec3b.tar.bz2
nuttx-6d8337323f1d60e7845a83508d4bbd1e0318ec3b.zip
NXWidgets::CNxTkWindow must subtract the height of the toolbar (if any) when reporting the size of the window
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4741 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'NxWidgets/libnxwidgets/include')
-rw-r--r--NxWidgets/libnxwidgets/include/cnxtkwindow.hxx20
1 files changed, 11 insertions, 9 deletions
diff --git a/NxWidgets/libnxwidgets/include/cnxtkwindow.hxx b/NxWidgets/libnxwidgets/include/cnxtkwindow.hxx
index 4c379754a..8fda121a9 100644
--- a/NxWidgets/libnxwidgets/include/cnxtkwindow.hxx
+++ b/NxWidgets/libnxwidgets/include/cnxtkwindow.hxx
@@ -88,6 +88,7 @@ namespace NXWidgets
NXTKWINDOW m_hNxTkWindow; /**< Handle to the NX raw window */
CWidgetControl *m_widgetControl; /**< Controlling widget for the window */
CNxToolbar *m_toolbar; /**< Child toolbar */
+ nxgl_coord_t m_toolbarHeight; /**< The height of the toolbar */
public:
@@ -161,7 +162,8 @@ namespace NXWidgets
inline void detachToolbar(void)
{
- m_toolbar = (CNxToolbar *)NULL;
+ m_toolbar = (CNxToolbar *)NULL;
+ m_toolbarHeight = 0;
}
/**
@@ -181,7 +183,7 @@ namespace NXWidgets
* @return True on success, false on any failure.
*/
- bool getPosition(FAR struct nxgl_point_s *pPos);
+ bool getPosition(FAR struct nxgl_point_s *pos);
/**
* Get the size of the window (as reported by the NX callback).
@@ -189,25 +191,25 @@ namespace NXWidgets
* @return The size.
*/
- bool getSize(FAR struct nxgl_size_s *pSize);
+ bool getSize(FAR struct nxgl_size_s *size);
/**
* Set the position and size of the window.
*
- * @param pPos The new position of the window.
+ * @param pos The new position of the window.
* @return True on success, false on any failure.
*/
- bool setPosition(FAR const struct nxgl_point_s *pPos);
+ bool setPosition(FAR const struct nxgl_point_s *pos);
/**
* Set the size of the selected window.
*
- * @param pSize The new size of the window.
+ * @param size The new size of the window.
* @return True on success, false on any failure.
*/
- bool setSize(FAR const struct nxgl_size_s *pSize);
+ bool setSize(FAR const struct nxgl_size_s *size);
/**
* Bring the window to the top of the display.
@@ -228,13 +230,13 @@ namespace NXWidgets
/**
* Set an individual pixel in the window with the specified color.
*
- * @param pPos The location of the pixel to be filled.
+ * @param pos The location of the pixel to be filled.
* @param color The color to use in the fill.
*
* @return True on success; false on failure.
*/
- bool setPixel(FAR const struct nxgl_point_s *pPos,
+ bool setPixel(FAR const struct nxgl_point_s *pos,
nxgl_mxpixel_t color);
/**