Ejemplo n.º 1
0
 public static HandleRef getCPtr(BaseComponent obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Ejemplo n.º 2
0
 private EventHandlerStore(UIElement element)
 {
     _element = BaseComponent.getCPtr(element).Handle;
 }
Ejemplo n.º 3
0
 private static long Key(RoutedEvent routedEvent)
 {
     return(BaseComponent.getCPtr(routedEvent).Handle.ToInt64());
 }
Ejemplo n.º 4
0
 public RenderDevice(IntPtr cPtr, bool memoryOwn)
 {
     _renderDevice = new BaseComponent(cPtr, memoryOwn);
 }
Ejemplo n.º 5
0
 private static HandleRef RegisterContent(FrameworkElement content)
 {
     sContentPtr = BaseComponent.getCPtr(content);
     return(sContentPtr);
 }
Ejemplo n.º 6
0
        /// <summary>
        /// Looks for the view where the node is connected to
        /// </summary>
        /// <returns>A null reference if node is not connected to a View</returns>
        public static View Find(BaseComponent node)
        {
            IntPtr view = Noesis_View_Find(BaseComponent.getCPtr(node));

            return((View)Noesis.Extend.GetProxy(view, false));
        }
Ejemplo n.º 7
0
        // TODO: Rendering event
        #endregion

        #region Private members
        internal View(FrameworkElement content)
        {
            _view     = new BaseComponent(Noesis_View_Create_(BaseComponent.getCPtr(content)), true);
            _renderer = new Renderer(this);
            _content  = content;
        }
Ejemplo n.º 8
0
 internal View(FrameworkElement content) :
     this(Noesis_View_Create(BaseComponent.getCPtr(content)), true)
 {
 }