1
1
/* ***************************************************************************
2
2
* NxWidgets/nxwm/include/cnxtaskbar.hxx
3
3
*
4
- * Copyright (C) 2012 Gregory Nutt. All rights reserved.
4
+ * Copyright (C) 2012-2013 Gregory Nutt. All rights reserved.
5
5
* Author: Gregory Nutt <[email protected] >
6
6
*
7
7
* Redistribution and use in source and binary forms, with or without
@@ -89,7 +89,7 @@ namespace NxWM
89
89
/* *
90
90
* This structure represents an application and its associated icon image
91
91
*/
92
-
92
+
93
93
struct STaskbarSlot
94
94
{
95
95
IApplication *app; /* *< A reference to the icon */
@@ -108,7 +108,7 @@ namespace NxWM
108
108
bool m_started; /* *< True if window manager has been started */
109
109
110
110
/* *
111
- * Create a raw window.
111
+ * Create a raw window.
112
112
*
113
113
* 1) Create a dumb NXWidgets::CWidgetControl instance (See not).
114
114
* 2) Pass the dumb NXWidgets::CWindowMessenger instance to the window constructor
@@ -134,7 +134,7 @@ namespace NxWM
134
134
*
135
135
* @return A partially initialized application window instance.
136
136
*/
137
-
137
+
138
138
NXWidgets::CNxTkWindow *openFramedWindow (void );
139
139
140
140
/* *
@@ -155,15 +155,15 @@ namespace NxWM
155
155
virtual bool createTaskbarWindow (void );
156
156
157
157
/* *
158
- * Create the background window.
158
+ * Create the background window.
159
159
*
160
160
* @return true on success
161
161
*/
162
162
163
163
virtual bool createBackgroundWindow (void );
164
164
165
165
/* *
166
- * Create the background image.
166
+ * Create the background image.
167
167
*
168
168
* @return true on success
169
169
*/
@@ -247,7 +247,7 @@ namespace NxWM
247
247
/* *
248
248
* Connect to the server
249
249
*/
250
-
250
+
251
251
bool connect (void );
252
252
253
253
/* *
@@ -409,7 +409,15 @@ namespace NxWM
409
409
*/
410
410
411
411
void getDisplaySize (FAR struct nxgl_size_s &size);
412
-
412
+
413
+ /* *
414
+ * Force a redraw of the taskbar and current application.
415
+ * This should only be necessary if the display loses state due to e.g. powerdown
416
+ * or other manual intervention.
417
+ */
418
+
419
+ inline void redraw () { redrawTopApplication (); }
420
+
413
421
/* *
414
422
* Simulate a mouse click or release on the icon at index. This method
415
423
* is only available during automated testing of NxWM.
0 commit comments