com.badlogic.gdx.scenes.scene2d.ui.Table.clearChildren()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(92)

本文整理了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

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();

相关文章

微信公众号

最新文章

更多