public AddTextCommand(mPlayground iPlayground, aShape iShape, string iText, TextPos pos)
 {
     playground = iPlayground;
     shape      = iShape;
     text       = iText;
     textPos    = pos;
 }
        public ShapeDrawTool(mPlayground iPlayground)
        {
            playground   = iPlayground;
            curShape     = eShape.Rect;
            currentShape = null;

            drawing = false;
        }
示例#3
0
        public ShapeSelectTool(mPlayground iPlayground)
        {
            playground                = iPlayground;
            selectionRect             = new mRectangle(1, 1, Color.LightBlue);
            selectionRect.BorderColor = Color.MidnightBlue;
            selectionRect.BorderSize  = 2;
            selectionRect.DrawBorder  = true;
            selectionRect.Selected    = true;
            selectionRect.Load();

            typing = false;
        }
示例#4
0
 public DeleteCommand(aShape iShape, mPlayground iPlayground)
 {
     playground   = iPlayground;
     deletedShape = iShape;
 }
示例#5
0
 public DrawCommand(aShape iShape, mPlayground iPlayground)
 {
     currentShape = iShape;
     playground   = iPlayground;
 }
示例#6
0
 public ShapeTransformTool(mPlayground iPlayground)
 {
     playground   = iPlayground;
     transforming = false;
 }
 public ShapeMoveTool(mPlayground iPlayground)
 {
     playground  = iPlayground;
     movingShape = null;
 }