研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly > 图标
图标命名空间
类
抽象类
抽象类 |
说明 |
Icon |
抽象图标类。图标是位于块顶端的一角的视觉元素。通常情况下,它们提供关于块的更多“元”信息(例如警告或注释),而字段则提供与块运作方式相关的“实际”信息。 |
接口
命名空间
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-05-20。
[null,null,["最后更新时间 (UTC):2024-05-20。"],[[["The `icons` namespace in Blockly defines visual elements that provide meta-information about blocks."],["It includes classes for comment icons, mutator icons, and warning icons, offering ways to interact with and modify blocks."],["An abstract `Icon` class serves as the base for all block icons."],["Interfaces and namespaces within the `icons` namespace manage comment states, exceptions, and icon registry functionalities."]]],["The `icons` namespace within Blockly contains classes, abstract classes, interfaces, and namespaces related to block icons. Key components include `CommentIcon` for adding comments, `MutatorIcon` for shape changes, and `WarningIcon` for error alerts. The `IconType` class defines icon retrieval, and the abstract `Icon` class is a visual element providing block metadata. `CommentState` interface manages the comment icon's save state. Additional namespaces `exceptions` and `registry` are also included.\n"]]