public class MiniObject extends RefCountedObject
GObject
, but has been stripped down of
features to be fast and small.
It offers sub-classing and ref-counting in the same way as GObject does.
It has no properties and no signal-support though.NativeObject.Initializer
defaultInit, ownsHandle
Constructor and Description |
---|
MiniObject(NativeObject.Initializer init)
Creates a new instance of MiniObject
|
Modifier and Type | Method and Description |
---|---|
protected void |
disposeNativeHandle(com.sun.jna.Pointer ptr) |
boolean |
isWritable()
Checks if a mini-object is writable.
|
protected <T extends MiniObject> |
makeWritable(Class<T> subclass)
Makes a writable instance of this MiniObject.
|
protected void |
ref() |
protected void |
unref() |
classFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, initializer, instanceFor, invalidate, isDisposed, nativeValue, objectFor, objectFor, objectFor, objectFor, toString
public MiniObject(NativeObject.Initializer init)
public boolean isWritable()
MiniObjectFlags.READONLY
flag is not set. Modification of a mini-object should only be
done after verifying that it is writable.protected <T extends MiniObject> T makeWritable(Class<T> subclass)
The result is cast to subclass.
subclass
- the subclass to cast the result to.protected void ref()
ref
in class RefCountedObject
protected void unref()
unref
in class RefCountedObject
protected void disposeNativeHandle(com.sun.jna.Pointer ptr)
disposeNativeHandle
in class NativeObject
Copyright © 2016. All rights reserved.