/* void PrepareLevelOnOffset(); * void ClearAltWSList(); * void AddToAltWSList(TBaseWorkShape* AWS); * HRGN GetRGNAltWSList(); * bool IsAltWSListEmpty();*/ TBaseShape FindTFE(int Ax, int Ay) { TBaseShape CurrShape; TBaseWorkShape TempWork; TempWork = g_PainterList.First(); while (TempWork != null) { if (TempWork.CompositeWorkShape != null) { CurrShape = TempWork.CompositeWorkShape.FindTFE(Ax, Ay); if (CurrShape != null) { return(CurrShape); } } else { for (int i = 0; i <= TempWork.WorkShapesCount - 1; i++) { CurrShape = (TBaseShape)(TempWork.GetWorkShape(i)); if (SharedConst.PtInRect(CurrShape.GetRect(), new Point(Ax, Ay))) { return(CurrShape); } } } TempWork = g_PainterList.Next(); } return(null); }
/* TPoint GetTopPoint(int AXoffs = 0, int AYoffs = 0); * void ApplyOffset(int AX, int AY);*/ public void PreparePaint() { TBaseWorkShape CurrShape; CurrShape = g_PainterList.First(); while (CurrShape != null) { CurrShape.Prepare(); CurrShape = g_PainterList.Next(); } RecalcCurrEndPoint(); }