Package io.github.humbleui.skija
Class SaveLayerRec
- java.lang.Object
-
- io.github.humbleui.skija.SaveLayerRec
-
public class SaveLayerRec extends java.lang.ObjectContains the state used to create the layer
-
-
Constructor Summary
Constructors Constructor Description SaveLayerRec()Sets bounds, paint, and backdrop to null.SaveLayerRec(@Nullable io.github.humbleui.types.Rect bounds, @Nullable Paint paint)Sets bounds and paint.SaveLayerRec(@Nullable io.github.humbleui.types.Rect bounds, @Nullable Paint paint, @Nullable ImageFilter backdrop)Sets bounds, paint, and backdropSaveLayerRec(@Nullable io.github.humbleui.types.Rect bounds, @Nullable Paint paint, SaveLayerRecFlag... flags)Sets bounds, paint, and flags.SaveLayerRec(io.github.humbleui.types.Rect bounds, Paint paint, ImageFilter backdrop, SaveLayerRecFlag... flags)Sets bounds, paint, backdrop and flags
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)@Nullable ImageFiltergetBackdrop()@Nullable io.github.humbleui.types.RectgetBounds()intgetFlags()@Nullable PaintgetPaint()inthashCode()java.lang.StringtoString()
-
-
-
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 nullpaint- 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 nullpaint- applied to layer when overlaying prior layer; may be nullflags- 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 nullpaint- applied to layer when overlaying prior layer; may be nullbackdrop- 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 nullpaint- applied to layer when overlaying prior layer; may be nullbackdrop- 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:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-