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.InitializerdefaultInit, LIFECYCLE, 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(java.lang.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, toStringpublic 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(java.lang.Class<T> subclass)
The result is cast to subclass.
subclass - the subclass to cast the result to.protected void ref()
ref in class RefCountedObjectprotected void unref()
unref in class RefCountedObjectprotected void disposeNativeHandle(com.sun.jna.Pointer ptr)
disposeNativeHandle in class NativeObject