Пример #1
0
 public static HandleRef getCPtr(BaseComponent obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Пример #2
0
 private EventHandlerStore(UIElement element)
 {
     _element = BaseComponent.getCPtr(element).Handle;
 }
Пример #3
0
 private static long Key(RoutedEvent routedEvent)
 {
     return(BaseComponent.getCPtr(routedEvent).Handle.ToInt64());
 }
Пример #4
0
 public RenderDevice(IntPtr cPtr, bool memoryOwn)
 {
     _renderDevice = new BaseComponent(cPtr, memoryOwn);
 }
Пример #5
0
 private static HandleRef RegisterContent(FrameworkElement content)
 {
     sContentPtr = BaseComponent.getCPtr(content);
     return(sContentPtr);
 }
Пример #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));
        }
Пример #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;
        }
Пример #8
0
 internal View(FrameworkElement content) :
     this(Noesis_View_Create(BaseComponent.getCPtr(content)), true)
 {
 }