mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 06:33:34 +08:00
NxWidgets: New pre-release event. Action now raised on pre-release. NxWM: Use action event to process icon touches; Fix initialization of image highlighted state.
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4740 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -546,7 +546,19 @@ void CButtonArray::onClick(nxgl_coord_t x, nxgl_coord_t y)
|
||||
}
|
||||
|
||||
/**
|
||||
* Raises an action event and redraws the button.
|
||||
* Raises an action.
|
||||
*
|
||||
* @param x The x coordinate of the mouse.
|
||||
* @param y The y coordinate of the mouse.
|
||||
*/
|
||||
|
||||
void CButtonArray::onPreRelease(nxgl_coord_t x, nxgl_coord_t y)
|
||||
{
|
||||
m_widgetEventHandlers->raiseActionEvent();
|
||||
}
|
||||
|
||||
/**
|
||||
* Redraws the button.
|
||||
*
|
||||
* @param x The x coordinate of the mouse.
|
||||
* @param y The y coordinate of the mouse.
|
||||
@@ -554,8 +566,6 @@ void CButtonArray::onClick(nxgl_coord_t x, nxgl_coord_t y)
|
||||
|
||||
void CButtonArray::onRelease(nxgl_coord_t x, nxgl_coord_t y)
|
||||
{
|
||||
m_widgetEventHandlers->raiseActionEvent();
|
||||
|
||||
// Redraw only the button that was released
|
||||
|
||||
m_redrawButton = true;
|
||||
|
||||
Reference in New Issue
Block a user