summaryrefslogtreecommitdiff
path: root/NxWidgets/libnxwidgets/include/cimage.hxx
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-07-15 09:29:28 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-07-15 09:29:28 -0600
commit612dc509723bafbc28e09e1489fa21e06688be27 (patch)
tree96dc3211cece1a4739a33b65dc6d1e6ec9ea6085 /NxWidgets/libnxwidgets/include/cimage.hxx
parentc5b8bd6d3a309d7c075c59df1dbbd03218d679cb (diff)
downloadnuttx-612dc509723bafbc28e09e1489fa21e06688be27.tar.gz
nuttx-612dc509723bafbc28e09e1489fa21e06688be27.tar.bz2
nuttx-612dc509723bafbc28e09e1489fa21e06688be27.zip
NxWidgets::CStickyImage: New image class
Diffstat (limited to 'NxWidgets/libnxwidgets/include/cimage.hxx')
-rw-r--r--NxWidgets/libnxwidgets/include/cimage.hxx25
1 files changed, 23 insertions, 2 deletions
diff --git a/NxWidgets/libnxwidgets/include/cimage.hxx b/NxWidgets/libnxwidgets/include/cimage.hxx
index 9daf9f260..e485f6d9d 100644
--- a/NxWidgets/libnxwidgets/include/cimage.hxx
+++ b/NxWidgets/libnxwidgets/include/cimage.hxx
@@ -115,13 +115,14 @@ namespace NXWidgets
/**
* Draw the area of this widget that falls within the clipping region.
- * Called by the redraw() function to draw all visible regions.
+ * Called by the drawContents(port) and by classes that inherit from
+ * CImage.
*
* @param port The CGraphicsPort to draw to.
* @see redraw()
*/
- virtual void drawContents(CGraphicsPort *port);
+ void drawContents(CGraphicsPort *port, bool selected);
/**
* Draw the area of this widget that falls within the clipping region.
@@ -131,6 +132,26 @@ namespace NXWidgets
* @see redraw()
*/
+ virtual void drawContents(CGraphicsPort *port);
+
+ /**
+ * Draw the border of this widget. Called by the indirectly via
+ * drawBoard(port) and also by classes that inherit from CImage.
+ *
+ * @param port The CGraphicsPort to draw to.
+ * @see redraw()
+ */
+
+ void drawBorder(CGraphicsPort *port, bool selected);
+
+ /**
+ * Draw the border of this widget. Called by the redraw() function to draw
+ * all visible regions.
+ *
+ * @param port The CGraphicsPort to draw to.
+ * @see redraw()
+ */
+
virtual void drawBorder(CGraphicsPort *port);
/**