Home
last modified time | relevance | path

Searched refs:winHeight (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/foundation/window/window_manager/utils/src/
H A Dsurface_draw.cpp269 int32_t winHeight = static_cast<int32_t>(rect.height_); in DrawImageRect() local
276 sptr<OHOS::SurfaceBuffer> buffer = GetSurfaceBuffer(layer, winWidth, winHeight); in DrawImageRect()
302 int32_t winHeight = static_cast<int32_t>(rect.height_); in DoDrawImageRect() local
310 … if (pixelMap->GetHeight() <= 0 || pixelMap->GetWidth() <= 0 || winWidth <= 0 || winHeight <= 0) { in DoDrawImageRect()
317 bitmap.Build(alignWidth, winHeight, format); in DoDrawImageRect()
322 float yAxis = static_cast<float>(winHeight) / pixelMap->GetHeight(); in DoDrawImageRect()
334 scaledPixelMapH = winHeight; in DoDrawImageRect()
337 int top = (winHeight - scaledPixelMapH) / 2; // 2 is the top and bottom boundaries of the win in DoDrawImageRect()
342 int32_t bufferSize = bufferStride * winHeight; in DoDrawImageRect()
/ohos5.0/foundation/window/window_manager/window_scene/session/host/include/
H A Dsession_utils.h31 inline float ToLayoutHeight(const int32_t winHeight, float vpr) in ToLayoutHeight() argument
33 return winHeight - (WINDOW_FRAME_WIDTH + WINDOW_TITLE_BAR_HEIGHT) * vpr; in ToLayoutHeight()
/ohos5.0/docs/zh-cn/application-dev/ui/
H A Darkts-component-animation.md99 let winHeight = this.getMainWindowHeight();
100 AppStorage.setOrCreate<number>('mainWinHeight', winHeight)
102 context.context.eventHub.emit("windowSizeChange", winWidth, winHeight)
/ohos5.0/docs/en/application-dev/ui/
H A Darkts-component-animation.md99 let winHeight = this.getMainWindowHeight();
100 AppStorage.setOrCreate<number>('mainWinHeight', winHeight)
102 context.context.eventHub.emit("windowSizeChange", winWidth, winHeight)