本文整理了Java中com.badlogic.gdx.scenes.scene2d.ui.Table.clearChildren()
方法的一些代码示例,展示了Table.clearChildren()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.clearChildren()
方法的具体详情如下:
包路径:com.badlogic.gdx.scenes.scene2d.ui.Table
类名称:Table
方法名:clearChildren
[英]Removes all actors and cells from the table.
[中]从表中删除所有参与者和单元格。
代码示例来源:origin: libgdx/libgdx
/** Removes all actors and cells from the table (same as {@link #clearChildren()}) and additionally resets all table properties
* and cell, column, and row defaults. */
public void reset () {
clearChildren();
padTop = backgroundTop;
padLeft = backgroundLeft;
padBottom = backgroundBottom;
padRight = backgroundRight;
align = Align.center;
debug(Debug.none);
cellDefaults.reset();
for (int i = 0, n = columnDefaults.size; i < n; i++) {
Cell columnCell = columnDefaults.get(i);
if (columnCell != null) cellPool.free(columnCell);
}
columnDefaults.clear();
}
代码示例来源:origin: libgdx/libgdx
/** Removes all actors and cells from the table (same as {@link #clearChildren()}) and additionally resets all table properties
* and cell, column, and row defaults. */
public void reset () {
clearChildren();
padTop = backgroundTop;
padLeft = backgroundLeft;
padBottom = backgroundBottom;
padRight = backgroundRight;
align = Align.center;
debug(Debug.none);
cellDefaults.reset();
for (int i = 0, n = columnDefaults.size; i < n; i++) {
Cell columnCell = columnDefaults.get(i);
if (columnCell != null) cellPool.free(columnCell);
}
columnDefaults.clear();
}
代码示例来源:origin: com.badlogicgames.gdx/gdx
/** Removes all actors and cells from the table (same as {@link #clearChildren()}) and additionally resets all table properties
* and cell, column, and row defaults. */
public void reset () {
clearChildren();
padTop = backgroundTop;
padLeft = backgroundLeft;
padBottom = backgroundBottom;
padRight = backgroundRight;
align = Align.center;
debug(Debug.none);
cellDefaults.reset();
for (int i = 0, n = columnDefaults.size; i < n; i++) {
Cell columnCell = columnDefaults.get(i);
if (columnCell != null) cellPool.free(columnCell);
}
columnDefaults.clear();
}
代码示例来源:origin: jsjolund/GdxDemo3D
steerSettings.clearChildren();
steerSettings.add(humanSteerSettings);
steerSettings.invalidateHierarchy();
steerSettings.clearChildren();
steerSettings.add(dogSteerSettings);
steerSettings.invalidateHierarchy();
内容来源于网络,如有侵权,请联系作者删除!