Password Field
fun PasswordField( posX: Number = 0, posY: Number = 0, width: Number = DEFAULT_TEXT_FIELD_WIDTH, height: Number = DEFAULT_TEXT_FIELD_HEIGHT, text: String = "", prompt: String = "", font: Font = Font(), visual: Visual = ColorVisual(Color(240, 240, 240)))
Content copied to clipboard
Creates a PasswordField.
Parameters
pos X
Horizontal coordinate for this PasswordField. Default: 0.
pos Y
Vertical coordinate for this PasswordField. Default: 0.
width
Width for this PasswordField. Default: DEFAULT_TEXT_FIELD_WIDTH.
height
Height for this PasswordField. Default: DEFAULT_TEXT_FIELD_HEIGHT.
text
Initial text for this PasswordField. Default: empty String.
prompt
Prompt for this PasswordField. This gets displayed as a prompt to the user whenever the label is an empty string. Default: empty string.
font
Font to be used to display text.
visual
Visual to be used as a background. Defaults to a Light-gray ColorVisual.