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

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

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

WidgetGroup.removeActor介绍

暂无

代码示例

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

  1. public boolean removeActor (Actor actor, boolean unfocus) {
  2. if (actor == null) throw new IllegalArgumentException("actor cannot be null.");
  3. if (actor != this.actor) return false;
  4. this.actor = null;
  5. return super.removeActor(actor, unfocus);
  6. }

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

  1. public boolean removeActor (Actor actor, boolean unfocus) {
  2. if (actor == null) throw new IllegalArgumentException("actor cannot be null.");
  3. if (actor != widget) return false;
  4. this.widget = null;
  5. return super.removeActor(actor, unfocus);
  6. }

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

  1. public boolean removeActor (Actor actor, boolean unfocus) {
  2. if (actor == null) throw new IllegalArgumentException("actor cannot be null.");
  3. if (actor != widget) return false;
  4. this.widget = null;
  5. return super.removeActor(actor, unfocus);
  6. }

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

  1. public boolean removeActor (Actor actor, boolean unfocus) {
  2. if (actor == null) throw new IllegalArgumentException("actor cannot be null.");
  3. if (actor != this.actor) return false;
  4. this.actor = null;
  5. return super.removeActor(actor, unfocus);
  6. }

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

  1. /** @param actor May be null. */
  2. public void setActor (T actor) {
  3. if (actor == this) throw new IllegalArgumentException("actor cannot be the Container.");
  4. if (actor == this.actor) return;
  5. if (this.actor != null) super.removeActor(this.actor);
  6. this.actor = actor;
  7. if (actor != null) super.addActor(actor);
  8. }

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

  1. public boolean removeActor (Actor actor, boolean unfocus) {
  2. if (!super.removeActor(actor, unfocus)) return false;
  3. Cell cell = getCell(actor);
  4. if (cell != null) cell.actor = null;
  5. return true;
  6. }

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

  1. /** Sets the {@link Actor} embedded in this scroll pane.
  2. * @param actor May be null to remove any current actor. */
  3. public void setActor (Actor actor) {
  4. if (widget == this) throw new IllegalArgumentException("widget cannot be the ScrollPane.");
  5. if (this.widget != null) super.removeActor(this.widget);
  6. this.widget = actor;
  7. if (widget != null) super.addActor(widget);
  8. }

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

  1. public boolean removeActor (Actor actor, boolean unfocus) {
  2. if (!super.removeActor(actor, unfocus)) return false;
  3. Cell cell = getCell(actor);
  4. if (cell != null) cell.actor = null;
  5. return true;
  6. }

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

  1. /** @param actor May be null. */
  2. public void setActor (T actor) {
  3. if (actor == this) throw new IllegalArgumentException("actor cannot be the Container.");
  4. if (actor == this.actor) return;
  5. if (this.actor != null) super.removeActor(this.actor);
  6. this.actor = actor;
  7. if (actor != null) super.addActor(actor);
  8. }

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

  1. /** Sets the {@link Actor} embedded in this scroll pane.
  2. * @param actor May be null to remove any current actor. */
  3. public void setActor (Actor actor) {
  4. if (widget == this) throw new IllegalArgumentException("widget cannot be the ScrollPane.");
  5. if (this.widget != null) super.removeActor(this.widget);
  6. this.widget = actor;
  7. if (widget != null) super.addActor(widget);
  8. }

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

  1. public boolean removeActor (Actor actor, boolean unfocus) {
  2. if (actor == null) throw new IllegalArgumentException("actor cannot be null.");
  3. if (actor == firstWidget) {
  4. super.removeActor(actor, unfocus);
  5. firstWidget = null;
  6. invalidate();
  7. return true;
  8. }
  9. if (actor == secondWidget) {
  10. super.removeActor(actor, unfocus);
  11. secondWidget = null;
  12. invalidate();
  13. return true;
  14. }
  15. return false;
  16. }

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

  1. public boolean removeActor (Actor actor, boolean unfocus) {
  2. if (actor == null) throw new IllegalArgumentException("actor cannot be null.");
  3. if (actor == firstWidget) {
  4. super.removeActor(actor, unfocus);
  5. firstWidget = null;
  6. invalidate();
  7. return true;
  8. }
  9. if (actor == secondWidget) {
  10. super.removeActor(actor, unfocus);
  11. secondWidget = null;
  12. invalidate();
  13. return true;
  14. }
  15. return false;
  16. }

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

  1. /** @param widget May be null. */
  2. public void setFirstWidget (Actor widget) {
  3. if (firstWidget != null) super.removeActor(firstWidget);
  4. firstWidget = widget;
  5. if (widget != null) super.addActor(widget);
  6. invalidate();
  7. }

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

  1. /** @param widget May be null. */
  2. public void setSecondWidget (Actor widget) {
  3. if (secondWidget != null) super.removeActor(secondWidget);
  4. secondWidget = widget;
  5. if (widget != null) super.addActor(widget);
  6. invalidate();
  7. }

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

  1. /** @param widget May be null. */
  2. public void setFirstWidget (Actor widget) {
  3. if (firstWidget != null) super.removeActor(firstWidget);
  4. firstWidget = widget;
  5. if (widget != null) super.addActor(widget);
  6. invalidate();
  7. }

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

  1. /** @param widget May be null. */
  2. public void setSecondWidget (Actor widget) {
  3. if (secondWidget != null) super.removeActor(secondWidget);
  4. secondWidget = widget;
  5. if (widget != null) super.addActor(widget);
  6. invalidate();
  7. }

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

  1. public boolean removeActor (Actor actor, boolean unfocus) {
  2. if (!super.removeActor(actor, unfocus)) return false;
  3. Cell cell = getCell(actor);
  4. if (cell != null) cell.actor = null;
  5. return true;
  6. }

代码示例来源:origin: kotcrab/vis-ui

  1. /** @param widget May be null. */
  2. public void setSecondWidget (Actor widget) {
  3. if (secondWidget != null) super.removeActor(secondWidget);
  4. secondWidget = widget;
  5. if (widget != null) super.addActor(widget);
  6. invalidate();
  7. }

代码示例来源:origin: kotcrab/vis-ui

  1. /** @param widget May be null. */
  2. public void setFirstWidget (Actor widget) {
  3. if (firstWidget != null) super.removeActor(firstWidget);
  4. firstWidget = widget;
  5. if (widget != null) super.addActor(widget);
  6. invalidate();
  7. }

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

  1. /** @param widget May be null. */
  2. public void setFirstWidget (Actor widget) {
  3. if (firstWidget != null) super.removeActor(firstWidget);
  4. firstWidget = widget;
  5. if (widget != null) super.addActor(widget);
  6. invalidate();
  7. }

相关文章