Home
last modified time | relevance | path

Searched refs:rectObj (Results 1 - 7 of 7) sorted by relevance

/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_text_editable_controller.cpp124 JSRef<JSObject> rectObj = JSRef<JSObject>::New(); in CreateRectangle() local
125 rectObj->SetProperty<double>("x", info.Left()); in CreateRectangle()
126 rectObj->SetProperty<double>("y", info.Top()); in CreateRectangle()
127 rectObj->SetProperty<double>("width", info.Width()); in CreateRectangle()
128 rectObj->SetProperty<double>("height", info.Height()); in CreateRectangle()
129 return rectObj; in CreateRectangle()
136 auto rectObj = CreateRectangle(controller->GetTextContentRect()); in GetTextContentRect() local
137 JSRef<JSVal> rect = JSRef<JSObject>::Cast(rectObj); in GetTextContentRect()
H A Djs_scroller.cpp98 JSRef<JSObject> rectObj = JSRef<JSObject>::New(); in CreateRectangle() local
99 rectObj->SetProperty<double>("x", info.Left()); in CreateRectangle()
100 rectObj->SetProperty<double>("y", info.Top()); in CreateRectangle()
101 rectObj->SetProperty<double>("width", info.Width()); in CreateRectangle()
102 rectObj->SetProperty<double>("height", info.Height()); in CreateRectangle()
103 return rectObj; in CreateRectangle()
358 auto rectObj = CreateRectangle(scrollController->GetItemRect(index)); in GetItemRect() local
359 JSRef<JSVal> rect = JSRef<JSObject>::Cast(rectObj); in GetItemRect()
H A Djs_layout_manager.cpp131 JSRef<JSObject> rectObj = JSRef<JSObject>::New(); in GetRectsForRange() local
132 rectObj->SetProperty<float>("left", textBox.rect_.Left()); in GetRectsForRange()
133 rectObj->SetProperty<float>("top", textBox.rect_.Top()); in GetRectsForRange()
134 rectObj->SetProperty<float>("right", textBox.rect_.Right()); in GetRectsForRange()
135 rectObj->SetProperty<float>("bottom", textBox.rect_.Bottom()); in GetRectsForRange()
136 textBoxObj->SetPropertyObject("rect", rectObj); in GetRectsForRange()
H A Djs_xcomponent.cpp92 JSRef<JSObject> rectObj = JSRef<JSObject>::New(); in SetControllerCallback()
93 rectObj->SetProperty("offsetX", rect.Left()); in SetControllerCallback()
94 rectObj->SetProperty("offsetY", rect.Top()); in SetControllerCallback()
95 rectObj->SetProperty("surfaceWidth", rect.Width()); in SetControllerCallback()
96 rectObj->SetProperty("surfaceHeight", rect.Height()); in SetControllerCallback()
98 JSRef<JSVal> params[2] = { jsSurfaceId, rectObj }; in SetControllerCallback()
H A Djs_list.cpp929 auto rectObj = CreateRectangle(scrollController->GetItemRectInGroup(index, indexInGroup)); in GetItemRectInGroup() local
930 JSRef<JSVal> rect = JSRef<JSObject>::Cast(rectObj); in GetItemRectInGroup()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/functions/
H A Djs_drag_function.cpp265 auto rectObj = CreateRectangle(dragEvent_->GetPreviewRect()); in GetPreviewRect() local
266 JSRef<JSVal> previewRect = JSRef<JSObject>::Cast(rectObj); in GetPreviewRect()
392 JSRef<JSObject> rectObj = JSRef<JSObject>::New(); in CreateRectangle() local
393 rectObj->SetProperty<double>("x", PipelineBase::Px2VpWithCurrentDensity(info.Left())); in CreateRectangle()
394 rectObj->SetProperty<double>("y", PipelineBase::Px2VpWithCurrentDensity(info.Top())); in CreateRectangle()
395 rectObj->SetProperty<double>("width", PipelineBase::Px2VpWithCurrentDensity(info.Width())); in CreateRectangle()
396 rectObj->SetProperty<double>("height", PipelineBase::Px2VpWithCurrentDensity(info.Height())); in CreateRectangle()
397 return rectObj; in CreateRectangle()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_xcomponent_bridge.cpp152 auto rectObj = panda::ObjectRef::NewWithNamedProperties(vm, ArraySize(keys), keys, rectValues); in SetControllerOnChanged()
153 panda::Local<panda::JSValueRef> para[2] = { panda::StringRef::NewFromUtf8(vm, surfaceId.c_str()), rectObj }; in SetControllerOnChanged()
223 auto rectObj = panda::ObjectRef::NewWithNamedProperties(vm, ArraySize(keys), keys, rectValues); in SetControllerCallback()
224 panda::Local<panda::JSValueRef> para[2] = { panda::StringRef::NewFromUtf8(vm, surfaceId.c_str()), rectObj }; in SetControllerCallback()

Completed in 9 milliseconds