コード例 #1
0
ファイル: SharedDomApi.cs プロジェクト: kuyae/expemerent
        /// <summary>
        /// SendEvent - sends sinking/bubbling event to the child/parent chain of element element.
        /// First event will be send in SINKING mode (with SINKING flag) - from root to element element itself.
        /// Then from element element to its root on parents chain without SINKING flag (bubbling phase).
        /// </summary>
        public bool SendEvent(Element he, BehaviorEventType eventCode, IntPtr reason, Element source)
        {
            var handled = default(bool);

            CheckResult(SciterSendEvent(he.Handle, (int)eventCode, source != null ? source.Handle : he.Handle, reason, out handled));

            return(handled);
        }
コード例 #2
0
        /// <summary>
        /// Post event by sinking/bubbling on the parent/child chain of this element
        /// </summary>
        public void PostEvent(BehaviorEventType eventCode, Element source)
        {
            var reason = default(IntPtr);

            SciterDomApi.PostEvent(this, eventCode, reason, source);
        }
コード例 #3
0
        /// <summary>
        /// Send event by sinking/bubbling on the parent/child chain of this element
        /// </summary>
        public bool SendEvent(BehaviorEventType eventCode, Element source)
        {
            var reason = default(IntPtr);

            return(SciterDomApi.SendEvent(this, eventCode, reason, source));
        }
コード例 #4
0
ファイル: SharedDomApi.cs プロジェクト: kuyae/expemerent
 /// <summary>
 /// PostEvent - post sinking/bubbling event to the child/parent chain of element element.
 /// Function will return immediately posting event into input queue of the application.
 /// </summary>
 public void PostEvent(Element he, BehaviorEventType eventCode, IntPtr reason, Element source)
 {
     CheckResult(SciterPostEvent(he.Handle, (int)eventCode, source != null ? source.Handle : he.Handle, reason));
 }
コード例 #5
0
ファイル: Element.cs プロジェクト: emtfamen/expemerent
 /// <summary>
 /// Send event by sinking/bubbling on the parent/child chain of this element
 /// </summary>
 public bool SendEvent(BehaviorEventType eventCode, Element source)
 {
     var reason = default(IntPtr);
     return SciterDomApi.SendEvent(this, eventCode, reason, source);
 }
コード例 #6
0
ファイル: Element.cs プロジェクト: emtfamen/expemerent
 /// <summary>
 /// Post event by sinking/bubbling on the parent/child chain of this element
 /// </summary>
 public void PostEvent(BehaviorEventType eventCode, Element source)
 {
     var reason = default(IntPtr);
     SciterDomApi.PostEvent(this, eventCode, reason, source);
 }
コード例 #7
0
ファイル: SharedDomApi.cs プロジェクト: emtfamen/expemerent
        /// <summary>
        /// SendEvent - sends sinking/bubbling event to the child/parent chain of element element.
        /// First event will be send in SINKING mode (with SINKING flag) - from root to element element itself.
        /// Then from element element to its root on parents chain without SINKING flag (bubbling phase).
        /// </summary>
        public bool SendEvent(Element he, BehaviorEventType eventCode, IntPtr reason, Element source)
        {
            var handled = default(bool);
            CheckResult(SciterSendEvent(he.Handle, (int)eventCode, source != null ? source.Handle : he.Handle, reason, out handled));

            return handled;
        }
コード例 #8
0
ファイル: SharedDomApi.cs プロジェクト: emtfamen/expemerent
 /// <summary>
 /// PostEvent - post sinking/bubbling event to the child/parent chain of element element.
 /// Function will return immediately posting event into input queue of the application. 
 /// </summary>
 public void PostEvent(Element he, BehaviorEventType eventCode, IntPtr reason, Element source)
 {
     CheckResult(SciterPostEvent(he.Handle, (int)eventCode, source != null ? source.Handle : he.Handle, reason));
 }