Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
blockly > blockRendering > RenderInfo > getDesiredRowWidth_
Méthode blockRendering.RenderInfo.getDesiredRowWidth_()
Calculez la largeur souhaitée d'une ligne d'entrée.
Signature :
protected getDesiredRowWidth_(_row: Row): number;
Paramètres
Paramètre |
Type |
Description |
_row |
Ligne |
Ligne d'entrée. |
Renvoie :
Nombre
Largeur souhaitée de la ligne d'entrée.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2024/08/21 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2024/08/21 (UTC)."],[[["The `getDesiredRowWidth_` method calculates the desired width of a given input row within a Blockly block rendering."],["This protected method belongs to the `RenderInfo` class within the `blockRendering` namespace of Blockly."],["It accepts a single argument, `_row`, which is an instance of the `Row` class, representing the row to measure."],["The method returns a numerical value representing the calculated desired width of the input row."]]],["The `getDesiredRowWidth_` method, part of `blockRendering.RenderInfo`, calculates the intended width for a given input row. It accepts a `Row` object as a parameter. The method's purpose is to determine and return the numerical desired width of that specific input row, allowing for proper layout and rendering of blocks. It's a protected method.\n"]]