Exemple #1
0
 public ManipulationStartingEventArgs(object source, RoutedEvent ev, Visual container)
     : this(CreateHelper(source, ev, container), true)
 {
 }
Exemple #2
0
        private static IntPtr CreateHelper(object source, RoutedEvent ev, Visual container)
        {
            IntPtr ret = NoesisGUI_PINVOKE.ManipulationStartingEventArgs_CreateHelper(Noesis.Extend.GetInstanceHandle(source), RoutedEvent.getCPtr(ev), Visual.getCPtr(container));

            return(ret);
        }
        public bool IsDescendantOf(Visual visual)
        {
            bool ret = NoesisGUI_PINVOKE.Visual_IsDescendantOf(swigCPtr, Visual.getCPtr(visual));

            return(ret);
        }
        public Visual FindCommonVisualAncestor(Visual visual)
        {
            IntPtr cPtr = NoesisGUI_PINVOKE.Visual_FindCommonVisualAncestor(swigCPtr, Visual.getCPtr(visual));

            return((Visual)Noesis.Extend.GetProxy(cPtr, false));
        }
 internal static HandleRef getCPtr(Visual obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
        public bool IsAncestorOf(Visual visual)
        {
            bool ret = NoesisGUI_PINVOKE.Visual_IsAncestorOf(swigCPtr, Visual.getCPtr(visual));

            return(ret);
        }
Exemple #7
0
 private static void HitTestCallbackHelper(Visual reference, Point point, int callbacksId, Callback_HitTestFilter filter, Callback_HitTestResult result)
 {
     VisualTreeHelper_HitTestCallback(Visual.getCPtr(reference), ref point, callbacksId, filter, result);
 }
Exemple #8
0
     public ManipulationStartingEventArgs(object s, RoutedEvent e, Visual manipulationContainer) : this(NoesisGUI_PINVOKE.new_ManipulationStartingEventArgs(Noesis.Extend.GetInstanceHandle(s), RoutedEvent.getCPtr(e), Visual.getCPtr(manipulationContainer)), true)
     {
 #if UNITY_EDITOR || NOESIS_API
         if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
         {
             throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
         }
 #endif
     }
Exemple #9
0
        private static HitTestResult HitTestHelper(Visual reference, Point point)
        {
            HitTestResult ret = new HitTestResult(NoesisGUI_PINVOKE.VisualTreeHelper_HitTestHelper(Visual.getCPtr(reference), ref point), true);

            return(ret);
        }
Exemple #10
0
 public static HitTestResult HitTest(Visual reference, Point point)
 {
     return(HitTestHelper(reference, point));
 }
Exemple #11
0
        public static Geometry GetClip(Visual visual)
        {
            IntPtr cPtr = NoesisGUI_PINVOKE.VisualTreeHelper_GetClip(Visual.getCPtr(visual));

            return((Geometry)Noesis.Extend.GetProxy(cPtr, false));
        }
Exemple #12
0
     public ManipulationDeltaEventArgs(object s, RoutedEvent e, Visual manipulationContainer, Point manipulationOrigin, ManipulationDelta deltaManipulation, ManipulationDelta cumulativeManipulation, ManipulationVelocities velocities, bool isInertial) : this(NoesisGUI_PINVOKE.new_ManipulationDeltaEventArgs(Noesis.Extend.GetInstanceHandle(s), RoutedEvent.getCPtr(e), Visual.getCPtr(manipulationContainer), ref manipulationOrigin, ManipulationDelta.getCPtr(deltaManipulation), ManipulationDelta.getCPtr(cumulativeManipulation), ManipulationVelocities.getCPtr(velocities), isInertial), true)
     {
 #if UNITY_EDITOR || NOESIS_API
         if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
         {
             throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
         }
 #endif
     }
 public ManipulationCompletedEventArgs(object source, RoutedEvent ev, Visual container, Point origin,
                                       ManipulationVelocities velocities, ManipulationDelta totalManipulation, bool isInertial)
     : this(CreateHelper(source, ev, container, origin, velocities, totalManipulation, isInertial), true)
 {
 }
        private static IntPtr CreateHelper(object source, RoutedEvent ev, Visual container, Point origin, ManipulationVelocities velocities, ManipulationDelta totalManipulation, bool isInertial)
        {
            IntPtr ret = NoesisGUI_PINVOKE.ManipulationCompletedEventArgs_CreateHelper(Noesis.Extend.GetInstanceHandle(source), RoutedEvent.getCPtr(ev), Visual.getCPtr(container), ref origin, ManipulationVelocities.getCPtr(velocities), ManipulationDelta.getCPtr(totalManipulation), isInertial);

            return(ret);
        }
 public ManipulationStartedEventArgs(object s, RoutedEvent e, Visual manipulationContainer, Point manipulationOrigin) : this(NoesisGUI_PINVOKE.new_ManipulationStartedEventArgs(Noesis.Extend.GetInstanceHandle(s), RoutedEvent.getCPtr(e), Visual.getCPtr(manipulationContainer), ref manipulationOrigin), true)
 {
 }