Skip to main content

Home > blockly > icons

icons namespace

Classes

ClassDescription
CommentIconAn icon which allows the user to add comment text to a block.
IconTypeDefines the type of an icon, so that it can be retrieved from block.getIcon
MutatorIconAn icon that allows the user to change the shape of the block. For example, it could be used to add additional fields or inputs to the block.
WarningIconAn icon that warns the user that something is wrong with their block. For example, this could be used to warn them about incorrect field values, or incorrect placement of the block (putting it somewhere it doesn't belong).

Abstract Classes

Abstract ClassDescription
IconThe abstract icon class. Icons are visual elements that live in the top-start corner of the block. Usually they provide more "meta" information about a block (such as warnings or comments) as opposed to fields, which provide "actual" information, related to how a block functions.

Interfaces

InterfaceDescription
CommentStateThe save state format for a comment icon.

Namespaces

NamespaceDescription
exceptions
registry