Author: jbevain
Date: 2007-12-04 11:11:47 -0500 (Tue, 04 Dec 2007)
New Revision: 90690

Modified:
   trunk/moon/src/ChangeLog
   trunk/moon/src/stylus.cpp
   trunk/moon/src/stylus.h
Log:
2007-12-04  Jb Evain  <[EMAIL PROTECTED]>

        * stylus.cpp|h: add stylus_info_get_current function.
        Right now, it's an hack which always return a StylusInfo
        of type Mouse, not inverted.



Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog    2007-12-04 16:06:26 UTC (rev 90689)
+++ trunk/moon/src/ChangeLog    2007-12-04 16:11:47 UTC (rev 90690)
@@ -1,3 +1,9 @@
+2007-12-04  Jb Evain  <[EMAIL PROTECTED]>
+
+       * stylus.cpp|h: add stylus_info_get_current function.
+       Right now, it's an hack which always return a StylusInfo
+       of type Mouse, not inverted.
+
 2007-12-03  Chris Toshok  <[EMAIL PROTECTED]>
 
        * clock.h, clock.cpp: rename ClampTimeToDuration to ClampTime, as

Modified: trunk/moon/src/stylus.cpp
===================================================================
--- trunk/moon/src/stylus.cpp   2007-12-04 16:06:26 UTC (rev 90689)
+++ trunk/moon/src/stylus.cpp   2007-12-04 16:11:47 UTC (rev 90690)
@@ -49,7 +49,17 @@
        stylus_info->SetValue (StylusInfo::IsInvertedProperty, Value 
(inverted));
 }
 
+StylusInfo *
+stylus_info_get_current ()
+{
+       // HACK: return only a mouse not inverted for now.
 
+       StylusInfo *info = new StylusInfo ();
+       stylus_info_set_device_type (info, TabletDeviceTypeMouse);
+       stylus_info_set_inverted (info, false);
+       return info;
+}
+
 StylusPoint*
 stylus_point_new ()
 {

Modified: trunk/moon/src/stylus.h
===================================================================
--- trunk/moon/src/stylus.h     2007-12-04 16:06:26 UTC (rev 90689)
+++ trunk/moon/src/stylus.h     2007-12-04 16:11:47 UTC (rev 90690)
@@ -24,7 +24,6 @@
        TabletDeviceTypeTouch
 } TabletDeviceType;
 
-
 class StylusInfo : public DependencyObject {
  public:
        StylusInfo () { }
@@ -42,6 +41,7 @@
 bool   stylus_info_get_inverted        (StylusInfo* stylus_info);
 void   stylus_info_set_inverted        (StylusInfo* stylus_info, bool 
inverted);
 
+StylusInfo *stylus_info_get_current ();
 
 class StylusPoint : public DependencyObject {
  public:

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to