本文整理了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
暂无
代码示例来源:origin: libgdx/libgdx
public boolean removeActor (Actor actor, boolean unfocus) {
if (actor == null) throw new IllegalArgumentException("actor cannot be null.");
if (actor != this.actor) return false;
this.actor = null;
return super.removeActor(actor, unfocus);
}
代码示例来源:origin: libgdx/libgdx
public boolean removeActor (Actor actor, boolean unfocus) {
if (actor == null) throw new IllegalArgumentException("actor cannot be null.");
if (actor != widget) return false;
this.widget = null;
return super.removeActor(actor, unfocus);
}
代码示例来源:origin: libgdx/libgdx
public boolean removeActor (Actor actor, boolean unfocus) {
if (actor == null) throw new IllegalArgumentException("actor cannot be null.");
if (actor != widget) return false;
this.widget = null;
return super.removeActor(actor, unfocus);
}
代码示例来源:origin: libgdx/libgdx
public boolean removeActor (Actor actor, boolean unfocus) {
if (actor == null) throw new IllegalArgumentException("actor cannot be null.");
if (actor != this.actor) return false;
this.actor = null;
return super.removeActor(actor, unfocus);
}
代码示例来源:origin: libgdx/libgdx
/** @param actor May be null. */
public void setActor (T actor) {
if (actor == this) throw new IllegalArgumentException("actor cannot be the Container.");
if (actor == this.actor) return;
if (this.actor != null) super.removeActor(this.actor);
this.actor = actor;
if (actor != null) super.addActor(actor);
}
代码示例来源:origin: libgdx/libgdx
public boolean removeActor (Actor actor, boolean unfocus) {
if (!super.removeActor(actor, unfocus)) return false;
Cell cell = getCell(actor);
if (cell != null) cell.actor = null;
return true;
}
代码示例来源:origin: libgdx/libgdx
/** Sets the {@link Actor} embedded in this scroll pane.
* @param actor May be null to remove any current actor. */
public void setActor (Actor actor) {
if (widget == this) throw new IllegalArgumentException("widget cannot be the ScrollPane.");
if (this.widget != null) super.removeActor(this.widget);
this.widget = actor;
if (widget != null) super.addActor(widget);
}
代码示例来源:origin: libgdx/libgdx
public boolean removeActor (Actor actor, boolean unfocus) {
if (!super.removeActor(actor, unfocus)) return false;
Cell cell = getCell(actor);
if (cell != null) cell.actor = null;
return true;
}
代码示例来源:origin: libgdx/libgdx
/** @param actor May be null. */
public void setActor (T actor) {
if (actor == this) throw new IllegalArgumentException("actor cannot be the Container.");
if (actor == this.actor) return;
if (this.actor != null) super.removeActor(this.actor);
this.actor = actor;
if (actor != null) super.addActor(actor);
}
代码示例来源:origin: libgdx/libgdx
/** Sets the {@link Actor} embedded in this scroll pane.
* @param actor May be null to remove any current actor. */
public void setActor (Actor actor) {
if (widget == this) throw new IllegalArgumentException("widget cannot be the ScrollPane.");
if (this.widget != null) super.removeActor(this.widget);
this.widget = actor;
if (widget != null) super.addActor(widget);
}
代码示例来源:origin: libgdx/libgdx
public boolean removeActor (Actor actor, boolean unfocus) {
if (actor == null) throw new IllegalArgumentException("actor cannot be null.");
if (actor == firstWidget) {
super.removeActor(actor, unfocus);
firstWidget = null;
invalidate();
return true;
}
if (actor == secondWidget) {
super.removeActor(actor, unfocus);
secondWidget = null;
invalidate();
return true;
}
return false;
}
代码示例来源:origin: libgdx/libgdx
public boolean removeActor (Actor actor, boolean unfocus) {
if (actor == null) throw new IllegalArgumentException("actor cannot be null.");
if (actor == firstWidget) {
super.removeActor(actor, unfocus);
firstWidget = null;
invalidate();
return true;
}
if (actor == secondWidget) {
super.removeActor(actor, unfocus);
secondWidget = null;
invalidate();
return true;
}
return false;
}
代码示例来源:origin: libgdx/libgdx
/** @param widget May be null. */
public void setFirstWidget (Actor widget) {
if (firstWidget != null) super.removeActor(firstWidget);
firstWidget = widget;
if (widget != null) super.addActor(widget);
invalidate();
}
代码示例来源:origin: libgdx/libgdx
/** @param widget May be null. */
public void setSecondWidget (Actor widget) {
if (secondWidget != null) super.removeActor(secondWidget);
secondWidget = widget;
if (widget != null) super.addActor(widget);
invalidate();
}
代码示例来源:origin: libgdx/libgdx
/** @param widget May be null. */
public void setFirstWidget (Actor widget) {
if (firstWidget != null) super.removeActor(firstWidget);
firstWidget = widget;
if (widget != null) super.addActor(widget);
invalidate();
}
代码示例来源:origin: libgdx/libgdx
/** @param widget May be null. */
public void setSecondWidget (Actor widget) {
if (secondWidget != null) super.removeActor(secondWidget);
secondWidget = widget;
if (widget != null) super.addActor(widget);
invalidate();
}
代码示例来源:origin: com.badlogicgames.gdx/gdx
public boolean removeActor (Actor actor, boolean unfocus) {
if (!super.removeActor(actor, unfocus)) return false;
Cell cell = getCell(actor);
if (cell != null) cell.actor = null;
return true;
}
代码示例来源:origin: kotcrab/vis-ui
/** @param widget May be null. */
public void setSecondWidget (Actor widget) {
if (secondWidget != null) super.removeActor(secondWidget);
secondWidget = widget;
if (widget != null) super.addActor(widget);
invalidate();
}
代码示例来源:origin: kotcrab/vis-ui
/** @param widget May be null. */
public void setFirstWidget (Actor widget) {
if (firstWidget != null) super.removeActor(firstWidget);
firstWidget = widget;
if (widget != null) super.addActor(widget);
invalidate();
}
代码示例来源:origin: com.badlogicgames.gdx/gdx
/** @param widget May be null. */
public void setFirstWidget (Actor widget) {
if (firstWidget != null) super.removeActor(firstWidget);
firstWidget = widget;
if (widget != null) super.addActor(widget);
invalidate();
}
内容来源于网络,如有侵权,请联系作者删除!