Class CompatibilityKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Unit enableNewSwingCompositing() Enables the new compositing strategy for rendering directly into Swing Graphics.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • enableNewSwingCompositing

         final static Unit enableNewSwingCompositing()

        Enables the new compositing strategy for rendering directly into Swing Graphics. This fixes z-order problems and artifacts on resizing, but has a performance penalty when using infinitely repeating animations.

        We assume the majority of our users will want this flag to be on, so this convenience function is provided to that end. Make sure you call it before you initialize any Compose content. The function is idempotent and extremely cheap, so you can call it on any entry point.