@Override public boolean shouldChangeCharacters (UITextField textField, NSRange range, String string) { for (int i = 0; i < range.getLength(); i++) { app.input.inputProcessor.keyTyped((char)8); } if (string.isEmpty()) { if (range.getLength() > 0) Gdx.graphics.requestRendering(); return false; } char[] chars = new char[string.length()]; string.getChars(0, string.length(), chars, 0); for (int i = 0; i < chars.length; i++) { app.input.inputProcessor.keyTyped(chars[i]); } Gdx.graphics.requestRendering(); return true; }
@Override public boolean shouldChangeCharacters (UITextField textField, NSRange range, String string) { for (int i = 0; i < range.getLength(); i++) { app.input.inputProcessor.keyTyped((char)8); } if (string.isEmpty()) { if (range.getLength() > 0) Gdx.graphics.requestRendering(); return false; } char[] chars = new char[string.length()]; string.getChars(0, string.length(), chars, 0); for (int i = 0; i < chars.length; i++) { app.input.inputProcessor.keyTyped(chars[i]); } Gdx.graphics.requestRendering(); return true; }
public long getMaxRange() { return getLocation() + getLength(); }
public boolean isLocationInRange(long location) { return (!(location < getLocation()) && (location - getLocation()) < getLength()); }
/** * @since Available in iOS 7.0 and later. */ public int[] getIndexes(NSRange positionRange) { int n = (int) getLength(); MachineSizedUIntPtr p = Struct.allocate(MachineSizedUIntPtr.class, (int)positionRange.getLength()); getIndexes(p, positionRange); return p.toIntArray(n); }
public long getMaxRange() { return getLocation() + getLength(); }
public long getMaxRange() { return getLocation() + getLength(); }
@Override public boolean shouldChangeCharacters (UITextField textField, NSRange range, String string) { for (int i = 0; i < range.getLength(); i++) { app.input.inputProcessor.keyTyped((char)8); } if (string.isEmpty()) { if (range.getLength() > 0) Gdx.graphics.requestRendering(); return false; } char[] chars = new char[string.length()]; string.getChars(0, string.length(), chars, 0); for (int i = 0; i < chars.length; i++) { app.input.inputProcessor.keyTyped(chars[i]); } Gdx.graphics.requestRendering(); return true; }
public boolean isLocationInRange(long location) { return (!(location < getLocation()) && (location - getLocation()) < getLength()); }
public boolean isLocationInRange(long location) { return (!(location < getLocation()) && (location - getLocation()) < getLength()); }
/** * @since Available in iOS 7.0 and later. */ public int[] getIndexes(NSRange positionRange) { int n = (int) getLength(); MachineSizedUIntPtr p = Struct.allocate(MachineSizedUIntPtr.class, (int)positionRange.getLength()); getIndexes(p, positionRange); return p.toIntArray(n); }
/** * @since Available in iOS 7.0 and later. */ public int[] getIndexes(NSRange positionRange) { int n = (int) getLength(); MachineSizedUIntPtr p = Struct.allocate(MachineSizedUIntPtr.class, (int)positionRange.getLength()); getIndexes(p, positionRange); return p.toIntArray(n); }