NxWM::CTaskbar: Add a method to redraw the task bar and the top application. From Petteri Aimonen

This commit is contained in:
Gregory Nutt 2013-06-04 08:11:45 -06:00
parent a6a07f3e45
commit 981a0b1a78
3 changed files with 21 additions and 9 deletions

View File

@ -374,4 +374,8 @@
* NxWidgets::CNumericEdit: Delay before auto-incrementing now varies:
A longer delay is required to start auto-incrementing and speed increases
while pressed. From Petteri Aimonen (2013-6-4).
* NxWM::CTaskbar: Add a method to redraw the taskbar and the current
application. This should only be necessary if the display loses
state due to e.g. powerdown or other manual intervention. From
Petteri Aimonen (2013-6-4).

View File

@ -1,7 +1,7 @@
/****************************************************************************
* NxWidgets/libnxwidgets/include/cnumericedit.cxx
*
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
* Copyright (C) 2012-2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
* Petteri Aimonen <jpa@kapsi.fi>
*

View File

@ -1,7 +1,7 @@
/****************************************************************************
* NxWidgets/nxwm/include/cnxtaskbar.hxx
*
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
* Copyright (C) 2012-2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@ -410,6 +410,14 @@ namespace NxWM
void getDisplaySize(FAR struct nxgl_size_s &size);
/**
* Force a redraw of the taskbar and current application.
* This should only be necessary if the display loses state due to e.g. powerdown
* or other manual intervention.
*/
inline void redraw() { redrawTopApplication(); }
/**
* Simulate a mouse click or release on the icon at index. This method
* is only available during automated testing of NxWM.