Exemple #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;
 }
Exemple #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;
         }
     }
 }
Exemple #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);
 }
Exemple #4
0
 public ClipDescription(android.content.ClipDescription o)
 {
     throw new System.NotImplementedException();
 }
Exemple #5
0
 public ClipData(android.content.ClipDescription description, android.content.ClipData
                 .Item item)
 {
     throw new System.NotImplementedException();
 }