summaryrefslogtreecommitdiff
path: root/NxWidgets/libnxwidgets/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-02 22:03:05 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-02 22:03:05 +0000
commit4b489525b44d49fa0f8cb95733dd0fdf4553c884 (patch)
tree8773aca5097c9c4fd1006bf1e35685c55619ce17 /NxWidgets/libnxwidgets/include
parent5ebf11ee63f1baaf070fd8484d99362810cd5bcc (diff)
downloadnuttx-4b489525b44d49fa0f8cb95733dd0fdf4553c884.tar.gz
nuttx-4b489525b44d49fa0f8cb95733dd0fdf4553c884.tar.bz2
nuttx-4b489525b44d49fa0f8cb95733dd0fdf4553c884.zip
NxWM updates (with some NX and NxWidget fixes too)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4689 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'NxWidgets/libnxwidgets/include')
-rw-r--r--NxWidgets/libnxwidgets/include/cnxtkwindow.hxx5
-rw-r--r--NxWidgets/libnxwidgets/include/cnxwidget.hxx35
2 files changed, 38 insertions, 2 deletions
diff --git a/NxWidgets/libnxwidgets/include/cnxtkwindow.hxx b/NxWidgets/libnxwidgets/include/cnxtkwindow.hxx
index b6915a6c1..32d634182 100644
--- a/NxWidgets/libnxwidgets/include/cnxtkwindow.hxx
+++ b/NxWidgets/libnxwidgets/include/cnxtkwindow.hxx
@@ -139,8 +139,9 @@ namespace NXWidgets
CWidgetControl *getWidgetControl(void) const;
/**
- * Open a toolbar on the framed window. Toolbar creation is separate
- * from object instantion so that errors can be reported
+ * Open a toolbar on the framed window. This method both instantiates
+ * the toolbar object AND calls the INxWindow::open() method to
+ * create the toolbar. The toolbar is ready for use upon return.
*
* @return True if the toolbar was successfully created.
*/
diff --git a/NxWidgets/libnxwidgets/include/cnxwidget.hxx b/NxWidgets/libnxwidgets/include/cnxwidget.hxx
index eb1b18710..f46c2e73a 100644
--- a/NxWidgets/libnxwidgets/include/cnxwidget.hxx
+++ b/NxWidgets/libnxwidgets/include/cnxwidget.hxx
@@ -695,6 +695,41 @@ namespace NXWidgets
return m_rect.getHeight();
}
+ /**
+ * Get the size of the widget
+ *
+ * @return The widgets's size
+ */
+
+ inline void getSize(struct nxgl_size_s &size) const
+ {
+ size.h = m_rect.getHeight();
+ size.w = m_rect.getWidth();
+ }
+
+ /**
+ * Get the position of the widget
+ *
+ * @return The widgets's position
+ */
+
+ inline void getPos(struct nxgl_point_s &pos) const
+ {
+ pos.x = m_rect.getX();
+ pos.y = m_rect.getY();
+ }
+
+ /**
+ * Get the window bounding box in physical display coordinated.
+ *
+ * @return This function returns the window handle.
+ */
+
+ inline CRect getBoundingBox(void)
+ {
+ return CRect(m_rect);
+ }
+
/**
* Get the dimensions of the border
*