Beispiel #1
0
        internal Widget(WidgetImpl widgetImpl, bool swigCMemOwn) : this(Interop.Widget.New(WidgetImpl.getCPtr(widgetImpl)), swigCMemOwn)
        {
            this.widgetImpl = widgetImpl;
            widgetImpl.WidgetInstanceCreated   += OnWidgetInstanceCreated;
            widgetImpl.WidgetInstanceDestroyed += OnWidgetInstanceDestroyed;
            widgetImpl.WidgetInstancePaused    += OnWidgetInstancePaused;
            widgetImpl.WidgetInstanceResumed   += OnWidgetInstanceResumed;
            widgetImpl.WidgetInstanceResized   += OnWidgetInstanceResized;
            widgetImpl.WidgetInstanceUpdated   += OnWidgetInstanceUpdated;

            (WidgetApplication.Instance as WidgetApplication)?.AddWidgetInstance(this);
        }
Beispiel #2
0
        internal Widget(WidgetImpl widgetImpl, bool swigCMemOwn) : this(NDalicManualPINVOKE.Widget_New__SWIG_1(WidgetImpl.getCPtr(widgetImpl)), swigCMemOwn)
        {
            this.widgetImpl = widgetImpl;
            widgetImpl.WidgetInstanceCreated   += OnWidgetInstanceCreated;
            widgetImpl.WidgetInstanceDestroyed += OnWidgetInstanceDestroyed;
            widgetImpl.WidgetInstancePaused    += OnWidgetInstancePaused;
            widgetImpl.WidgetInstanceResumed   += OnWidgetInstanceResumed;
            widgetImpl.WidgetInstanceResized   += OnWidgetInstanceResized;
            widgetImpl.WidgetInstanceUpdated   += OnWidgetInstanceUpdated;

            WidgetApplication.Instance?.AddWidgetInstance(this);
        }