Inheritance: Object
Exemplo n.º 1
0
 public bool DragColor( Color aColor, Event aEvent, View aView )
 {
     return (bool) ObjCMessaging.objc_msgSend(NativeObject, "dragColor:withEvent:fromView:",
         typeof (System.Boolean),                 // return value
         typeof (IntPtr), aColor.NativeObject,    // dragColor:
         typeof (IntPtr), aEvent.NativeObject,    // withEvent:
         typeof (IntPtr), aView.NativeObject );  // fromView:
 }
Exemplo n.º 2
0
 public virtual void OnMouseDown( Event aEvent )
 {
 }
Exemplo n.º 3
0
        public virtual void OnKeyDown( Event aEvent )
        {
            if( aEvent == null )
            {
                return;
            }

            switch( aEvent.KeyCode )
            {
                case 115:
                    OnKeyDownHome();
                    break;

                case 116:
                    OnKeyDownPageUp();
                    break;

                case 117:
                    OnKeyDownDelete();
                    break;

                case 119:
                    OnKeyDownEnd();
                    break;

                case 121:
                    OnKeyDownPageDown();
                    break;

                case 123:
                    OnKeyDownArrowLeft();
                    break;

                case 124:
                    OnKeyDownArrowRight();
                    break;

                case 125:
                    OnKeyDownArrowDown();
                    break;

                case 126:
                    OnKeyDownArrowUp();
                    break;
            }
        }