示例#1
0
文件: draw.c 项目: burzumishi/e16
static void
_ShapeDrawNograb_tech_box(EWin * ewin, int md, int firstlast,
                          int xn, int yn, int wn, int hn, int seqno)
{
    ShapeData          *psd = (ShapeData *) ewin->shape_data;

    if (firstlast == 0 && !psd->shwin)
        psd->shwin = ShapewinCreate(md);
    if (!psd->shwin)
        return;

    ShapewinShapeSet(psd->shwin, md, xn, yn, wn, hn, psd->bl, psd->br, psd->bt,
                     psd->bb, seqno);
    EoMap(psd->shwin, 0);

    CoordsShow(ewin);

    if (firstlast == 2)
    {
        ShapewinDestroy(psd->shwin);
        psd->shwin = NULL;
    }
}
示例#2
0
文件: warp.c 项目: Limsik/e17
static void
WarpShapeDraw(EWin * ewin)
{
   static ShapeWin    *shape_win = NULL;
   int                 bl, br, bt, bb;

   if (!ewin)
     {
	ShapewinDestroy(shape_win);
	shape_win = NULL;
	return;
     }

   if (!shape_win)
      shape_win = ShapewinCreate(MR_BOX);
   if (!shape_win)
      return;

   EwinBorderGetSize(ewin, &bl, &br, &bt, &bb);
   ShapewinShapeSet(shape_win, MR_BOX, EoGetX(ewin), EoGetY(ewin),
		    ewin->client.w, ewin->client.h, bl, br, bt, bb, 0);
   EoMap(shape_win, 0);
}