研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly >飞出 >initFlyoutButton_
初始化指定的按钮:将其移动到正确的位置、添加监听器等。
Signature:
protected initFlyoutButton_(button: FlyoutButton, x: number, y: number): void;
参数
参数 |
类型 |
说明 |
按钮 |
FlyoutButton |
要初始化和放置的按钮。 |
x |
number |
在此布局传递期间光标的 x 位置。 |
y |
number |
在此布局传递期间光标的 y 位置。 |
返回:
void
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-12。
[null,null,["最后更新时间 (UTC):2024-09-12。"],[[["The `initFlyoutButton_` method is used to initialize and position buttons within a Blockly flyout."],["It takes a `FlyoutButton` object, along with x and y coordinates, to determine the button's placement within the flyout."],["This method is marked as protected, indicating it's primarily for internal use within the Flyout class."]]],[]]