Forked para SNOCC

Dependencies:   GPS

Dependents:   SNOCC_V1 SNOCC_V2

Fork of RA8875 by SNOCC

Revision:
82:f7d300f26540
Parent:
81:01da2e34283d
Child:
83:7bad0068cca0
--- a/RA8875.h	Sun Dec 28 21:50:28 2014 +0000
+++ b/RA8875.h	Tue Dec 30 23:45:37 2014 +0000
@@ -97,6 +97,9 @@
 #define DarkBrown   (color_t)(RGB(63,63,0))
 #define DarkGray    (color_t)(RGB(63,63,63))
 
+#define min(a,b) ((a<b)?a:b)
+#define max(a,b) ((a>b)?a:b)
+
 
 //namespace SW_graphics
 //{
@@ -350,6 +353,14 @@
     ///
     RetCode_t SetLayerMode(LayerMode_T mode);
     
+    /// Get the Layer presentation mode.
+    ///
+    /// This gets the current layer mode. @see LayerMode_T.
+    ///
+    /// @returns layer mode.
+    ///
+    LayerMode_T GetLayerMode(void);
+    
     /// Set the layer transparency for each layer.
     ///
     /// Set the transparency, where the range of values is
@@ -747,6 +758,16 @@
     ///
     uint8_t getc();
     
+    
+    /// Determine if a point is within a rectangle.
+    ///
+    /// @param[in] rect is a rectangular region to use.
+    /// @param[in] p is a point to analyze to see if it is within the rect.
+    /// @returns true if p is within rect.
+    ///
+    bool Intersect(rect_t rect, point_t p);
+
+    
     /// Write a command to the display with a word of data.
     ///
     /// This is a high level command, and may invoke several primitives.
@@ -1214,7 +1235,7 @@
     /// @param[in] fillit is optional to FILL the rectangle. default is NOFILL.
     /// @returns success/failure code. @see RetCode_t.
     ///
-    RetCode_t rect(rect_t rect, color_t color, fill_t fillit);
+    RetCode_t rect(rect_t rect, color_t color, fill_t fillit = NOFILL);
     
      /// Draw a filled rectangle in the specified color
     ///