예제 #1
0
 //TODO: Improve Javadoc
 private void init(int action, float x, float y, android.content.ClipDescription description
                   , android.content.ClipData data, object localState, bool result)
 {
     mAction          = action;
     mX               = x;
     mY               = y;
     mClipDescription = description;
     mClipData        = data;
     mLocalState      = localState;
     mDragResult      = result;
 }
예제 #2
0
 /// <summary>Recycle the DragEvent, to be re-used by a later caller.</summary>
 /// <remarks>
 /// Recycle the DragEvent, to be re-used by a later caller.  After calling
 /// this function you must never touch the event again.
 /// </remarks>
 /// <hide></hide>
 public void recycle()
 {
     // Ensure recycle is only called once!
     if (mRecycled)
     {
         throw new java.lang.RuntimeException(ToString() + " recycled twice!");
     }
     mRecycled        = true;
     mClipData        = null;
     mClipDescription = null;
     mLocalState      = null;
     lock (gRecyclerLock)
     {
         if (gRecyclerUsed < MAX_RECYCLED)
         {
             gRecyclerUsed++;
             mNext        = gRecyclerTop;
             gRecyclerTop = this;
         }
     }
 }
예제 #3
0
 /// <hide></hide>
 public static android.view.DragEvent obtain(int action, float x, float y, object
                                             localState, android.content.ClipDescription description, android.content.ClipData
                                             data, bool result)
 {
     android.view.DragEvent ev;
     lock (gRecyclerLock)
     {
         if (gRecyclerTop == null)
         {
             ev = new android.view.DragEvent();
             ev.init(action, x, y, description, data, localState, result);
             return(ev);
         }
         ev             = gRecyclerTop;
         gRecyclerTop   = ev.mNext;
         gRecyclerUsed -= 1;
     }
     ev.mRecycledLocation = null;
     ev.mRecycled         = false;
     ev.mNext             = null;
     ev.init(action, x, y, description, data, localState, result);
     return(ev);
 }
예제 #4
0
 public abstract bool performDrag(android.view.IWindow arg1, android.os.IBinder arg2
                                  , float arg3, float arg4, float arg5, float arg6, android.content.ClipData arg7);
예제 #5
0
 public virtual bool performDrag(android.view.IWindow window, android.os.IBinder dragToken
                                 , float touchX, float touchY, float thumbCenterX, float thumbCenterY, android.content.ClipData
                                 data)
 {
     throw new System.NotImplementedException();
 }
예제 #6
0
 public virtual void setPrimaryClip(android.content.ClipData clip)
 {
     throw new System.NotImplementedException();
 }
예제 #7
0
 public abstract void setPrimaryClip(android.content.ClipData arg1);