60 public abstract void setAnchor(android.graphics.PointF anchor);
94 private final long nativeRef;
95 private final AtomicBoolean destroyed =
new AtomicBoolean(
false);
97 private CppProxy(
long nativeRef)
99 if (nativeRef == 0)
throw new RuntimeException(
"nativeRef is zero");
100 this.nativeRef = nativeRef;
103 private native
void nativeDestroy(
long nativeRef);
104 public void _djinni_private_destroy()
106 boolean destroyed = this.destroyed.getAndSet(
true);
107 if (!destroyed) nativeDestroy(this.nativeRef);
109 protected void finalize() throws
java.lang.Throwable
111 _djinni_private_destroy();
118 public void setVisible(
boolean visible)
120 assert !this.destroyed.get() :
"trying to use a destroyed object";
121 native_setVisible(this.nativeRef, visible);
123 private native
void native_setVisible(
long _nativeRef,
boolean visible);
126 public boolean isVisible()
128 assert !this.destroyed.get() :
"trying to use a destroyed object";
129 return native_isVisible(this.nativeRef);
131 private native
boolean native_isVisible(
long _nativeRef);
134 public void setAnchor(android.graphics.PointF anchor)
136 assert !this.destroyed.get() :
"trying to use a destroyed object";
137 native_setAnchor(this.nativeRef, anchor);
139 private native
void native_setAnchor(
long _nativeRef, android.graphics.PointF anchor);
142 public void resetAnchor()
144 assert !this.destroyed.get() :
"trying to use a destroyed object";
145 native_resetAnchor(this.nativeRef);
147 private native
void native_resetAnchor(
long _nativeRef);
150 public boolean anchorEnabled()
152 assert !this.destroyed.get() :
"trying to use a destroyed object";
153 return native_anchorEnabled(this.nativeRef);
155 private native
boolean native_anchorEnabled(
long _nativeRef);