public RichTextEditInteractionElement(IRichTextComponent cText, IInputHandler inputHandler, IUndoRedoService undoRedo, IClipboard clipboard) { this.cText = cText; this.undoRedo = undoRedo; this.clipboard = clipboard; this.inputHandler = inputHandler; }
public BorderCurveLocalCache(IContext glContext, ISceneNode entity) { this.glContext = glContext; this.entity = entity; aspect = entity.GetComponent <IRichTextComponent>(); bufferPointCapacity = 512; isDirty = true; }
public DrawBorderCurveTool(ISceneNode entity, IUndoRedoService undoRedo) { this.undoRedo = undoRedo; this.entity = entity; richTextAspect = entity.GetComponent <IRichTextComponent>(); rectangleAspect = entity.GetComponent <IRectangleComponent>(); richTextAspect.BorderComplete = false; richTextAspect.VisualBorderCurve = new List <Vector2>(); curve = richTextAspect.VisualBorderCurve; state = State.Ready; }