Class SaveLayerRec


  • public class SaveLayerRec
    extends java.lang.Object
    Contains the state used to create the layer
    • Field Detail

      • _bounds

        @Internal
        @Nullable
        public final @Nullable io.github.humbleui.types.Rect _bounds
      • _paint

        @Internal
        @Nullable
        public final @Nullable Paint _paint
      • _backdrop

        @Internal
        @Nullable
        public final @Nullable ImageFilter _backdrop
      • _flags

        @Internal
        public final int _flags
    • Constructor Detail

      • SaveLayerRec

        public SaveLayerRec()
        Sets bounds, paint, and backdrop to null. Clears flags.
      • SaveLayerRec

        public SaveLayerRec​(@Nullable
                            @Nullable io.github.humbleui.types.Rect bounds,
                            @Nullable
                            @Nullable Paint paint)
        Sets bounds and paint. Sets backdrop to null, clears flags
        Parameters:
        bounds - layer dimensions; may be null
        paint - applied to layer when overlaying prior layer; may be null
      • SaveLayerRec

        public SaveLayerRec​(@Nullable
                            @Nullable io.github.humbleui.types.Rect bounds,
                            @Nullable
                            @Nullable Paint paint,
                            SaveLayerRecFlag... flags)
        Sets bounds, paint, and flags. Sets backdrop to null
        Parameters:
        bounds - layer dimensions; may be null
        paint - applied to layer when overlaying prior layer; may be null
        flags - options to modify layer
      • SaveLayerRec

        public SaveLayerRec​(@Nullable
                            @Nullable io.github.humbleui.types.Rect bounds,
                            @Nullable
                            @Nullable Paint paint,
                            @Nullable
                            @Nullable ImageFilter backdrop)
        Sets bounds, paint, and backdrop
        Parameters:
        bounds - layer dimensions; may be null
        paint - applied to layer when overlaying prior layer; may be null
        backdrop - If not null, this causes the current layer to be filtered by backdrop, and then drawn into the new layer (respecting the current clip). If null, the new layer is initialized with transparent-black.
      • SaveLayerRec

        public SaveLayerRec​(io.github.humbleui.types.Rect bounds,
                            Paint paint,
                            ImageFilter backdrop,
                            SaveLayerRecFlag... flags)
        Sets bounds, paint, backdrop and flags
        Parameters:
        bounds - layer dimensions; may be null
        paint - applied to layer when overlaying prior layer; may be null
        backdrop - If not null, this causes the current layer to be filtered by backdrop, and then drawn into the new layer (respecting the current clip). If null, the new layer is initialized with transparent-black.
        flags - options to modify layer
    • Method Detail

      • getBounds

        @Nullable
        public @Nullable io.github.humbleui.types.Rect getBounds()
      • getPaint

        @Nullable
        public @Nullable Paint getPaint()
      • getBackdrop

        @Nullable
        public @Nullable ImageFilter getBackdrop()
      • getFlags

        public int getFlags()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object