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;
					}
				}
			}