コード例 #1
0
  public void openOnEdge(final long edge) {
    final com.apple.jobjc.Invoke.MsgSend openOnEdge_IMetInst = get_openOnEdge_IMetInst();

    final com.apple.jobjc.NativeArgumentBuffer nativeBuffer = getRuntime().getThreadLocalState();
    openOnEdge_IMetInst.init(nativeBuffer, this);
    com.apple.jobjc.MixedPrimitiveCoder.SIntULongLongCoder.push(nativeBuffer, edge);
    openOnEdge_IMetInst.invoke(nativeBuffer);
  }
コード例 #2
0
  public long preferredEdge() {
    final com.apple.jobjc.Invoke.MsgSend preferredEdge_IMetInst = get_preferredEdge_IMetInst();

    final com.apple.jobjc.NativeArgumentBuffer nativeBuffer = getRuntime().getThreadLocalState();
    preferredEdge_IMetInst.init(nativeBuffer, this);
    preferredEdge_IMetInst.invoke(nativeBuffer);
    final long returnValue =
        (long) (com.apple.jobjc.MixedPrimitiveCoder.SIntULongLongCoder.popLong(nativeBuffer));
    return returnValue;
  }
コード例 #3
0
  public <T extends com.apple.jobjc.ID> T initWithContentSize_preferredEdge(
      final com.apple.jobjc.foundation.NSSize contentSize, final long edge) {
    final com.apple.jobjc.Invoke.MsgSend initWithContentSize_preferredEdge_IMetInst =
        get_initWithContentSize_preferredEdge_IMetInst();

    final com.apple.jobjc.NativeArgumentBuffer nativeBuffer = getRuntime().getThreadLocalState();
    initWithContentSize_preferredEdge_IMetInst.init(nativeBuffer, this);
    com.apple.jobjc.foundation.NSSize.getStructCoder().push(nativeBuffer, contentSize);
    com.apple.jobjc.MixedPrimitiveCoder.SIntULongLongCoder.push(nativeBuffer, edge);
    initWithContentSize_preferredEdge_IMetInst.invoke(nativeBuffer);
    final com.apple.jobjc.ID returnValue =
        (com.apple.jobjc.ID) (com.apple.jobjc.Coder.IDCoder.INST.pop(nativeBuffer));
    return (T) returnValue;
  }