/*
 * Copyright 2023 MicroEJ Corp. All rights reserved.
 * This library is provided in source code for use, modification and test, subject to license terms.
 * Any modification of the source code will break MicroEJ Corp. warranties on the whole library.
 */

package ej.widget.event;

/**
 * A button-like interactive element receives notifications from a {@link ClickEventHandler}.
 */
public interface Clickable {

	/**
	 * Changes the clickable element state.
	 *
	 * @param pressed
	 *            {@code true} if the element is pressed, {@code false} otherwise.
	 */
	void setPressed(boolean pressed);

}
