Lines Matching refs:handle

32 void Dispose(ArkUI_NativeDialogHandle handle)
35 if (!impl || !handle) {
38 impl->getDialogAPI()->dispose(handle->controller);
39 delete handle;
40 handle = nullptr;
43 int32_t SetContent(ArkUI_NativeDialogHandle handle, ArkUI_NodeHandle content)
46 if (!impl || !handle || !content) {
49 return impl->getDialogAPI()->setContent(handle->controller, content->uiNodeHandle);
52 int32_t RemoveContent(ArkUI_NativeDialogHandle handle)
55 if (!impl || !handle) {
58 return impl->getDialogAPI()->removeContent(handle->controller);
61 int32_t SetContentAlignment(ArkUI_NativeDialogHandle handle, int32_t alignment, float offsetX, float offsetY)
64 if (!impl || !handle) {
67 return impl->getDialogAPI()->setContentAlignment(handle->controller,
71 int32_t ResetContentAlignment(ArkUI_NativeDialogHandle handle)
74 if (!impl || !handle) {
77 return impl->getDialogAPI()->resetContentAlignment(handle->controller);
80 int32_t SetModalMode(ArkUI_NativeDialogHandle handle, bool isModal)
83 if (!impl || !handle) {
86 return impl->getDialogAPI()->setModalMode(handle->controller, isModal);
89 int32_t SetAutoCancel(ArkUI_NativeDialogHandle handle, bool autoCancel)
92 if (!impl || !handle) {
95 return impl->getDialogAPI()->setAutoCancel(handle->controller, autoCancel);
98 int32_t SetMask(ArkUI_NativeDialogHandle handle, uint32_t maskColor, const ArkUI_Rect* maskRect)
101 if (!impl || !handle) {
106 return impl->getDialogAPI()->setMask(handle->controller, maskColor, &rect);
108 return impl->getDialogAPI()->setMask(handle->controller, maskColor, nullptr);
112 int32_t SetBackgroundColor(ArkUI_NativeDialogHandle handle, uint32_t backgroundColor)
115 if (!impl || !handle) {
118 return impl->getDialogAPI()->setBackgroundColor(handle->controller, backgroundColor);
121 int32_t SetCornerRadius(ArkUI_NativeDialogHandle handle, float topLeft, float topRight,
125 if (!impl || !handle) {
128 return impl->getDialogAPI()->setCornerRadius(handle->controller,
132 int32_t SetGridColumnCount(ArkUI_NativeDialogHandle handle, int32_t gridCount)
135 if (!impl || !handle) {
138 return impl->getDialogAPI()->setGridColumnCount(handle->controller, gridCount);
141 int32_t EnableCustomStyle(ArkUI_NativeDialogHandle handle, bool enableCustomStyle)
144 if (!impl || !handle) {
147 return impl->getDialogAPI()->enableCustomStyle(handle->controller, enableCustomStyle);
150 int32_t EnableCustomAnimation(ArkUI_NativeDialogHandle handle, bool enableCustomAnimation)
153 if (!impl || !handle) {
156 return impl->getDialogAPI()->enableCustomAnimation(handle->controller, enableCustomAnimation);
159 int32_t Show(ArkUI_NativeDialogHandle handle, bool showInSubWindow)
162 if (!impl || !handle) {
165 return impl->getDialogAPI()->show(handle->controller, showInSubWindow);
168 int32_t Close(ArkUI_NativeDialogHandle handle)
171 if (!impl || !handle) {
174 return impl->getDialogAPI()->close(handle->controller);
177 int32_t RegisterOnWillDismiss(ArkUI_NativeDialogHandle handle, ArkUI_OnWillDismissEvent eventHandler)
180 if (!impl || !handle) {
183 return impl->getDialogAPI()->registerOnWillDismiss(handle->controller, eventHandler);
187 ArkUI_NativeDialogHandle handle, void* userData, void (*callback)(ArkUI_DialogDismissEvent* event))
190 if (!impl || !handle) {
193 int result = impl->getDialogAPI()->registerOnWillDismissWithUserData(handle->controller, userData, callback);