static NativeLong getTvSec(Pointer p) { return p.getNativeLong(TS_OFFSET + timeval.TV_SEC_OFFSET); }
static NativeLong getTvUsec(Pointer p) { return p.getNativeLong(TS_OFFSET + timeval.TV_USEC_OFFSET); }
public NativeLong getValue() { return getPointer().getNativeLong(0); } }
static NativeLong getTvSec(Pointer p) { return p.getNativeLong(TS_OFFSET + timeval.TV_SEC_OFFSET); }
static NativeLong getTvUsec(Pointer p) { return p.getNativeLong(TS_OFFSET + timeval.TV_USEC_OFFSET); }
public NativeLong getValue() { return getPointer().getNativeLong(0); } }
public NativeLong getValue() { return getPointer().getNativeLong(0); } }
public long getNativeLong(long offset) { return ptr.getNativeLong(offset).longValue(); }
public NSUInteger getValue() { return new NSUInteger(getPointer().getNativeLong(0)); }
public NSInteger getValue() { return new NSInteger(getPointer().getNativeLong(0)); }
public VisualID getVisualID() { if (getPointer() != null) return new VisualID(getPointer().getNativeLong(Native.POINTER_SIZE).longValue()); throw new IllegalStateException("Attempting to retrieve VisualID from a null Visual"); } @Override
public Atom getValue() { NativeLong value = getPointer().getNativeLong(0); return (Atom)new Atom().fromNative(value, null); } }
public Atom getValue() { NativeLong value = getPointer().getNativeLong(0); return (Atom)new Atom().fromNative(value, null); } }
public NativeLong getVisualID() { if (getPointer() != null) return getPointer().getNativeLong(Native.POINTER_SIZE); return new NativeLong(0); } public String toString() {
public static final GType getGType(Pointer ptr) { // Retrieve ptr->g_class Pointer g_class = ptr.getPointer(0); // Now return g_class->gtype return GType.valueOf(g_class.getNativeLong(0).longValue()); } public static final Class<? extends NativeObject> classFor(Pointer ptr) {
public ID getValue() { return ID.fromLong(getPointer().getNativeLong(0).longValue()); }
public Window getValue() { NativeLong value = getPointer().getNativeLong(0); return value.longValue() == X11.None ? Window.None : new Window(value.longValue()); } }
public Window getValue() { NativeLong value = getPointer().getNativeLong(0); return value.longValue() == X11.None ? Window.None : new Window(value.longValue()); } }
/** * Gives the type value. */ public GType getType() { return new GType(new GObjectStruct(this).g_type_instance.g_class.getNativeLong(0).longValue()); } /**
public static ID getGlobal(String libraryName, String globalVarName) { return new ID(NativeLibrary.getInstance(libraryName).getGlobalVariableAddress(globalVarName).getNativeLong(0).longValue()); } }