• R/O
  • HTTP
  • SSH
  • HTTPS

FooEditEngine: Commit


Commit MetaInfo

Revisione54bf68f9dffe74ed34d0609eec2ba242dfe6f99 (tree)
Zeit2020-08-23 18:32:59
Autortest <test@yaho...>
Commitertest

Log Message

OnRenderChangedメソッドを呼び出すようにした

Ändern Zusammenfassung

Diff

--- a/Core/Direct2D/D2DRenderCommon.cs
+++ b/Core/Direct2D/D2DRenderCommon.cs
@@ -51,9 +51,6 @@ namespace FooEditEngine
5151 sealed class ColorBrushCollection
5252 {
5353 ResourceManager<Color4, D2D.SolidColorBrush> cache = new ResourceManager<Color4, D2D.SolidColorBrush>();
54- D2D.RenderTarget _render;
55-
56- public event EventHandler RenderChanged;
5754
5855 public D2D.SolidColorBrush Get(D2D.RenderTarget render,Color4 key)
5956 {
@@ -267,7 +264,13 @@ namespace FooEditEngine
267264 #endif
268265 layout.Dispose();
269266
270- this.ChangedRenderResource(this,new ChangedRenderRsourceEventArgs(ResourceType.Font));
267+ this.OnChangedRenderResource(this,new ChangedRenderRsourceEventArgs(ResourceType.Font));
268+ }
269+
270+ public void OnChangedRenderResource(object sender, ChangedRenderRsourceEventArgs e)
271+ {
272+ if (this.ChangedRenderResource != null)
273+ this.ChangedRenderResource(sender, e);
271274 }
272275
273276 DW.ReadingDirection GetDWRightDirect(bool rtl)
@@ -301,7 +304,7 @@ namespace FooEditEngine
301304 throw new InvalidOperationException();
302305 this._TextAntialiasMode = value;
303306 this.render.TextAntialiasMode = (D2D.TextAntialiasMode)value;
304- this.ChangedRenderResource(this, new ChangedRenderRsourceEventArgs(ResourceType.Antialias));
307+ this.OnChangedRenderResource(this, new ChangedRenderRsourceEventArgs(ResourceType.Antialias));
305308 }
306309 }
307310
@@ -390,7 +393,7 @@ namespace FooEditEngine
390393 this._Forground = value;
391394 if (this.textRender != null)
392395 this.textRender.DefaultFore = value;
393- this.ChangedRenderResource(this, new ChangedRenderRsourceEventArgs(ResourceType.Brush));
396+ this.OnChangedRenderResource(this, new ChangedRenderRsourceEventArgs(ResourceType.Brush));
394397 }
395398 }
396399
@@ -447,7 +450,7 @@ namespace FooEditEngine
447450 this._ControlChar = value;
448451 if (this.HiddenChars != null)
449452 this.HiddenChars.Fore = value;
450- this.ChangedRenderResource(this, new ChangedRenderRsourceEventArgs(ResourceType.Brush));
453+ this.OnChangedRenderResource(this, new ChangedRenderRsourceEventArgs(ResourceType.Brush));
451454 }
452455 }
453456
@@ -460,7 +463,7 @@ namespace FooEditEngine
460463 set
461464 {
462465 this._URL = value;
463- this.ChangedRenderResource(this, new ChangedRenderRsourceEventArgs(ResourceType.Brush));
466+ this.OnChangedRenderResource(this, new ChangedRenderRsourceEventArgs(ResourceType.Brush));
464467 }
465468 }
466469
@@ -485,7 +488,7 @@ namespace FooEditEngine
485488 set
486489 {
487490 this._Comment = value;
488- this.ChangedRenderResource(this, new ChangedRenderRsourceEventArgs(ResourceType.Brush));
491+ this.OnChangedRenderResource(this, new ChangedRenderRsourceEventArgs(ResourceType.Brush));
489492 }
490493 }
491494
@@ -498,7 +501,7 @@ namespace FooEditEngine
498501 set
499502 {
500503 this._Literal = value;
501- this.ChangedRenderResource(this, new ChangedRenderRsourceEventArgs(ResourceType.Brush));
504+ this.OnChangedRenderResource(this, new ChangedRenderRsourceEventArgs(ResourceType.Brush));
502505 }
503506 }
504507
@@ -511,7 +514,7 @@ namespace FooEditEngine
511514 set
512515 {
513516 this._Keyword1 = value;
514- this.ChangedRenderResource(this, new ChangedRenderRsourceEventArgs(ResourceType.Brush));
517+ this.OnChangedRenderResource(this, new ChangedRenderRsourceEventArgs(ResourceType.Brush));
515518 }
516519 }
517520
@@ -524,7 +527,7 @@ namespace FooEditEngine
524527 set
525528 {
526529 this._Keyword2 = value;
527- this.ChangedRenderResource(this, new ChangedRenderRsourceEventArgs(ResourceType.Brush));
530+ this.OnChangedRenderResource(this, new ChangedRenderRsourceEventArgs(ResourceType.Brush));
528531 }
529532 }
530533
Show on old repository browser