Baseline for testing

Revision:
3:8395f7ab6d3e
Parent:
2:2654dc659298
--- a/Selection.h	Tue Mar 05 21:24:37 2013 +0000
+++ b/Selection.h	Thu Jul 25 00:42:49 2019 +0000
@@ -5,17 +5,28 @@
 
 class Menu; 
 
+typedef  void (*Selection_Callback)(void* obj);
+
 class Selection {
     private:
         
     public:
-        void (*fun)();   // pointer to a function to execute 
+    
+        Selection_Callback callback;   // pointer to a function to execute 
+        
         char* selText;   // selection text
+        
         int pos;         // selection position
+        
         Menu *childMenu; 
         
-        Selection(void (*)(), int, Menu *, char *); 
+        Selection( Selection_Callback callback, int, Menu *, char * text); 
+        
+        virtual void select();
+        
+        virtual char * getText () { return selText; }
          
 };
 
+
 #endif 
\ No newline at end of file