Exemple #1
0
void wm_delete(WORD w_handle)
{
        newrect(gl_wtree, w_handle);            /* give back recs.      */
        w_setsize(WS_CURR, w_handle, &gl_rscreen);
        w_setsize(WS_PREV, w_handle, &gl_rscreen);
        w_setsize(WS_FULL, w_handle, &gl_rfull);
        w_setsize(WS_WORK, w_handle, &gl_rfull);
        D.w_win[w_handle].w_flags = 0x0;        /*&= ~VF_INUSE; */
        D.w_win[w_handle].w_owner = NULLPTR;
}
void nuiMoveRectAnim::OnFrame()
{
  nuiSize t = (nuiSize)GetPosition();
  nuiSize tt = 1.0f - t;

  nuiSize X1, Y1, X2, Y2;

  X1 = mSource.Left() * tt + mDestination.Left() * t;
  Y1 = mSource.Top() * tt + mDestination.Top() * t;
  X2 = mSource.Right() * tt + mDestination.Right() * t;
  Y2 = mSource.Bottom() * tt + mDestination.Bottom() * t;

  nuiRect newrect(X1, Y1, X2, Y2, false);
  newrect.RoundToNearest();
  mpTarget->SetUserRect(newrect);
}