public abstract class GObject extends RefCountedObject
Modifier and Type | Class and Description |
---|---|
protected class |
GObject.GCallback |
static interface |
GObject.NOTIFY
The notify signal is emitted on an object when one of its properties has been changed.
|
NativeObject.Initializer
defaultInit, ownsHandle
Constructor and Description |
---|
GObject(NativeObject.Initializer init) |
Modifier and Type | Method and Description |
---|---|
protected <T> void |
addCallback(Class<T> listenerClass,
T listener,
GObject.GCallback cb) |
<T> void |
connect(Class<T> listenerClass,
T listener,
com.sun.jna.Callback cb) |
void |
connect(GObject.NOTIFY listener)
Add a listener for the
notify signal |
<T> void |
connect(String signal,
Class<T> listenerClass,
T listener,
com.sun.jna.Callback cb) |
void |
connect(String signal,
Closure closure) |
<T> void |
disconnect(Class<T> listenerClass,
T listener) |
void |
disconnect(GObject.NOTIFY listener)
Remove a listener for the
notify signal |
void |
disconnect(String signal,
Closure closure) |
protected void |
disposeNativeHandle(com.sun.jna.Pointer ptr) |
void |
emit(int signal_id,
GQuark detail,
Object... arguments) |
void |
emit(String signal,
Object... arguments) |
protected com.sun.jna.NativeLong |
g_signal_connect(String signal,
com.sun.jna.Callback callback) |
Object |
get(String property)
Gets the current value of a GObject property.
|
com.sun.jna.Pointer |
getPointer(String property)
Gets the pointer to the the value of the specified property.
|
Object |
getPropertyDefaultValue(String property)
Gets the default value set to GObject property.
|
Object |
getPropertyMaximumValue(String property)
Gets the maximum value should be set to GObject property.
|
Object |
getPropertyMinimumValue(String property)
Gets the minimum value should be set to GObject property.
|
GType |
getType()
Gives the type value.
|
GType |
getType(String property) |
String |
getTypeName()
Gives the type name.
|
protected void |
invalidate() |
List<String> |
listPropertyNames() |
protected void |
ref() |
<T> void |
removeCallback(Class<T> listenerClass,
T listener) |
void |
set(String property,
Object data)
Sets the value of a GObject property.
|
protected void |
unref() |
classFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, initializer, instanceFor, isDisposed, nativeValue, objectFor, objectFor, objectFor, objectFor, toString
public GObject(NativeObject.Initializer init)
public GType getType()
public String getTypeName()
public void set(String property, Object data)
property
- The property to set.data
- The value for the property. This must be of the type expected
by gstreamer.public Object getPropertyDefaultValue(String property)
property
- The name of the property.public Object getPropertyMinimumValue(String property)
property
- The name of the property.public Object getPropertyMaximumValue(String property)
property
- The name of the property.public Object get(String property)
property
- The name of the property to get.public com.sun.jna.Pointer getPointer(String property)
property
- The name of the property to get.protected void disposeNativeHandle(com.sun.jna.Pointer ptr)
disposeNativeHandle
in class NativeObject
protected void ref()
ref
in class RefCountedObject
protected void unref()
unref
in class RefCountedObject
protected void invalidate()
invalidate
in class NativeObject
protected com.sun.jna.NativeLong g_signal_connect(String signal, com.sun.jna.Callback callback)
protected <T> void addCallback(Class<T> listenerClass, T listener, GObject.GCallback cb)
public <T> void removeCallback(Class<T> listenerClass, T listener)
public <T> void connect(Class<T> listenerClass, T listener, com.sun.jna.Callback cb)
public <T> void connect(String signal, Class<T> listenerClass, T listener, com.sun.jna.Callback cb)
public <T> void disconnect(Class<T> listenerClass, T listener)
public void connect(GObject.NOTIFY listener)
notify
signallistener
- Listener to be called when one of its properties has been changed of the object.public void disconnect(GObject.NOTIFY listener)
notify
signallistener
- The listener that was previously added.Copyright © 2016. All rights reserved.