Class VulkanDebugUtilsLabelColor
java.lang.Object
com.io7m.jcoronado.extensions.ext_debug_utils.api.VulkanDebugUtilsLabelColor
- All Implemented Interfaces:
VulkanDebugUtilsLabelColorType
public final class VulkanDebugUtilsLabelColor
extends Object
implements VulkanDebugUtilsLabelColorType
An RGBA label color.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanDebugUtilsLabelColor. -
Method Summary
Modifier and TypeMethodDescriptionfloatalpha()floatblue()builder()Creates a builder forVulkanDebugUtilsLabelColor.static VulkanDebugUtilsLabelColorcopyOf(VulkanDebugUtilsLabelColorType instance) Creates an immutable copy of aVulkanDebugUtilsLabelColorTypevalue.booleanThis instance is equal to all instances ofVulkanDebugUtilsLabelColorthat have equal attribute values.floatgreen()inthashCode()Computes a hash code from attributes:red,green,blue,alpha.floatred()toString()Prints the immutable valueVulkanDebugUtilsLabelColorwith attribute values.withAlpha(float value) Copy the current immutable object by setting a value for thealphaattribute.withBlue(float value) Copy the current immutable object by setting a value for theblueattribute.withGreen(float value) Copy the current immutable object by setting a value for thegreenattribute.withRed(float value) Copy the current immutable object by setting a value for theredattribute.
-
Method Details
-
red
public float red()- Specified by:
redin interfaceVulkanDebugUtilsLabelColorType- Returns:
- The red component
-
green
public float green()- Specified by:
greenin interfaceVulkanDebugUtilsLabelColorType- Returns:
- The green component
-
blue
public float blue()- Specified by:
bluein interfaceVulkanDebugUtilsLabelColorType- Returns:
- The blue component
-
alpha
public float alpha()- Specified by:
alphain interfaceVulkanDebugUtilsLabelColorType- Returns:
- The alpha component
-
withRed
Copy the current immutable object by setting a value for theredattribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for red- Returns:
- A modified copy of the
thisobject
-
withGreen
Copy the current immutable object by setting a value for thegreenattribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for green- Returns:
- A modified copy of the
thisobject
-
withBlue
Copy the current immutable object by setting a value for theblueattribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for blue- Returns:
- A modified copy of the
thisobject
-
withAlpha
Copy the current immutable object by setting a value for thealphaattribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for alpha- Returns:
- A modified copy of the
thisobject
-
equals
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aVulkanDebugUtilsLabelColorTypevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable VulkanDebugUtilsLabelColor instance
-
builder
Creates a builder forVulkanDebugUtilsLabelColor.VulkanDebugUtilsLabelColor.builder() .setRed(float) // requiredred.setGreen(float) // requiredgreen.setBlue(float) // requiredblue.setAlpha(float) // requiredalpha.build();- Returns:
- A new VulkanDebugUtilsLabelColor builder
-