63 public abstract void setAnchor(android.graphics.PointF anchor);
97 private final long nativeRef;
98 private final AtomicBoolean destroyed =
new AtomicBoolean(
false);
100 private CppProxy(
long nativeRef)
102 if (nativeRef == 0)
throw new RuntimeException(
"nativeRef is zero");
103 this.nativeRef = nativeRef;
106 private native
void nativeDestroy(
long nativeRef);
107 public void _djinni_private_destroy()
109 boolean destroyed = this.destroyed.getAndSet(
true);
110 if (!destroyed) nativeDestroy(this.nativeRef);
112 protected void finalize() throws
java.lang.Throwable
114 _djinni_private_destroy();
121 public void setVisible(
boolean visible)
123 assert !this.destroyed.get() :
"trying to use a destroyed object";
124 native_setVisible(this.nativeRef, visible);
126 private native
void native_setVisible(
long _nativeRef,
boolean visible);
129 public boolean isVisible()
131 assert !this.destroyed.get() :
"trying to use a destroyed object";
132 return native_isVisible(this.nativeRef);
134 private native
boolean native_isVisible(
long _nativeRef);
137 public void setAnchor(android.graphics.PointF anchor)
139 assert !this.destroyed.get() :
"trying to use a destroyed object";
140 native_setAnchor(this.nativeRef, anchor);
142 private native
void native_setAnchor(
long _nativeRef, android.graphics.PointF anchor);
145 public void resetAnchor()
147 assert !this.destroyed.get() :
"trying to use a destroyed object";
148 native_resetAnchor(this.nativeRef);
150 private native
void native_resetAnchor(
long _nativeRef);
153 public boolean anchorEnabled()
155 assert !this.destroyed.get() :
"trying to use a destroyed object";
156 return native_anchorEnabled(this.nativeRef);
158 private native
boolean native_anchorEnabled(
long _nativeRef);