mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 21:31:40 +08:00
Updated NxWM widgets, several NX, NxWidgets, and NxWM bug fixes
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4699 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -189,10 +189,6 @@ CNxWidget::CNxWidget(CWidgetControl *pWidgetControl,
|
||||
m_lastClickY = 0;
|
||||
m_doubleClickBounds = DOUBLE_CLICK_BOUNDS;
|
||||
|
||||
// Set other default values
|
||||
|
||||
m_refcon = 0;
|
||||
|
||||
// Set border size to 1 line
|
||||
|
||||
m_borderSize.top = 1;
|
||||
@@ -200,7 +196,6 @@ CNxWidget::CNxWidget(CWidgetControl *pWidgetControl,
|
||||
m_borderSize.bottom = 1;
|
||||
m_borderSize.left = 1;
|
||||
|
||||
m_closeType = CLOSE_TYPE_CLOSE;
|
||||
m_rectCache = new CRectCache(this);
|
||||
m_widgetEventHandlers = new CWidgetEventHandlerList(this);
|
||||
}
|
||||
@@ -506,20 +501,6 @@ TNxArray<CRect> *CNxWidget::getForegroundRegions(void)
|
||||
return m_rectCache->getForegroundRegions();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets this widget's reference constant. This should be unique,
|
||||
* at least amongst this widget's siblings.
|
||||
*
|
||||
* @param refcon The reference constant.
|
||||
*/
|
||||
|
||||
uint32_t CNxWidget::setRefcon(uint32_t refcon)
|
||||
{
|
||||
uint32_t old = m_refcon;
|
||||
m_refcon = refcon;
|
||||
return old;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets this widget's border state.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user