For IntelliJ IDEA,
Android Studio or Eclipse



/** Frees all resources associated with this Mesh */ public void dispose () { if (meshes.get(Gdx.app) != null) meshes.get(Gdx.app).removeValue(this, true); vertices.dispose(); indices.dispose(); }
@Override public void removeLifecycleListener(LifecycleListener listener) { synchronized (lifecycleListeners) { lifecycleListeners.removeValue(listener, true); } }
public Environment remove (PointLight light) { if (has(PointLightsAttribute.Type)) { PointLightsAttribute pointLights = ((PointLightsAttribute)get(PointLightsAttribute.Type)); pointLights.lights.removeValue(light, false); if (pointLights.lights.size == 0) remove(PointLightsAttribute.Type); } return this; }
/** Destroy a fixture. This removes the fixture from the broad-phase and destroys all contacts associated with this fixture. * This will automatically adjust the mass of the body if the body is dynamic and the fixture has positive density. All * fixtures attached to a body are implicitly destroyed when the body is destroyed. * @param fixture the fixture to be removed. * @warning This function is locked during callbacks. */ public void destroyFixture (Fixture fixture) { this.world.destroyFixture(this, fixture); fixture.setUserData(null); this.world.fixtures.remove(fixture.addr); this.fixtures.removeValue(fixture, true); this.world.freeFixtures.free(fixture); }
@Override public void dispose() { if (pixmapCopy == null) { throw new GdxRuntimeException("Cursor already disposed"); } cursors.removeValue(this, true); pixmapCopy.dispose(); pixmapCopy = null; glfwImage.free(); GLFW.glfwDestroyCursor(glfwCursor); }
public void stop () { if (audio.noDevice) return; if (sourceID == -1) return; audio.music.removeValue(this, true); reset(); audio.freeSource(sourceID); sourceID = -1; renderedSeconds = 0; renderedSecondsQueue.clear(); isPlaying = false; }
public void remove (T button) { if (button == null) throw new IllegalArgumentException("button cannot be null."); button.buttonGroup = null; buttons.removeValue(button, true); checkedButtons.removeValue(button, true); }
public void detach(int aEventType, Listener aListener) { Array<Listener> listeners = mListeners.get(aEventType); if(listeners != null) { listeners.removeValue(aListener, true); if(listeners.size == 0) mListeners.remove(aEventType); } }
/** Disposes all resources associated with the cubemap */ @Override public void dispose () { // this is a hack. reason: we have to set the glHandle to 0 for textures that are // reloaded through the asset manager as we first remove (and thus dispose) the texture // and then reload it. the glHandle is set to 0 in invalidateAllTextures prior to // removal from the asset manager. if (glHandle == 0) return; delete(); if (data.isManaged()) if (managedCubemaps.get(Gdx.app) != null) managedCubemaps.get(Gdx.app).removeValue(this, true); }
public boolean add (T key, int index) { if (!super.add(key)) { items.removeValue(key, true); items.insert(index, key); return false; } items.insert(index, key); return true; }
/** Removes an event listener for Android specific event such as onActivityResult(...). */ public void removeAndroidEventListener (AndroidEventListener listener) { synchronized (androidEventListeners) { androidEventListeners.removeValue(listener, true); } }
/** Removes an event listener for Android specific event such as onActivityResult(...). */ public void removeAndroidEventListener (AndroidEventListener listener) { synchronized (androidEventListeners) { androidEventListeners.removeValue(listener, true); } }
/** Removes the specified node as child of this node. On success, the child node will be not attached to any parent node (its * {@link #getParent()} method will return null). If the specified node currently isn't a child of this node then the removal * is considered to be unsuccessful and the method will return false. * @param child The child node to remove. * @return Whether the removal was successful. */ public <T extends Node> boolean removeChild (final T child) { if (!children.removeValue(child, true)) return false; child.parent = null; return true; }
@Override public void removeListener (ControllerListener listener) { synchronized (eventQueue) { listeners.removeValue(listener, true); } }
@Override public void removeLifecycleListener (LifecycleListener listener) { synchronized(lifecycleListeners) { lifecycleListeners.removeValue(listener, true); } }