summaryrefslogtreecommitdiff
path: root/NxWidgets/libnxwidgets/src/cwidgetcontrol.cxx
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-07 22:49:27 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-07 22:49:27 +0000
commitf1954ba315f940c46402865763164bceb7537710 (patch)
treebdca666857e53cd34c4869880ffd4e8bd39c5d31 /NxWidgets/libnxwidgets/src/cwidgetcontrol.cxx
parent9bc51533db436502b50aaa0014aa272576968df2 (diff)
downloadnuttx-f1954ba315f940c46402865763164bceb7537710.tar.gz
nuttx-f1954ba315f940c46402865763164bceb7537710.tar.bz2
nuttx-f1954ba315f940c46402865763164bceb7537710.zip
Big NxWidgets simplification. Remove all hierarch logic. Widgets now exist only in a two-dimensional plane
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4712 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'NxWidgets/libnxwidgets/src/cwidgetcontrol.cxx')
-rw-r--r--NxWidgets/libnxwidgets/src/cwidgetcontrol.cxx39
1 files changed, 0 insertions, 39 deletions
diff --git a/NxWidgets/libnxwidgets/src/cwidgetcontrol.cxx b/NxWidgets/libnxwidgets/src/cwidgetcontrol.cxx
index afd17e6e2..9c0d67be3 100644
--- a/NxWidgets/libnxwidgets/src/cwidgetcontrol.cxx
+++ b/NxWidgets/libnxwidgets/src/cwidgetcontrol.cxx
@@ -291,44 +291,6 @@ const int CWidgetControl::getWidgetIndex(const CNxWidget *widget) const
}
/**
- * Redraws any dirty regions within the supplied region.
- *
- * @param rect The region to redraw
- */
-
-void CWidgetControl::eraseRect(CRect rect)
-{
- // Create pointer to a vector to store the invalid rectangles
-
- TNxArray<CRect> *invalidRectangles = new TNxArray<CRect>();
-
- if (invalidRectangles != (TNxArray<CRect> *)NULL)
- {
- // Add rectangle into the vector
-
- invalidRectangles->push_back(rect);
-
- // Refresh children
-
- for (int i = m_widgets.size() - 1; i > -1 ; i--)
- {
- if (invalidRectangles->size() > 0)
- {
- m_widgets[i]->redrawDirty(invalidRectangles, (CNxWidget *)NULL);
- }
- else
- {
- break;
- }
- }
-
- // Tidy up
-
- delete invalidRectangles;
- }
-}
-
-/**
* Remove a controlled widget
*
* @param widget The widget to be removed
@@ -477,7 +439,6 @@ void CWidgetControl::redrawEvent(FAR const struct nxgl_rect_s *nxRect, bool more
{
CRect rect;
rect.setNxRect(nxRect);
- eraseRect(rect);
}
/**