Lines Matching refs:handle

34 void Dispose(ArkUI_NativeDialogHandle handle)  in Dispose()  argument
37 if (!impl || !handle) { in Dispose()
40 impl->getDialogAPI()->dispose(handle->controller); in Dispose()
41 delete handle; in Dispose()
42 handle = nullptr; in Dispose()
45 int32_t SetContent(ArkUI_NativeDialogHandle handle, ArkUI_NodeHandle content) in SetContent() argument
48 if (!impl || !handle || !content) { in SetContent()
51 return impl->getDialogAPI()->setContent(handle->controller, content->uiNodeHandle); in SetContent()
54 int32_t RemoveContent(ArkUI_NativeDialogHandle handle) in RemoveContent() argument
57 if (!impl || !handle) { in RemoveContent()
60 return impl->getDialogAPI()->removeContent(handle->controller); in RemoveContent()
63 int32_t SetContentAlignment(ArkUI_NativeDialogHandle handle, int32_t alignment, float offsetX, floa… in SetContentAlignment() argument
66 if (!impl || !handle) { in SetContentAlignment()
69 return impl->getDialogAPI()->setContentAlignment(handle->controller, in SetContentAlignment()
73 int32_t ResetContentAlignment(ArkUI_NativeDialogHandle handle) in ResetContentAlignment() argument
76 if (!impl || !handle) { in ResetContentAlignment()
79 return impl->getDialogAPI()->resetContentAlignment(handle->controller); in ResetContentAlignment()
82 int32_t SetModalMode(ArkUI_NativeDialogHandle handle, bool isModal) in SetModalMode() argument
85 if (!impl || !handle) { in SetModalMode()
88 return impl->getDialogAPI()->setModalMode(handle->controller, isModal); in SetModalMode()
91 int32_t SetAutoCancel(ArkUI_NativeDialogHandle handle, bool autoCancel) in SetAutoCancel() argument
94 if (!impl || !handle) { in SetAutoCancel()
97 return impl->getDialogAPI()->setAutoCancel(handle->controller, autoCancel); in SetAutoCancel()
100 int32_t SetMask(ArkUI_NativeDialogHandle handle, uint32_t maskColor, const ArkUI_Rect* maskRect) in SetMask() argument
103 if (!impl || !handle) { in SetMask()
108 return impl->getDialogAPI()->setMask(handle->controller, maskColor, &rect); in SetMask()
110 return impl->getDialogAPI()->setMask(handle->controller, maskColor, nullptr); in SetMask()
114 int32_t SetBackgroundColor(ArkUI_NativeDialogHandle handle, uint32_t backgroundColor) in SetBackgroundColor() argument
117 if (!impl || !handle) { in SetBackgroundColor()
120 return impl->getDialogAPI()->setBackgroundColor(handle->controller, backgroundColor); in SetBackgroundColor()
123 int32_t SetCornerRadius(ArkUI_NativeDialogHandle handle, float topLeft, float topRight, in SetCornerRadius() argument
127 if (!impl || !handle) { in SetCornerRadius()
130 return impl->getDialogAPI()->setCornerRadius(handle->controller, in SetCornerRadius()
134 int32_t SetGridColumnCount(ArkUI_NativeDialogHandle handle, int32_t gridCount) in SetGridColumnCount() argument
137 if (!impl || !handle) { in SetGridColumnCount()
140 return impl->getDialogAPI()->setGridColumnCount(handle->controller, gridCount); in SetGridColumnCount()
143 int32_t EnableCustomStyle(ArkUI_NativeDialogHandle handle, bool enableCustomStyle) in EnableCustomStyle() argument
146 if (!impl || !handle) { in EnableCustomStyle()
149 return impl->getDialogAPI()->enableCustomStyle(handle->controller, enableCustomStyle); in EnableCustomStyle()
152 int32_t EnableCustomAnimation(ArkUI_NativeDialogHandle handle, bool enableCustomAnimation) in EnableCustomAnimation() argument
155 if (!impl || !handle) { in EnableCustomAnimation()
158 return impl->getDialogAPI()->enableCustomAnimation(handle->controller, enableCustomAnimation); in EnableCustomAnimation()
161 int32_t Show(ArkUI_NativeDialogHandle handle, bool showInSubWindow) in Show() argument
164 if (!impl || !handle) { in Show()
167 return impl->getDialogAPI()->show(handle->controller, showInSubWindow); in Show()
170 int32_t Close(ArkUI_NativeDialogHandle handle) in Close() argument
173 if (!impl || !handle) { in Close()
176 return impl->getDialogAPI()->close(handle->controller); in Close()
179 int32_t RegisterOnWillDismiss(ArkUI_NativeDialogHandle handle, ArkUI_OnWillDismissEvent eventHandle… in RegisterOnWillDismiss() argument
182 if (!impl || !handle) { in RegisterOnWillDismiss()
185 return impl->getDialogAPI()->registerOnWillDismiss(handle->controller, eventHandler); in RegisterOnWillDismiss()
189 …ArkUI_NativeDialogHandle handle, void* userData, void (*callback)(ArkUI_DialogDismissEvent* event)) in RegisterOnWillDismissWithUserData() argument
192 if (!impl || !handle) { in RegisterOnWillDismissWithUserData()
195 …int result = impl->getDialogAPI()->registerOnWillDismissWithUserData(handle->controller, userData,… in RegisterOnWillDismissWithUserData()