Skip to content

Commit 583a8be

Browse files
Merge pull request #607 from JordanMartinez/viewportDirty
Expose viewport dirty as public API
2 parents d86fc1b + a6e7f9d commit 583a8be

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

richtextfx/src/main/java/org/fxmisc/richtext/GenericStyledArea.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,10 @@ public Optional<Tuple2<Codec<PS>, Codec<StyledSegment<SEG, S>>>> getStyleCodecs(
493493
// rich text changes
494494
@Override public final EventStream<RichTextChange<PS, SEG, S>> richChanges() { return content.richChanges(); }
495495

496+
private final SuspendableEventStream<?> viewportDirty;
497+
/** Returns an EventStream that emits an event every time the viewport becomes dirty */
498+
public final EventStream<?> viewportDirtyEvents() { return viewportDirty; }
499+
496500
/* ********************************************************************** *
497501
* *
498502
* Private fields *
@@ -509,8 +513,6 @@ public Optional<Tuple2<Codec<PS>, Codec<StyledSegment<SEG, S>>>> getStyleCodecs(
509513

510514
private boolean followCaretRequested = false;
511515

512-
private final SuspendableEventStream<?> viewportDirty;
513-
514516
/* ********************************************************************** *
515517
* *
516518
* Fields necessary for Cloning *

0 commit comments

Comments
 (0)