Stay organized with collections
Save and categorize content based on your preferences.
blockly > blockRendering > Icon
blockRendering.Icon class
An object containing information about the space an icon takes up during rendering.
Signature:
export declare class Icon extends Measurable
Extends: Measurable
Constructors
Properties
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["The `blockRendering.Icon` class stores information about the space an icon occupies during rendering within Blockly."],["It inherits from the `Measurable` class and includes properties like `flipRtl` (boolean) and `icon` (BlocklyIcon) to manage icon behavior and appearance."],["Constructed with rendering constants and the icon itself, this class helps define how icons are displayed within Blockly blocks."]]],["The `blockRendering.Icon` class, extending `Measurable`, manages the space an icon occupies during rendering. It's constructed with rendering constants and an `BlocklyIcon` instance. Key properties include `flipRtl`, a boolean indicating if the icon should be flipped in right-to-left layouts, and `icon`, a `BlocklyIcon` object representing the specific icon. This class defines how much space the visual icon will occupy, including constructor's information.\n"]]