public abstract class GObject extends RefCountedObject
See upstream documentation at https://developer.gnome.org/gobject/stable/gobject-The-Base-Object-Type.html
Modifier and Type | Class and Description |
---|---|
protected class |
GObject.GCallback |
static interface |
GObject.GInterface
Base interface for classes that implement a GInterface
|
protected static class |
GObject.Handle |
NativeObject.Initializer, NativeObject.TypeProvider, NativeObject.TypeRegistration<T extends NativeObject>
Modifier | Constructor and Description |
---|---|
protected |
GObject(GObject.Handle handle,
boolean needRef) |
protected |
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) |
<T> void |
connect(String signal,
Class<T> listenerClass,
T listener,
com.sun.jna.Callback cb) |
<T> void |
disconnect(Class<T> listenerClass,
T listener) |
void |
dispose()
Dispose this object, and potentially clear (free, unref, etc.) the
underlying native object if this object owns the reference.
|
<T extends NativeObject> |
emit(Class<T> resultType,
String signal,
Object... arguments) |
void |
emit(String signal,
Object... arguments) |
Object |
get(String property)
Gets the current value of a GObject 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.
|
int |
getRefCount()
Get the reference count for an object.
|
String |
getTypeName()
Get the native GType type name.
|
void |
invalidate()
Invalidate this object without clearing (free, unref, etc.) the
underlying native object.
|
List<String> |
listPropertyNames() |
protected <T> void |
removeCallback(Class<T> listenerClass,
T listener) |
void |
set(String property,
Object data)
Sets the value of a GObject property.
|
close, disown, equals, getPointer, getRawPointer, hashCode, toString
protected GObject(NativeObject.Initializer init)
protected GObject(GObject.Handle handle, boolean needRef)
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 <T extends NativeObject> T emit(Class<T> resultType, String signal, Object... arguments)
public Object get(String property)
property
- The name of the property to get.public Object getPropertyDefaultValue(String property)
property
- The name of the property.public Object getPropertyMaximumValue(String property)
property
- The name of the property.public Object getPropertyMinimumValue(String property)
property
- The name of the property.public int getRefCount()
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. As a convenience, NativeEnums will be converted to their
int value.protected <T> void addCallback(Class<T> listenerClass, T listener, GObject.GCallback cb)
public void dispose()
NativeObject
After calling this method this object should not be used.
dispose
in class NativeObject
public void invalidate()
NativeObject
After calling this method this object should not be used.
invalidate
in class NativeObject
protected <T> void removeCallback(Class<T> listenerClass, T listener)
Copyright © 2021 gstreamer-java. All rights reserved.