public static HandleRef getCPtr(BaseComponent obj) { return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr); }
private EventHandlerStore(UIElement element) { _element = BaseComponent.getCPtr(element).Handle; }
private static long Key(RoutedEvent routedEvent) { return(BaseComponent.getCPtr(routedEvent).Handle.ToInt64()); }
public RenderDevice(IntPtr cPtr, bool memoryOwn) { _renderDevice = new BaseComponent(cPtr, memoryOwn); }
private static HandleRef RegisterContent(FrameworkElement content) { sContentPtr = BaseComponent.getCPtr(content); return(sContentPtr); }
/// <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)); }
// 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; }
internal View(FrameworkElement content) : this(Noesis_View_Create(BaseComponent.getCPtr(content)), true) { }