コード例 #1
0
 public RichTextEditInteractionElement(IRichTextComponent cText,
                                       IInputHandler inputHandler, IUndoRedoService undoRedo, IClipboard clipboard)
 {
     this.cText        = cText;
     this.undoRedo     = undoRedo;
     this.clipboard    = clipboard;
     this.inputHandler = inputHandler;
 }
コード例 #2
0
 public BorderCurveLocalCache(IContext glContext, ISceneNode entity)
 {
     this.glContext      = glContext;
     this.entity         = entity;
     aspect              = entity.GetComponent <IRichTextComponent>();
     bufferPointCapacity = 512;
     isDirty             = true;
 }
コード例 #3
0
 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;
 }