UNPKG

@appshuttle.io/turing

Version:
57 lines (41 loc) 1.04 kB
const Color = require('./Color/Color') class View { constructor(parameters) { this.tag = parameters.tag this.backgroundColor = new Color(parameters.backgroundColor) this.hidden = parameters.hidden this.opaque = parameters.opaque this.userInteraction = parameters.userInteraction } getTag() { return this.tag } setTag(tag) { this.tag = tag } getBackgroundColor() { return this.backgroundColor } setBackgroundColor(backgroundColor) { this.backgroundColor = backgroundColor } getHidden() { return this.hidden } setHidden(hidden) { this.hidden = hidden } getOpaque() { return this.opaque } setOpaque(opaque) { this.opaque = opaque } getUserInteraction() { return this.userInteraction } setUserInteraction(userInteraction) { this.userInteraction = userInteraction } } module.exports = View