PopCursor() 공개 메소드

Pop the cursor on top of the cursorStack and set it as the canvas cursor.
public PopCursor ( ) : void
리턴 void
예제 #1
0
			/// <summary>
			/// Overridden.  See <see cref="PBasicInputEventHandler.OnMouseUp">
			/// PBasicInputEventHandler.OnMouseUp</see>.
			/// </summary>
			public override void OnMouseUp(object sender, PInputEventArgs e) {
				base.OnMouseUp(sender, e);
				if (cursorPushed) {
					e.PopCursor();
					cursorPushed = false;
				}
			}
예제 #2
0
			/// <summary>
			/// Overridden.  See <see cref="PBasicInputEventHandler.OnMouseLeave">
			/// PBasicInputEventHandler.OnMouseLeave</see>.
			/// </summary>
			public override void OnMouseLeave(object sender, PInputEventArgs e) {
				base.OnMouseLeave(sender, e);
				PPickPath focus = e.InputManager.MouseFocus;
				if (cursorPushed) {
					if (focus == null || focus.PickedNode != target) {
						e.PopCursor();
						cursorPushed = false;
					}
				}
			}