SurfaceDepth


public final class SurfaceDepth


Represents the Depth used by a surface in different states.

Focused surfaces with a focusedDepth will have a higher zIndex set so they can draw their focused depth over siblings.

Summary

Public constructors

SurfaceDepth(Depth depth, Depth focusedDepth)

Public methods

boolean
equals(Object other)
final Depth

the Depth used when the surface is in its default state (no other interactions are ongoing)

final Depth

the Depth used when the surface is focused

int

Public constructors

SurfaceDepth

Added in 1.0.0-alpha01
public SurfaceDepth(Depth depth, Depth focusedDepth)

Public methods

equals

public boolean equals(Object other)

getDepth

Added in 1.0.0-alpha01
public final Depth getDepth()

the Depth used when the surface is in its default state (no other interactions are ongoing)

getFocusedDepth

Added in 1.0.0-alpha01
public final Depth getFocusedDepth()

the Depth used when the surface is focused

hashCode

public int hashCode()