internal MonoTextEditor(TextDocument doc, ITextEditorOptions options, EditMode initialMode) { this.Direction = TextDirection.Ltr; uiThread = Thread.CurrentThread; GtkWorkarounds.FixContainerLeak(this); WidgetFlags |= WidgetFlags.NoWindow; LayoutCache = new LayoutCache(this); this.textArea = new TextArea(doc, options, initialMode); this.textArea.Initialize(this, doc, options, initialMode); this.textArea.EditorOptionsChanged += (sender, e) => OptionsChanged(sender, e); AddTopLevelWidget(textArea, 0, 0); ShowAll(); stage.ActorStep += OnActorStep; if (Platform.IsMac) { VScroll += delegate { for (int i = 1; i < containerChildren.Count; i++) { containerChildren[i].Child.QueueDraw(); } }; HScroll += delegate { for (int i = 1; i < containerChildren.Count; i++) { containerChildren[i].Child.QueueDraw(); } }; } }
public LayoutProxy (LayoutCache layoutCache, Pango.Layout layout) { if (layoutCache == null) throw new ArgumentNullException ("layoutCache"); if (layout == null) throw new ArgumentNullException ("layout"); this.layoutCache = layoutCache; this.layout = layout; }
public TextEditor(TextDocument doc, ITextEditorOptions options, EditMode initialMode) { LayoutCache = new LayoutCache(this); this.textArea = new TextArea(doc, options, initialMode); this.textArea.Initialize(this, doc, options, initialMode); this.textArea.EditorOptionsChanged += (sender, e) => OptionsChanged(sender, e); AddTopLevelWidget(textArea, 0, 0); stage.ActorStep += OnActorStep; }
public LayoutProxy(LayoutCache layoutCache, Pango.Layout layout) { if (layoutCache == null) { throw new ArgumentNullException("layoutCache"); } if (layout == null) { throw new ArgumentNullException("layout"); } this.layoutCache = layoutCache; this.layout = layout; }
public LayoutProxy(LayoutCache layoutCache, TextLayout layout) { if (layoutCache == null) { throw new ArgumentNullException(nameof(layoutCache)); } if (layout == null) { throw new ArgumentNullException(nameof(layout)); } this.layoutCache = layoutCache; this.layout = layout; }
public LayoutWrapper (LayoutCache.LayoutProxy layout) { this.Layout = layout; this.IsUncached = false; }
protected override void OnDestroyed() { UnregisterAdjustments(); LayoutCache.Dispose(); base.OnDestroyed(); }
protected override void Dispose(bool disposing) { base.Dispose(disposing); UnregisterAdjustments(); LayoutCache.Dispose(); }