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

x33g5p2x  于2022-02-03 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(162)

本文整理了Java中com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup.clearChildren()方法的一些代码示例,展示了WidgetGroup.clearChildren()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WidgetGroup.clearChildren()方法的具体详情如下:
包路径:com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup
类名称:WidgetGroup
方法名:clearChildren

WidgetGroup.clearChildren介绍

暂无

代码示例

代码示例来源:origin: libgdx/libgdx

  1. /** Removes all tree nodes. */
  2. public void clearChildren () {
  3. super.clearChildren();
  4. setOverNode(null);
  5. rootNodes.clear();
  6. selection.clear();
  7. }

代码示例来源:origin: libgdx/libgdx

  1. /** Removes all tree nodes. */
  2. public void clearChildren () {
  3. super.clearChildren();
  4. setOverNode(null);
  5. rootNodes.clear();
  6. selection.clear();
  7. }

代码示例来源:origin: libgdx/libgdx

  1. /** Removes all actors and cells from the table. */
  2. public void clearChildren () {
  3. Array<Cell> cells = this.cells;
  4. for (int i = cells.size - 1; i >= 0; i--) {
  5. Cell cell = cells.get(i);
  6. Actor actor = cell.actor;
  7. if (actor != null) actor.remove();
  8. }
  9. cellPool.freeAll(cells);
  10. cells.clear();
  11. rows = 0;
  12. columns = 0;
  13. if (rowDefaults != null) cellPool.free(rowDefaults);
  14. rowDefaults = null;
  15. implicitEndRow = false;
  16. super.clearChildren();
  17. }

代码示例来源:origin: libgdx/libgdx

  1. /** Removes all actors and cells from the table. */
  2. public void clearChildren () {
  3. Array<Cell> cells = this.cells;
  4. for (int i = cells.size - 1; i >= 0; i--) {
  5. Cell cell = cells.get(i);
  6. Actor actor = cell.actor;
  7. if (actor != null) actor.remove();
  8. }
  9. cellPool.freeAll(cells);
  10. cells.clear();
  11. rows = 0;
  12. columns = 0;
  13. if (rowDefaults != null) cellPool.free(rowDefaults);
  14. rowDefaults = null;
  15. implicitEndRow = false;
  16. super.clearChildren();
  17. }

代码示例来源:origin: com.badlogicgames.gdx/gdx

  1. /** Removes all tree nodes. */
  2. public void clearChildren () {
  3. super.clearChildren();
  4. setOverNode(null);
  5. rootNodes.clear();
  6. selection.clear();
  7. }

代码示例来源:origin: com.badlogicgames.gdx/gdx

  1. /** Removes all actors and cells from the table. */
  2. public void clearChildren () {
  3. Array<Cell> cells = this.cells;
  4. for (int i = cells.size - 1; i >= 0; i--) {
  5. Cell cell = cells.get(i);
  6. Actor actor = cell.actor;
  7. if (actor != null) actor.remove();
  8. }
  9. cellPool.freeAll(cells);
  10. cells.clear();
  11. rows = 0;
  12. columns = 0;
  13. if (rowDefaults != null) cellPool.free(rowDefaults);
  14. rowDefaults = null;
  15. implicitEndRow = false;
  16. super.clearChildren();
  17. }

相关文章