Пример #1
0
        public static Geometry GetClip(Visual visual)
        {
            IntPtr cPtr = NoesisGUI_PINVOKE.VisualTreeHelper_GetClip(Visual.getCPtr(visual));

            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
            return((Geometry)Noesis.Extend.GetProxy(cPtr, false));
        }
Пример #2
0
        public static Visual GetChild(Visual visual, int childIndex)
        {
            IntPtr cPtr = NoesisGUI_PINVOKE.VisualTreeHelper_GetChild(Visual.getCPtr(visual), childIndex);

            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
            return((Visual)Noesis.Extend.GetProxy(cPtr, false));
        }
Пример #3
0
        public bool IsDescendantOf(Visual visual)
        {
            bool ret = NoesisGUI_PINVOKE.Visual_IsDescendantOf(swigCPtr, Visual.getCPtr(visual));

            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #4
0
        public static int GetChildrenCount(Visual visual)
        {
            int ret = NoesisGUI_PINVOKE.VisualTreeHelper_GetChildrenCount(Visual.getCPtr(visual));

            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #5
0
 public void RemoveLayer(Visual layer)
 {
     if (layer == null)
     {
         throw new ArgumentNullException("layer");
     }
     {
         NoesisGUI_PINVOKE.Visual_RemoveLayer(swigCPtr, Visual.getCPtr(layer));
     }
 }
Пример #6
0
 public static AdornerLayer GetAdornerLayer(Visual visual)
 {
     if (visual == null)
     {
         throw new ArgumentNullException("visual");
     }
     {
         IntPtr cPtr = NoesisGUI_PINVOKE.AdornerLayer_GetAdornerLayer(Visual.getCPtr(visual));
         return((AdornerLayer)Noesis.Extend.GetProxy(cPtr, false));
     }
 }
Пример #7
0
 public static Geometry GetClip(Visual visual)
 {
     if (visual == null)
     {
         throw new ArgumentNullException("visual");
     }
     {
         IntPtr cPtr = NoesisGUI_PINVOKE.VisualTreeHelper_GetClip(Visual.getCPtr(visual));
         return((Geometry)Noesis.Extend.GetProxy(cPtr, false));
     }
 }
Пример #8
0
 public bool IsDescendantOf(Visual visual)
 {
     if (visual == null)
     {
         throw new ArgumentNullException("visual");
     }
     {
         bool ret = NoesisGUI_PINVOKE.Visual_IsDescendantOf(swigCPtr, Visual.getCPtr(visual));
         return(ret);
     }
 }
        public static int GetChildrenCount(Visual visual)
        {
            int ret = NoesisGUI_PINVOKE.VisualTreeHelper_GetChildrenCount(Visual.getCPtr(visual));

    #if UNITY_EDITOR || NOESIS_API
            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
    #endif
            return(ret);
        }
        public bool IsDescendantOf(Visual visual)
        {
            bool ret = NoesisGUI_PINVOKE.Visual_IsDescendantOf(swigCPtr, Visual.getCPtr(visual));

    #if UNITY_EDITOR || NOESIS_API
            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
    #endif
            return(ret);
        }
        public static Visual GetParent(Visual visual)
        {
            IntPtr cPtr = NoesisGUI_PINVOKE.VisualTreeHelper_GetParent(Visual.getCPtr(visual));

    #if UNITY_EDITOR || NOESIS_API
            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
    #endif
            return((Visual)Noesis.Extend.GetProxy(cPtr, false));
        }
Пример #12
0
        public Rect MakeVisible(Visual visual, Rect rect)
        {
            IntPtr ret = NoesisGUI_PINVOKE.StackPanel_MakeVisible(swigCPtr, Visual.getCPtr(visual), ref rect);

            if (ret != IntPtr.Zero)
            {
                return(Marshal.PtrToStructure <Rect>(ret));
            }
            else
            {
                return(new Rect());
            }
        }
Пример #13
0
        public static Size GetSize(Visual visual)
        {
            IntPtr ret = NoesisGUI_PINVOKE.VisualTreeHelper_GetSize(Visual.getCPtr(visual));

            if (ret != IntPtr.Zero)
            {
                return(Marshal.PtrToStructure <Size>(ret));
            }
            else
            {
                return(new Size());
            }
        }
Пример #14
0
        public static Point GetOffset(Visual visual)
        {
            IntPtr ret = NoesisGUI_PINVOKE.VisualTreeHelper_GetOffset(Visual.getCPtr(visual));

            if (ret != IntPtr.Zero)
            {
                return(Marshal.PtrToStructure <Point>(ret));
            }
            else
            {
                return(new Point());
            }
        }
Пример #15
0
        public static Rect GetDescendantBounds(Visual visual)
        {
            IntPtr ret = NoesisGUI_PINVOKE.VisualTreeHelper_GetDescendantBounds(Visual.getCPtr(visual));

            if (ret != IntPtr.Zero)
            {
                return(Marshal.PtrToStructure <Rect>(ret));
            }
            else
            {
                return(new Rect());
            }
        }
Пример #16
0
        public Matrix4 TransformToAncestor(Visual ancestor)
        {
            IntPtr ret = NoesisGUI_PINVOKE.Visual_TransformToAncestor(swigCPtr, Visual.getCPtr(ancestor));

            if (ret != IntPtr.Zero)
            {
                return(Marshal.PtrToStructure <Matrix4>(ret));
            }
            else
            {
                return(new Matrix4());
            }
        }
Пример #17
0
        public Matrix4 TransformToDescendant(Visual descendant)
        {
            IntPtr ret = NoesisGUI_PINVOKE.Visual_TransformToDescendant(swigCPtr, Visual.getCPtr(descendant));

            if (ret != IntPtr.Zero)
            {
                return(Marshal.PtrToStructure <Matrix4>(ret));
            }
            else
            {
                return(new Matrix4());
            }
        }
Пример #18
0
        public static Rect GetDescendantBounds(Visual visual)
        {
            IntPtr ret = NoesisGUI_PINVOKE.VisualTreeHelper_GetDescendantBounds(Visual.getCPtr(visual));

            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
            if (ret != IntPtr.Zero)
            {
                return(Marshal.PtrToStructure <Rect>(ret));
            }
            else
            {
                return(new Rect());
            }
        }
Пример #19
0
        public Rect MakeVisible(Visual visual, Rect rect)
        {
            IntPtr ret = NoesisGUI_PINVOKE.StackPanel_MakeVisible(swigCPtr, Visual.getCPtr(visual), ref rect);

            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
            if (ret != IntPtr.Zero)
            {
                return(Marshal.PtrToStructure <Rect>(ret));
            }
            else
            {
                return(new Rect());
            }
        }
Пример #20
0
        public static Point GetOffset(Visual visual)
        {
            IntPtr ret = NoesisGUI_PINVOKE.VisualTreeHelper_GetOffset(Visual.getCPtr(visual));

            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
            if (ret != IntPtr.Zero)
            {
                return(Marshal.PtrToStructure <Point>(ret));
            }
            else
            {
                return(new Point());
            }
        }
Пример #21
0
        public Matrix4 TransformToVisual(Visual visual)
        {
            IntPtr ret = NoesisGUI_PINVOKE.Visual_TransformToVisual(swigCPtr, Visual.getCPtr(visual));

            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
            if (ret != IntPtr.Zero)
            {
                return(Marshal.PtrToStructure <Matrix4>(ret));
            }
            else
            {
                return(new Matrix4());
            }
        }
Пример #22
0
 public static Size GetSize(Visual visual)
 {
     if (visual == null)
     {
         throw new ArgumentNullException("visual");
     }
     {
         IntPtr ret = NoesisGUI_PINVOKE.VisualTreeHelper_GetSize(Visual.getCPtr(visual));
         if (ret != IntPtr.Zero)
         {
             return(Marshal.PtrToStructure <Size>(ret));
         }
         else
         {
             return(new Size());
         }
     }
 }
Пример #23
0
 public static Rect GetDescendantBounds(Visual visual)
 {
     if (visual == null)
     {
         throw new ArgumentNullException("visual");
     }
     {
         IntPtr ret = NoesisGUI_PINVOKE.VisualTreeHelper_GetDescendantBounds(Visual.getCPtr(visual));
         if (ret != IntPtr.Zero)
         {
             return(Marshal.PtrToStructure <Rect>(ret));
         }
         else
         {
             return(new Rect());
         }
     }
 }
Пример #24
0
 public Matrix4 TransformToVisual(Visual visual)
 {
     if (visual == null)
     {
         throw new ArgumentNullException("visual");
     }
     {
         IntPtr ret = NoesisGUI_PINVOKE.Visual_TransformToVisual(swigCPtr, Visual.getCPtr(visual));
         if (ret != IntPtr.Zero)
         {
             return(Marshal.PtrToStructure <Matrix4>(ret));
         }
         else
         {
             return(new Matrix4());
         }
     }
 }
        public static Rect GetContentBounds(Visual visual)
        {
            IntPtr ret = NoesisGUI_PINVOKE.VisualTreeHelper_GetContentBounds(Visual.getCPtr(visual));

    #if UNITY_EDITOR || NOESIS_API
            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
    #endif
            if (ret != IntPtr.Zero)
            {
                return(Marshal.PtrToStructure <Rect>(ret));
            }
            else
            {
                return(new Rect());
            }
        }
        public Matrix4 TransformToDescendant(Visual descendant)
        {
            IntPtr ret = NoesisGUI_PINVOKE.Visual_TransformToDescendant(swigCPtr, Visual.getCPtr(descendant));

    #if UNITY_EDITOR || NOESIS_API
            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
    #endif
            if (ret != IntPtr.Zero)
            {
                return(Marshal.PtrToStructure <Matrix4>(ret));
            }
            else
            {
                return(new Matrix4());
            }
        }
Пример #27
0
 public Visual FindCommonVisualAncestor(Visual visual)
 {
     if (visual == null)
     {
         throw new ArgumentNullException("visual");
     }
     {
         IntPtr cPtr = NoesisGUI_PINVOKE.Visual_FindCommonVisualAncestor(swigCPtr, Visual.getCPtr(visual));
         return((Visual)Noesis.Extend.GetProxy(cPtr, false));
     }
 }
Пример #28
0
 protected void RemoveVisualChild(Visual child)
 {
     NoesisGUI_PINVOKE.Visual_RemoveVisualChild(swigCPtr, Visual.getCPtr(child));
 }
Пример #29
0
 public Matrix4 TransformToDescendant(Visual descendant)
 {
     if (descendant == null)
     {
         throw new ArgumentNullException("descendant");
     }
     {
         IntPtr ret = NoesisGUI_PINVOKE.Visual_TransformToDescendant(swigCPtr, Visual.getCPtr(descendant));
         if (ret != IntPtr.Zero)
         {
             return(Marshal.PtrToStructure <Matrix4>(ret));
         }
         else
         {
             return(new Matrix4());
         }
     }
 }
 public ManipulationInertiaStartingEventArgs(object s, RoutedEvent e, Visual manipulationContainer, Point manipulationOrigin, ManipulationVelocities initialVelocities) : this(NoesisGUI_PINVOKE.new_ManipulationInertiaStartingEventArgs(Noesis.Extend.GetInstanceHandle(s), RoutedEvent.getCPtr(e), Visual.getCPtr(manipulationContainer), ref manipulationOrigin, ManipulationVelocities.getCPtr(initialVelocities)), true)
 {
     if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
     {
         throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
     }
 }