Files
blockly/core/interfaces/i_styleable.ts
Beka Westberg ed531ec313 chore: remove all namespace comments (#6903)
* chore: remove all namespace comments

* chore: fix lint
2023-03-20 09:43:58 -07:00

29 lines
630 B
TypeScript

/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import * as goog from '../../closure/goog/goog.js';
goog.declareModuleId('Blockly.IStyleable');
/**
* Interface for an object that a style can be added to.
*/
export interface IStyleable {
/**
* Adds a style on the toolbox. Usually used to change the cursor.
*
* @param style The name of the class to add.
*/
addStyle(style: string): void;
/**
* Removes a style from the toolbox. Usually used to change the cursor.
*
* @param style The name of the class to remove.
*/
removeStyle(style: string): void;
}