expose View methods for transparent picking
This commit is contained in:
@@ -571,6 +571,17 @@ external void View_setFogOptions(
|
||||
TFogOptions tFogOptions,
|
||||
);
|
||||
|
||||
@ffi.Native<ffi.Void Function(ffi.Pointer<TView>, ffi.Bool)>(isLeaf: true)
|
||||
external void View_setTransparentPickingEnabled(
|
||||
ffi.Pointer<TView> tView,
|
||||
bool enabled,
|
||||
);
|
||||
|
||||
@ffi.Native<ffi.Bool Function(ffi.Pointer<TView>)>(isLeaf: true)
|
||||
external bool View_isTransparentPickingEnabled(
|
||||
ffi.Pointer<TView> tView,
|
||||
);
|
||||
|
||||
@ffi.Native<
|
||||
ffi.Void Function(ffi.Pointer<TView>, ffi.Uint32, ffi.Uint32, ffi.Uint32,
|
||||
PickCallback)>(isLeaf: true)
|
||||
|
||||
@@ -720,6 +720,13 @@ extension type NativeLibrary(JSObject _) implements JSObject {
|
||||
Pointer<TView> tView,
|
||||
Pointer<TFogOptions> tFogOptionsPtr,
|
||||
);
|
||||
external void _View_setTransparentPickingEnabled(
|
||||
Pointer<TView> tView,
|
||||
bool enabled,
|
||||
);
|
||||
external int _View_isTransparentPickingEnabled(
|
||||
Pointer<TView> tView,
|
||||
);
|
||||
external void _View_pick(
|
||||
Pointer<TView> tView,
|
||||
int requestId,
|
||||
@@ -3008,6 +3015,21 @@ void View_setFogOptions(
|
||||
return result;
|
||||
}
|
||||
|
||||
void View_setTransparentPickingEnabled(
|
||||
self.Pointer<TView> tView,
|
||||
bool enabled,
|
||||
) {
|
||||
final result = _lib._View_setTransparentPickingEnabled(tView.cast(), enabled);
|
||||
return result;
|
||||
}
|
||||
|
||||
bool View_isTransparentPickingEnabled(
|
||||
self.Pointer<TView> tView,
|
||||
) {
|
||||
final result = _lib._View_isTransparentPickingEnabled(tView.cast());
|
||||
return result == 1;
|
||||
}
|
||||
|
||||
void View_pick(
|
||||
self.Pointer<TView> tView,
|
||||
int requestId,
|
||||
|
||||
Reference in New Issue
Block a user