/// <summary> /// Initializes a new instance of the VGCursor class. /// </summary> /// <param name="newPen">A <see cref="Pen"/> for the edges.</param> /// <param name="newBrush">A <see cref="Brush"/> for the fills.<remarks>Currently used only for Mouse button fills.</remarks></param> /// <param name="newCursorType">A <see cref="DrawingCursors"/> to define the type of the cursor.</param> /// <param name="newSize">A <see cref="float"/> with the cursors size</param> /// <param name="newStyleGroup">A <see cref="VGStyleGroup"/> with the elements category</param> public VGCursor( Pen newPen, Brush newBrush, DrawingCursors newCursorType, float newSize, VGStyleGroup newStyleGroup) : base(ShapeDrawAction.Edge, newPen, newBrush, newStyleGroup, string.Empty, string.Empty) { this.Bounds = new RectangleF(0, 0, newSize, newSize); this.cursorType = newCursorType; }
/// <summary> /// Initializes a new instance of the VGCursor class. /// Clone Constructor. Creates new cursor element that is /// identical to the given cursor. /// </summary> /// <param name="cursor">VGCursor to clone</param> private VGCursor(VGCursor cursor) : base( cursor.ShapeDrawAction, cursor.Pen, cursor.Brush, cursor.Font, cursor.FontColor, cursor.Bounds, cursor.StyleGroup, cursor.Name, cursor.ElementGroup, cursor.Sound) { this.cursorType = cursor.CursorType; }
/// <summary> /// Overridden <see cref="VGElement.Reset()"/> method. /// Reset the current cursor element to /// default value, which is an arrow cursor. /// </summary> public override void Reset() { base.Reset(); this.cursorType = DrawingCursors.Arrow; }